curl --request GET \
--url https://api.revtain.com/api/recovery/status/{transactionId} \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.revtain.com/api/recovery/status/{transactionId}"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.revtain.com/api/recovery/status/{transactionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.revtain.com/api/recovery/status/{transactionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.revtain.com/api/recovery/status/{transactionId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.revtain.com/api/recovery/status/{transactionId}")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.revtain.com/api/recovery/status/{transactionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"transactionId": "01KKZ14FEZK152ZBXEM2XK1B0C",
"status": "succeeded",
"recovered": true,
"amount": 5000,
"currency": "USD",
"recoveredAt": "2026-03-17T23:15:21.000Z",
"strategyUsed": "primary",
"attemptCount": 1,
"lastDeclineCode": "do_not_honor"
}{
"error": "Unauthorized. Missing or invalid API key."
}{
"error": "Transaction not found."
}Get Recovery Status by Transaction ID
Poll the current status of a recovery attempt by its transaction ID.
The transactionId is the value returned from /api/recovery/execute.
The response includes the number of gateway attempts, the last decline code seen, and — when the recovery did not succeed — a recommended next action.
To look a recovery up by the idempotencyKey you supplied instead, use GET /api/recovery/status?idempotencyKey=....
Clients can only query their own transactions.
curl --request GET \
--url https://api.revtain.com/api/recovery/status/{transactionId} \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.revtain.com/api/recovery/status/{transactionId}"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.revtain.com/api/recovery/status/{transactionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.revtain.com/api/recovery/status/{transactionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.revtain.com/api/recovery/status/{transactionId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.revtain.com/api/recovery/status/{transactionId}")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.revtain.com/api/recovery/status/{transactionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"transactionId": "01KKZ14FEZK152ZBXEM2XK1B0C",
"status": "succeeded",
"recovered": true,
"amount": 5000,
"currency": "USD",
"recoveredAt": "2026-03-17T23:15:21.000Z",
"strategyUsed": "primary",
"attemptCount": 1,
"lastDeclineCode": "do_not_honor"
}{
"error": "Unauthorized. Missing or invalid API key."
}{
"error": "Transaction not found."
}Authorizations
Your Revtain API key (format: rev_xxx). Provided during onboarding.
Path Parameters
The transaction ID returned from /api/recovery/execute.
Response
Recovery status
"01KKZ14FEZK152ZBXEM2XK1B0C"
succeeded, failed, blocked, unknown "succeeded"
true
5000
"USD"
"2026-03-17T23:15:21.000Z"
"primary"
Number of recovery attempts made.
2
The most recent decline code seen for this recovery.
"do_not_honor"
What to do next. Present only when the recovery did not succeed.
request_card_update, retry_later, manual_review, monitor "retry_later"
Human-readable explanation of the recommended action. Present only when the recovery did not succeed.
"The issuer returned a soft decline. A later retry, or a card update, may succeed."