Recover
...
API Reference
Merchant Endpoints

Retry Status

1min
code examples curl location globoff request post 'https //api \<merchant url> com/retry/{invoice id}' \\ \ header 'accept application/json' \\ \ header 'content type application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'post', headers myheaders, redirect 'follow' }; fetch("https //api \<merchant url> com/retry/{invoice id}", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api \<merchant url> com/retry/{invoice id}") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = https request(request) puts response read body import requests import json url = "https //api \<merchant url> com/retry/{invoice id}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // the request succeeded { "retry" false, "reason" "user cancelation", "amount" 19 99, "metadata" {}, "payment methods" \[ { "id" "pm 12345", "network transaction id" "qksx6rp250903", "bin" "621035", "token" { "id" "4457010000000009", "expiration month" "02", "expiration year" "27", "card validation number" "445" }, "billing address" { "name" "john smith", "city" "boston", "state" "ma", "zip" "02108", "phone" "555 309 9999" } } ] }// invalid credentials { "detail" "missing or invalid api key" }// invoice not found { "detail" "an invoice with the provided id cannot be found" }// too many requests { "detail" "requests have exceeded rate limiting" }// server error { "detail" "a server error has occurred" }