Transactions API
Abandon Transaction
this api endpoint (post) (post) abandons an existing transaction if the request succeeds, it returns the id of the abandoned transaction webhook event transaction events docid\ ar9ef2mce4n1csol0jj1s path parameters id the id of the transaction require "uri" require "json" require "net/http" url = uri("https //api tamio com/v2/transactions/abandon/fd990809 3819 4f27 abde 5283f9cca7d8") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["authorization"] = "bearer your publishable token here" response = https request(request) puts response read bodycurl location request post 'https //api tamio com/v2/transactions/abandon/fd990809 3819 4f27 abde 5283f9cca7d8' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your publishable token here'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("authorization", "bearer your publishable token here"); var requestoptions = { method 'post', headers myheaders }; fetch("https //api tamio com/v2/transactions/abandon/fd990809 3819 4f27 abde 5283f9cca7d8", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));{ "status" 200, "id" "fd990809 3819 4f27 abde 5283f9cca7d8" }