The core recovery endpoint. When a payment fails in your billing system, call this to trigger the intelligent recovery engine.
Rate limit: 60 requests per minute per API key.
| Status | Meaning |
|---|---|
200 + success: true | Payment recovered immediately |
200 + success: false | All strategies exhausted, payment not recovered |
202 | Queued for smart-time retry |
403 | Blocked by risk engine — do NOT retry |
409 | Duplicate request (idempotency key already used) |
429 | Rate limit exceeded |
| Category | Example Codes | What Happens |
|---|---|---|
| Recoverable | insufficient_funds, do_not_honor, call_issuer, try_again_later, card_declined | Optimal recovery strategy applied |
| Blocked | fraudulent, lost_card, pickup_card, restricted_card | Transaction blocked, webhook fired |
| Unknown | Any unrecognised code | Conservative recovery attempted |
Documentation Index
Fetch the complete documentation index at: https://docs.revtain.com/llms.txt
Use this file to discover all available pages before exploring further.
Your Revtain API key (format: rev_xxx). Provided during onboarding.
Your gateway's payment token (e.g., Stripe pm_xxx, tok_xxx, or a Revtain vault token).
"pm_1234567890"
Amount in the smallest currency unit (e.g., 5000 = $50.00 USD). For zero-decimal currencies (JPY, KRW, VND), pass the whole amount.
50 <= x <= 1000000005000
3-letter ISO 4217 currency code.
"USD"
The decline code from your processor. Dramatically improves recovery rate.
"do_not_honor"
2-letter ISO country code of the card issuer. Enables geographic routing optimisation.
"US"
Unique key to prevent duplicate recovery attempts. Strongly recommended for production.
128"order_12345_retry_1"
First 6 digits of the card (BIN). Enables issuer-level analytics and smarter routing.
"411111"
The end customer's email address. Required if dunning is enabled.
"customer@example.com"
Sandbox only. Force a specific outcome for testing. Only honoured when primary gateway is a Test Gateway.
success, failed, blocked Recovery attempt completed (check success field for outcome)