Errors
The problem document every error returns, what each status means, and the codes you can receive.
{
"type": "about:blank",
"title": "FAILED_PRECONDITION",
"status": 422,
"detail": "Verification is still in progress; retry once the party is verified.",
"instance": "/v1/payouts",
"code": "BENEFICIARY_NOT_PAYABLE",
"request_id": "req_01M2FQ5Q302W4Y6A8C0E2G4J6K",
"sub_code": "KYC_PENDING"
}Every /v1 error is an RFC 9457 problem document. Branch on code. The token endpoint is the one exception: it uses the OAuth error format (Token endpoint errors).
Problem documents#
Sent with Content-Type: application/problem+json.
| Field | Type | Present | Value |
|---|---|---|---|
type | string | Always | "about:blank" |
title | string | Always | Short error class, e.g. NOT_FOUND, CONFLICT. "Invalid request" for field validation, "Internal error" for unexpected failures |
status | integer | Always | The HTTP status |
detail | string | Usually | Human-readable explanation. Absent on field validation errors and on INTERNAL |
instance | string | Always, except on the 410 | The request path, without the query string |
code | string | Always | Stable and machine-readable, e.g. BENEFICIARY_NOT_FOUND. Branch on this |
sub_code | string | Some codes | Narrows code, e.g. the verification reason a beneficiary is not payable. See Sub-codes |
requirements_due | array | Some codes | What you must still supply before the request can succeed, e.g. ["document.certificate_of_good_standing"] |
request_id | string | Always | Same value as the X-Request-Id response header, except on a replayed response. Quote it to Superpay support |
errors | array | Validation only | One entry per invalid field. See Field errors |
retryable | boolean | Only when true | The same request may succeed if you retry it |
titleanddetailare for your logs. Their wording may change. Don't parse them. Where a page says adetailis safe to show a person, it is written for that.- Optional fields are omitted, never
null. - The same
codecan come with a different status on a different endpoint.BENEFICIARY_NOT_FOUNDis404onGET /v1/beneficiaries/{id}but422onPOST /v1/payouts. Handle errors by endpoint andcodetogether. - Handle a
codeyou don't recognise by its HTTP status.
{
"type": "about:blank",
"title": "Invalid request",
"status": 400,
"instance": "/v1/payouts",
"code": "INVALID_ARGUMENT",
"request_id": "req_01M2FQ5VZ83K4BN94ZQQBPV1N5",
"errors": [
{
"code": "parameter_value_invalid",
"message": "positive amount with a currency",
"field": "amount"
},
{
"code": "parameter_empty",
"message": "purpose_code is required",
"field": "purpose_code"
}
]
}{
"type": "about:blank",
"title": "CONFLICT",
"status": 409,
"detail": "a request with this Idempotency-Key is still in progress",
"instance": "/v1/payouts",
"code": "RESOURCE_LOCKED",
"request_id": "req_01M2FQ5ZW82M6GHVGZNJYCWKW6",
"retryable": true
}{
"type": "about:blank",
"title": "Internal error",
"status": 500,
"instance": "/v1/payouts",
"code": "INTERNAL",
"request_id": "req_01M2FQ63S84MJ436Z0MJBXKPRC"
}Sub-codes#
code | sub_code |
|---|---|
BENEFICIARY_NOT_PAYABLE | The verification reason the beneficiary cannot be paid. See Payouts |
ORIGINATOR_NOT_CORRECTABLE, BENEFICIARY_NOT_CORRECTABLE | The party's reason code, when it has one |
BUSINESS_VERIFICATION_REJECTED, CUSTODY_ACCOUNT_REJECTED | The rejection's reason code |
CUSTODY_KYB_PENDING | KYC_PENDING, or KYC_REQUIREMENTS_DUE with requirements_due |
CUSTODY_BALANCE_INSUFFICIENT | CUSTODY_BALANCE_INSUFFICIENT |
Handling errors#
Checks run in this order. The first one that fails is the error you get.
- Access token:
401 - Account status:
403 TENANT_NOT_ACTIVE - Endpoint exists:
404 UNKNOWN_ENDPOINT - Token scope:
403 INSUFFICIENT_SCOPE - On requests that take an
Idempotency-Key: the key and body size,400,409or503 - Request body, fields and query parameters:
400 - The objects the request refers to:
404,409,410or422
So a /v1 request without a token gets 401, even to a path that doesn't exist. Some endpoints differ a little in steps 5 to 7: a malformed id in the path can return 404 before the body is read, a correction checks that the party exists before it validates the new values, and a document upload checks its body before its owner.
When to retry#
| You get | Do this | Idempotency-Key on retry |
|---|---|---|
retryable: true | Wait briefly, then retry. Honour Retry-After if present | Same key |
500, 503, 504, a network error or a timeout | Retry with exponential backoff. Honour Retry-After if present | Same key |
429 | Wait Retry-After seconds, then retry | Same key |
401 INVALID_TOKEN | Get a new token, then retry once | Same key |
409 IDEMPOTENCY_LEASE_LOST | Retry | Same key |
Any other 4xx | Don't retry as is. Fix the request, or wait for the object's state to change | New key |
A request that fails with a 5xx is not recorded against its key. Retrying with the same key runs it again. If the first attempt did create the object, the retry returns that object instead of creating a second one. Quotes are the exception: the retry may return a new quote. See Timeouts and server errors.
A 4xx from a request that takes an Idempotency-Key is recorded against its key and replayed on every retry with that key, once the request reached validation. Once you've fixed the request, or the blocking condition has cleared, send it with a new key. See Idempotency errors.
// status = HTTP status, problem = parsed problem document ({} if there is no body)
function nextStep(status, problem = {}) {
if (problem.retryable || status === 429 || status >= 500) return 'retry-same-key';
if (problem.code === 'IDEMPOTENCY_LEASE_LOST') return 'retry-same-key';
if (problem.code === 'INVALID_TOKEN') return 'new-token-then-retry-once';
return 'fix-request-then-use-new-key';
}HTTP status codes#
| Status | Meaning | Retry |
|---|---|---|
200 OK | Success | — |
201 Created | Object created. Most creates also set a Location header naming it | — |
202 Accepted | A webhook redelivery was queued | — |
204 No Content | Success, no body. DELETE /v1/beneficiaries/{id} and DELETE /v1/webhook-subscriptions/{id} | — |
400 Bad Request | Malformed or oversized body, invalid field or query parameter, unsupported value, an unacceptable document, an expired event cursor, or a bad Idempotency-Key | No. Fix the request |
401 Unauthorized | Missing, invalid or expired access token | After getting a new token |
403 Forbidden | The token lacks the scope, or your account is not active | No |
404 Not Found | No such object for your credentials, or no such endpoint | No |
409 Conflict | Idempotency conflict, duplicate reference or webhook URL, a redelivery already open, or the object's state doesn't allow it | Only if retryable, or IDEMPOTENCY_LEASE_LOST |
410 Gone | You announced a USDC or USDT funding: POST /v1/treasury/fundings is retired | No |
422 Unprocessable Entity | The request is well-formed, but the objects it refers to don't allow it | After the state changes, with a new key |
429 Too Many Requests | Reserved. If you receive it, slow down. Carries Retry-After, in seconds | After Retry-After |
500 Internal Server Error | Unexpected failure on our side | Yes, with backoff |
503 Service Unavailable | Temporary failure at Superpay or at one of its partners. Carries Retry-After, in seconds | Yes, after Retry-After |
504 Gateway Timeout | A service Superpay depends on didn't answer in time. No Retry-After | Yes, with backoff |
- The API never returns
405. A wrong method on a real path is404 UNKNOWN_ENDPOINT. - An id that belongs to another account, or to the other mode (test or live), is treated as not found:
404for the object in the path, and422or404for an object the request refers to, such asbeneficiary_id,quote_idor the originator inPOST /v1/originators/{id}/beneficiaries. Never403. - A malformed id in the path is
404with the resource's not-found code, not400.POST /v1/originators/{id}/beneficiariesis the exception: it reports a malformed originator id as a400field error onoriginator_id.
Token endpoint errors#
POST /oauth2/token returns OAuth 2.0 errors, not problem documents. The body has no code or request_id; the X-Request-Id header is still set.
{
"error": "invalid_client",
"error_description": "client authentication failed"
}error | HTTP | When | What to do |
|---|---|---|---|
invalid_request | 400 | The body or query string can't be parsed as a form, or the Content-Type is malformed | Send a correctly encoded application/x-www-form-urlencoded body |
unsupported_grant_type | 400 | grant_type is missing or isn't client_credentials. Also returned for a JSON body | Send grant_type=client_credentials in a form-encoded body |
invalid_scope | 400 | A requested scope isn't granted to the credential. error_description names the first one | Request only granted scopes, or omit scope to get all of them |
invalid_client | 401 | The client id or secret is missing (client credentials required), or they weren't accepted (client authentication failed): unknown client id, wrong secret, a test secret with a live client id or the reverse, or a revoked credential. Sent with WWW-Authenticate: Basic realm="superpay" | Check you are using the client id and secret issued together for this mode. If they are right, contact Superpay |
server_error | 500 | The token couldn't be issued | Retry with backoff |
See Authentication.
Authentication and access errors#
Returned on every /v1 endpoint.
| Code | HTTP | When | What to do |
|---|---|---|---|
UNAUTHENTICATED | 401 | No Authorization header, or it isn't Bearer <token>. Sent with WWW-Authenticate: Bearer realm="superpay" | Send Authorization: Bearer <access_token> |
INVALID_TOKEN | 401 | The token is malformed, expired, altered or not issued by Superpay. Sent with WWW-Authenticate: Bearer realm="superpay", error="invalid_token" | Get a new token and retry once. Renew tokens before expires_in runs out |
INSUFFICIENT_SCOPE | 403 | The token doesn't carry the scope the endpoint needs. The response doesn't name the scope | Request a token with the scope shown on the endpoint, listed in Scopes. If your credential lacks it, ask Superpay to grant it |
TENANT_NOT_ACTIVE | 403 | Your Superpay account isn't active in this mode, or its status couldn't be confirmed. Tokens are still issued | Contact Superpay if it persists. A new token won't help |
Request errors#
| Code | HTTP | When | What to do |
|---|---|---|---|
UNKNOWN_ENDPOINT | 404 | No endpoint matches the method and path. Includes a wrong method and a trailing slash | Check the method and path |
REQUEST_BODY_INVALID | 400 | The body is empty, isn't a single JSON object, has a field the endpoint doesn't accept, or has a value of the wrong JSON type. Also a money amount that isn't a bare integer, a money currency that isn't 3 to 5 upper-case letters, a null in a correction, and a document upload that isn't multipart/form-data or has a part other than document_type and file | Send exactly the documented fields. Amounts are integers in minor units. Then use a new key |
REQUEST_BODY_TOO_LARGE | 400 | A JSON body larger than 1 MiB | Send a smaller body |
INVALID_ARGUMENT | 400 | One or more fields or query parameters are invalid. Each is listed in errors | Fix every entry in errors. Then use a new key |
Send field names exactly as written in these docs: lower-case snake_case.
Field errors#
On a create or a correction, INVALID_ARGUMENT lists every invalid body field it finds, not just the first. Fix them all before sending again.
{
"code": "parameter_value_invalid",
"message": "IFSC format AAAA0XXXXXX",
"field": "account.ifsc"
}code | Meaning |
|---|---|
parameter_empty, parameter_missing | A required value is missing or empty. Many fields report a missing value as parameter_value_invalid instead |
parameter_value_invalid | The value has the wrong format, or isn't an accepted value |
parameter_range_invalid | A number is outside the allowed range |
parameter_max_length_invalid | A string, or a list, is too long |
parameter_not_patchable | A correction tried to change a field that cannot change after creation |
parameter_locked | A correction tried to change a field a verification in progress or done is using |
fieldnames the body field, form part or query parameter. Nested fields use dots, and list items an index:account.account_number,id_document.type,beneficial_owners[0].first_name.messageis a short hint, such as1-100or9-18 digits. It may change. Don't parse it.- Each field's rules are on its resource's page.
Query parameter errors:
| Endpoint | field | code | When |
|---|---|---|---|
| Every paged list | limit | parameter_range_invalid | Not an integer from 1 to 100 |
| Every paged list with both cursors | starting_after | parameter_value_invalid | Both starting_after and ending_before were sent |
GET /v1/payouts | status | parameter_value_invalid | Not an exact, upper-case payout status |
GET /v1/events | type | parameter_value_invalid | Not an event type or family |
GET /v1/webhook-subscriptions | status, a cursor | parameter_value_invalid | Not ENABLED or DISABLED; a cursor that isn't a whs_ id |
GET /v1/webhook-subscriptions/{id}/deliveries | status, event_id, event_type, kind, a cursor | parameter_value_invalid | Not an accepted value |
GET /v1/balances | currency | parameter_value_invalid | Not 3 to 5 upper-case letters |
Most lists check query parameters one at a time. The webhook lists report several together.
Idempotency errors#
Returned on the requests that take an Idempotency-Key: see When to send a key. None of them is recorded against the key.
| Code | HTTP | When | What to do | Retry |
|---|---|---|---|---|
IDEMPOTENCY_KEY_REQUIRED | 400 | The Idempotency-Key header is missing or empty | Send a key | After adding it |
IDEMPOTENCY_KEY_INVALID | 400 | The key isn't 16–64 printable ASCII characters. Spaces aren't allowed | Use a UUID | After fixing it |
IDEMPOTENCY_KEY_REUSED | 409 | The key was already used for a different request: another body, path or endpoint | Use a new key for each new operation. Never change the body when retrying | No. New key |
RESOURCE_LOCKED | 409 | A request with this key is still being processed. retryable: true | Wait briefly, then retry | Yes, same key |
IDEMPOTENCY_LEASE_LOST | 409 | A retry with the same key took over while this attempt was still running | Retry. You get the result of the attempt that finished | Yes, same key |
IDEMPOTENCY_RECOVERY_FAILED | 503 | An earlier attempt with this key was interrupted and couldn't be recovered yet. retryable: true | Retry after Retry-After | Yes, same key |
What a retry with the same key and body returns:
| First response | Retry returns |
|---|---|
2xx | The original status and body, with Idempotent-Replayed: true. The body shows the object as it was then. GET it for its current state |
4xx from validation or object state | The same error, replayed. Send the corrected request with a new key |
5xx | The request runs again. If the first attempt created the object, you get that object |
A replayed body keeps the original request_id; the X-Request-Id header is the new request's. A key's stored response is kept for 24 hours. Treat a key as permanently bound to its first request.
Resource errors#
Business verification and custody#
See also Business verification errors and Custody account errors.
| Code | HTTP | Endpoint | When | What to do |
|---|---|---|---|---|
BUSINESS_VERIFICATION_NOT_FOUND | 404 | GET /v1/business-verification | No verification in this mode yet: nothing submitted, through the API or the form | Submit your business verification. If you are verified with the form, wait for business.verification_updated |
BUSINESS_VERIFICATION_REJECTED | 422 | POST /v1/business-verification | The verification was rejected for a reason you cannot correct. sub_code holds it | Contact Superpay |
CUSTODY_ACCOUNT_NOT_FOUND | 404 | GET /v1/custody | No verification in this mode yet: nothing submitted, through the API or the form | Submit your business verification. If you are verified with the form, wait for business.verification_updated |
CUSTODY_ACCOUNT_REJECTED | 422 | POST /v1/custody/account | The business was rejected. sub_code holds the reason | See your business verification |
CUSTODY_UNAVAILABLE | 503 | GET /v1/custody | Your custody account changed while it was being read. retryable: true | Retry after Retry-After |
Conversions#
See also Conversion errors. The same codes apply on the /v1/fx/ paths.
| Code | HTTP | Endpoint | When | What to do | Retry |
|---|---|---|---|---|---|
CURRENCY_UNSUPPORTED | 400 | Create a quote | A well-formed currency code that Superpay does not know | Sell USD, buy INR | No |
AMOUNT_TOO_SMALL | 400 | Create a quote | sell_amount doesn't cover the spread | Increase sell_amount | No |
QUOTE_UNAVAILABLE | 422 | Create a quote | Superpay's banking partner can't price this request, for example because sell_currency is a stablecoin: conversions sell USD only | Sell USD, or change the request, and send it with a new key | No |
PROVIDER_UNAVAILABLE | 503 | Create a quote | Pricing is temporarily unavailable, or the price received had already expired. retryable: true | Retry after Retry-After | Yes, same key |
QUOTE_INCONSISTENT | 500 | Create a quote | The price received couldn't be used | Retry. Contact Superpay if it persists | Yes, same key |
QUOTE_NOT_FOUND | 404 | Retrieve, accept or decline a quote | No quote with this id for these credentials | Check the id and mode | No |
QUOTE_EXPIRED | 422 | Accept | The quote is past its expires_at | Request a new quote and accept it before it expires | No. New quote, new key |
QUOTE_CONSUMED | 409 | Accept, decline | A conversion already exists for this quote | Request a new quote. If you are retrying your own acceptance, resend it with its original key | No |
QUOTE_PENDING_OTC | 422 | Accept | The dealing desk hasn't priced the quote yet | Accept it once it is ACTIVE, with a new key | No |
QUOTE_REJECTED | 422 | Accept | You declined the quote | Request a new quote | No |
CUSTODY_ACCOUNT_REQUIRED, CUSTODY_KYB_PENDING, CUSTODY_ACCOUNT_REJECTED | 422 | Create a quote, accept | Your business verification doesn't let you convert yet | See Custody errors | No. New key once fixed |
CUSTODY_BALANCE_INSUFFICIENT | 422 | Accept | No single custody wallet holds what the conversion needs | Deposit more, or convert less | No. New key |
CUSTODY_UNAVAILABLE | 503 | Accept | Superpay's custody partner didn't answer. retryable: true | Retry after Retry-After | Yes, same key |
FX_ORDER_NOT_FOUND | 404 | Retrieve a conversion | No conversion with this id for these credentials | Check the id and mode | No |
Balances and capacity#
See also Balance errors.
| Code | HTTP | Endpoint | When | What to do | Retry |
|---|---|---|---|---|---|
CORRIDOR_UNKNOWN | 400 | GET /v1/treasury/capacity | corridor is neither IN-INR-BANK nor IN-NRE | Omit corridor | No |
FUNDING_DEPRECATED | 410 | POST /v1/treasury/fundings | You announced a USDC or USDT funding: stablecoin fundings are retired | Deposit into custody | No |
FUNDING_NOT_FOUND | 404 | GET /v1/treasury/fundings/{id} | No funding with this id for these credentials | Check the id and mode | No |
| Varies | 503 or 504 | GET /v1/balances, GET /v1/treasury/capacity | Your balance couldn't be read right now. A 503 carries retryable: true and Retry-After; a 504 carries neither | Retry after Retry-After, or with backoff on a 504. Branch on the HTTP status, not the code | Yes |
Originators#
See also Originator errors.
| Code | HTTP | Endpoint | When | What to do |
|---|---|---|---|---|
ORIGINATOR_NOT_FOUND | 404 | GET and PATCH /v1/originators/{id}, its verification and documents | No originator with this id for these credentials | Check the id, and that you use the mode it was created in |
REFERENCE_EXISTS | 409 | POST /v1/originators | Another originator already has this reference | Use a different reference with a new key. If you are retrying a create that may have succeeded, resend it with its original key to get the originator |
ORIGINATOR_NOT_CORRECTABLE | 422 | PATCH /v1/originators/{id} | The originator is SUSPENDED or DELETED | Contact Superpay, or create a new originator |
Beneficiaries#
See also Beneficiary errors.
| Code | HTTP | Endpoint | When | What to do |
|---|---|---|---|---|
BENEFICIARY_NOT_FOUND | 404 | GET, PATCH and DELETE /v1/beneficiaries/{id}, its verification and documents | No beneficiary with this id for these credentials | Check the id and mode |
ORIGINATOR_NOT_FOUND | 422 | POST /v1/beneficiaries, POST /v1/originators/{id}/beneficiaries | The originator doesn't exist for these credentials | Check originator_id and mode, then send with a new key |
ORIGINATOR_NOT_ACTIVE | 422 | POST /v1/beneficiaries, POST /v1/originators/{id}/beneficiaries | The originator is REJECTED or DELETED | See Rejected originators |
INSTRUMENT_NOT_AVAILABLE | 422 | POST /v1/beneficiaries, POST /v1/originators/{id}/beneficiaries | No payout route can pay an account of this account.type in this mode, so the beneficiary could never be paid. Nothing is stored | Contact Superpay to learn which account types this mode pays, then send with a new key |
REFERENCE_EXISTS | 409 | POST /v1/beneficiaries, POST /v1/originators/{id}/beneficiaries | Another beneficiary, including a deleted one, already has this reference | Use a different reference with a new key, or resend the original create with its original key |
BENEFICIARY_NOT_CORRECTABLE | 422 | PATCH /v1/beneficiaries/{id} | The beneficiary is SUSPENDED or DELETED | Contact Superpay, or create a new beneficiary |
Deleting a beneficiary that is already deleted returns 204.
Documents#
See also Document errors. Document uploads never return idempotency errors.
| Code | HTTP | When | What to do |
|---|---|---|---|
DOCUMENT_TOO_LARGE | 400 | The file is over 10 MiB | Send a smaller file |
DOCUMENT_CONTENT_TYPE_UNSUPPORTED | 400 | The file part's type is missing, or not PDF, JPEG or PNG | Declare the right type |
DOCUMENT_CONTENT_MISMATCH | 400 | The file's bytes don't match its declared type | Send the file with its true type |
DOCUMENT_OWNER_NOT_ACCEPTING | 422 | The party was deleted, or its personal data erased | Nothing: it accepts no documents |
DOCUMENT_SUBJECT_UNAVAILABLE | 422 | A document with a subject was uploaded before your business verification was submitted | Submit your business verification first |
Payouts#
See also Payout errors.
| Code | HTTP | Endpoint | When | What to do |
|---|---|---|---|---|
BENEFICIARY_NOT_FOUND | 422 | POST /v1/payouts | No beneficiary with this beneficiary_id for these credentials | Check the id and mode |
BENEFICIARY_ORIGINATOR_MISMATCH | 422 | POST /v1/payouts | The beneficiary belongs to a different originator | Send the beneficiary's own originator_id |
BENEFICIARY_NOT_PAYABLE | 422 | POST /v1/payouts | The beneficiary's payouts_enabled is false. sub_code says why | See Why a beneficiary is not payable |
CURRENCY_MISMATCH | 422 | POST /v1/payouts | amount.currency isn't the beneficiary's currency | Send the amount in INR |
REFERENCE_EXISTS | 409 | POST /v1/payouts | Another payout, in any status, already has this reference | Use a different reference with a new key. If you are retrying a create that may have succeeded, resend it with its original key |
PAYOUT_NOT_FOUND | 404 | GET /v1/payouts/{id}, POST /v1/payouts/{id}/cancel | No payout with this id for these credentials | Check the id and mode |
PAYOUT_NOT_CANCELLABLE | 409 | POST /v1/payouts/{id}/cancel | The payout is already COMPLETED, FAILED, CANCELLED or REVERSED | Nothing to cancel. GET the payout for its outcome |
None of these succeed on a retry as is. Fix the cause, then send the request with a new key.
Events and webhooks#
See also Event errors and Webhook errors.
| Code | HTTP | Endpoint | When | What to do |
|---|---|---|---|---|
EVENT_CURSOR_EXPIRED | 400 | GET /v1/events | The cursor is not a published event of yours from the last 30 days | List again without a cursor |
EVENT_NOT_FOUND | 404 | GET /v1/events/{id}, redeliver | No such event of yours in this mode within the last 30 days. Redeliver also needs the event to be published, a moment after it is recorded | Check the id and mode |
WEBHOOK_SUBSCRIPTION_NOT_FOUND | 404 | Retrieve, update, rotate, list deliveries, redeliver | No such subscription in this mode. A deleted subscription is not found either, but its deliveries stay listable | Check the id and mode |
WEBHOOK_DELIVERY_NOT_FOUND | 404 | GET …/deliveries/{delivery_id} | No such delivery of this subscription | Check both ids |
WEBHOOK_URL_ALREADY_SUBSCRIBED | 409 | Create or update a subscription | Another subscription in this mode has this URL | Use the existing subscription |
REDELIVERY_IN_PROGRESS | 409 | Redeliver | A redelivery of this event to this subscription is still open | Wait, then ask again with a new key |
WEBHOOK_SUBSCRIPTION_LIMIT_REACHED | 422 | Create a subscription | You already have 16 in this mode | Delete one first |
EVENT_TOO_OLD_TO_REDELIVER, EVENT_NOT_SUBSCRIBED, REDELIVERY_LIMIT_REACHED | 422 | Redeliver | The event is over 29 days old, the subscription doesn't take its type, or 5 redeliveries are already open | See Redeliver an event |
Server errors#
| Code | HTTP | When | What to do | Retry |
|---|---|---|---|---|
INTERNAL | 500 | An unexpected failure. There is no detail | Retry with backoff. On a POST, reuse the key, so a create that did succeed is returned rather than repeated. If it persists, contact Superpay with the request_id | Yes, same key |
Treat any other 503 or 504 as temporary: retry with the same key, after Retry-After when present, otherwise with backoff.
Failures on objects#
Some failures happen after the API has accepted your request. They aren't HTTP errors: the object moves to a failed status and says why. You hear about them through events, or by polling the object.
Payout failure codes#
On payouts in FAILED or REVERSED, in failure.code. A CANCELLED payout has no failure. failure.reason, when present, is free text for your logs: don't parse it or show it to your end users.
failure.code | Status | What happened | What you do |
|---|---|---|---|
ORIGINATOR_NOT_ACTIVE | FAILED | The originator wasn't ACTIVE when the payout was checked: nothing was held. Or, when the payout was sent, the originator lacked a field a payout needs or its personal data had been erased: the payout was not sent, held funds are released, and failure.reason names the missing fields, or says the details are not available | Wait for the originator to be ACTIVE, or correct it with the fields named, then create a new payout. If it is REJECTED, see Rejected originators |
BENEFICIARY_NOT_PAYABLE | FAILED | The beneficiary stopped being payable before the payout was checked, for example it was deleted straight after the payout was created, or no banking partner may credit the account's type in this mode: nothing was held. Or, when the payout was sent, the beneficiary lacked a field a payout needs, its personal data had been erased, or the route could no longer pay the account: the payout was not sent, held funds are released, and failure.reason says which, naming any missing fields | Fix or replace the beneficiary, or correct it with the fields named, then create a new payout. For an account type that cannot be paid, see Account types that can be paid |
COMPLIANCE_REJECTED | FAILED | The originator or the beneficiary was rejected on sanctions screening. Nothing was held | Don't resubmit. Contact Superpay |
LIMIT_EXCEEDED | FAILED | A banking partner may credit the account, but none can carry the amount in one payout: it is under ₹1.00, or over a per-payout cap, where the route to the account has one. Nothing was held | Create a new payout of at least ₹1.00. Contact Superpay for the cap that applies to the account |
INSUFFICIENT_FUNDS | FAILED | Your INR available balance didn't cover amount + fee when funds were reserved. Nothing was held | Add INR, then create a new payout |
PROVIDER_REJECTED | FAILED | Superpay's banking partner refused the payout, or Superpay did not send it because the route cannot take a party's address or identity document. Held funds are released | Check the payout and both parties, then create a new payout. Contact Superpay if it repeats. See What is sent with a payout |
PROVIDER_FAILED | FAILED | The payment failed, was cancelled or expired in the banking network. Held funds are released | Create a new payout if appropriate |
ACCOUNT_TYPE_REJECTED_BY_BANK | FAILED | The beneficiary's bank refused the credit because of the account's type. Held funds are released | Create a new payout. It goes to a partner that may credit the account, or fails with BENEFICIARY_NOT_PAYABLE when none may in this mode. Contact Superpay if it fails with this code again |
RETRY_WINDOW_EXPIRED | FAILED | The payout couldn't be handed to Superpay's banking partner within its retry limit. Held funds are released | Create a new payout |
PROVIDER_RETURNED | REVERSED | The beneficiary's bank returned a completed payment. amount is back in your available balance. The fee is not | Confirm the beneficiary's bank details before paying again |
A new payout needs a new key, and a different reference if you set one. See Failure codes.
Conversion failure reasons#
On conversions in FAILED, in failure_reason. Match by the code before any : .
| Code | What happened | What you do |
|---|---|---|
CUSTODY_ACCOUNT_REQUIRED, CUSTODY_KYB_PENDING, CUSTODY_ACCOUNT_REJECTED | Your business verification couldn't fund the conversion. Nothing moved | See Business verification |
CUSTODY_BALANCE_INSUFFICIENT | No single custody wallet held what the conversion needed. Nothing moved | Deposit more, then quote and accept again |
CUSTODY_TRANSFER_FAILED | The pull from your custody account was refused or failed. Nothing left your wallet | Quote and accept again. Contact Superpay if it repeats |
INSUFFICIENT_FUNDS | Your USD balance didn't cover the sell amount. Nothing was held | Quote and accept again |
PROVIDER_REJECTED | Superpay's banking partner refused the conversion, or it couldn't be sent. Held funds are released | Quote and accept again. Contact Superpay if it repeats |
PROVIDER_FAILED | The conversion failed. Held funds are released | Quote and accept again |
See Failure reasons.