Payouts

Payouts

Pay INR from your balance into a beneficiary's Indian bank account, and track it to a final status.

A payout sends INR from your available balance to a verified beneficiary's bank account in India, such as an NRE, NRO or savings account. You never choose how it is paid. Superpay picks a banking partner that can credit the account.

A payout to a beneficiary that is a UPI ID is the same request. It is paid over UPI, shows corridor IN-INR-UPI and carries at most ₹1,00,000.00. UPI IDs work in test mode today: see UPI payouts.

Creating a payout is synchronous. Paying it is not. 201 Created means Superpay accepted the payout, not that the beneficiary has been paid. Follow it to a final status with webhooks or by polling.

MethodPathScopeIdempotency-Key
POST/v1/payoutspayouts:writeRequired
GET/v1/payouts/{id}payouts:read—
GET/v1/payoutspayouts:read—
POST/v1/payouts/{id}/cancelpayouts:writeRequired

Create a payout#

POST/v1/payoutspayouts:write

Send an Idempotency-Key header. See Retries and duplicates. Check the requirements first.

originator_idstringRequired

The org_… ID of the sender. Must be the originator the beneficiary belongs to.

beneficiary_idstringRequired

The ben_… ID of the recipient. Must have payouts_enabled: true. It can be an NRE, NRO or savings account, with its type declared. Which of these types a payout can reach is set per mode: see Account types that can be paid.

amountobjectRequired

The amount to pay, as a money object: {"amount": <integer>, "currency": "INR"}. amount is a positive integer in paise: ₹50,000.00 is 5000000. Send at least ₹1.00 (100): a smaller amount is accepted here, and the payout then fails with LIMIT_EXCEEDED. currency must be INR, upper case. The fee is charged on top.

purpose_codestringRequired

The RBI purpose code. One of the purpose codes. Case-insensitive; returned upper case.

purpose_descriptionstring

Narration for the payment, used where the payment route carries one. At most 36 bytes, so a non-ASCII character counts as more than one.

referencestring

Your own ID for the payout, at most 128 bytes. Unique across every payout in this mode, including failed and cancelled ones. A repeat returns 409 REFERENCE_EXISTS.

fx_quote_idstring

An fxq_… ID, stored and returned for your own records, for example the conversion that funded the payout. It is only checked for format. It does not select or change the money the payout is paid from.

Any other field, including metadata, is rejected with 400 REQUEST_BODY_INVALID.

Shell
curl https://api.withsuperpay.com/v1/payouts \
  -H "Authorization: Bearer $SUPERPAY_TOKEN" \
  -H "Idempotency-Key: 3f1c2a9e-6b7d-4e21-9a45-0c8d7f5e2b10" \
  -H "Content-Type: application/json" \
  -d '{
    "originator_id": "org_01M2FPKH20W4N5X6M3P9R2T1VA",
    "beneficiary_id": "ben_01M2FPNHGG6C8D0F2H4K6M8P0R",
    "amount": { "amount": 5000000, "currency": "INR" },
    "purpose_code": "P1301",
    "purpose_description": "Family maintenance",
    "reference": "INV-2026-0042"
  }'

The response carries Location: /v1/payouts/{id}. At this point nothing has been checked against your balance and nothing has been sent to the bank.

Before you create a payout#

RequirementCheckedIf it isn't met
The beneficiary has payouts_enabled: true. See Beneficiaries.At create422 BENEFICIARY_NOT_PAYABLE, with a sub_code
The beneficiary belongs to the originator you send.At create422 BENEFICIARY_ORIGINATOR_MISMATCH
The originator is ACTIVE. See Originators.After createPayout FAILED with ORIGINATOR_NOT_ACTIVE
Neither the originator nor the beneficiary was rejected on sanctions screening. Their verification.payable shows it.After createPayout FAILED with COMPLIANCE_REJECTED
A banking partner may credit the beneficiary's account type in this mode, and can carry the amount. See Account types that can be paid.After createPayout FAILED with BENEFICIARY_NOT_PAYABLE or LIMIT_EXCEEDED
Your INR available balance covers amount + fee.After createPayout FAILED with INSUFFICIENT_FUNDS
The originator and the beneficiary still hold what a payout needs of each. See What is sent with a payout.When the payout is sentPayout FAILED with ORIGINATOR_NOT_ACTIVE or BENEFICIARY_NOT_PAYABLE. failure.reason names the missing fields
The route chosen for the payout may still pay the beneficiary's account. See What is sent with a payout.When the payout is sentPayout FAILED with BENEFICIARY_NOT_PAYABLE

Payouts spend INR. Get INR into your balance with a conversion, then check your balance.

payouts_enabled is not the whole story

payouts_enabled can stay true for a party that was rejected on sanctions screening. The create then succeeds, and the payout fails with COMPLIANCE_REJECTED. Gate payouts on the beneficiary's and the originator's verification.payable, which also accounts for screening. See Verification.

Neither field says whether the account's type can be paid in this mode. That is checked after create, and a payout to an account type that cannot be paid fails with BENEFICIARY_NOT_PAYABLE.

Retries and duplicates#

SituationDo this
Timeout, network error or 5xxRetry with the same Idempotency-Key and body. You get the payout; it is never created twice.
409 RESOURCE_LOCKEDThe first request is still running. Retry the same key shortly.
Another 4xx about the request or the payout, such as INVALID_ARGUMENT, REFERENCE_EXISTS or BENEFICIARY_NOT_PAYABLEThe error is stored against the key and returned again for it. Fix the request and send it with a new key.
Same key, different body409 IDEMPOTENCY_KEY_REUSED.

A replayed response has the header Idempotent-Replayed: true. Its body is normally the response to the first request, so status can be out of date. Retrieve the payout for its current status. reference is a second, permanent guard against duplicates. See Conventions.

Retrieve a payout#

GET/v1/payouts/{id}payouts:read
idstringRequired

The po_… ID. Path parameter.

An ID that doesn't exist, belongs to the other mode or isn't a valid payout ID returns 404 PAYOUT_NOT_FOUND.

Shell
curl https://api.withsuperpay.com/v1/payouts/po_01M2FPYTCG9B1D3F5H7K9M1P3R \
  -H "Authorization: Bearer $SUPERPAY_TOKEN"

List payouts#

GET/v1/payoutspayouts:read

Newest first. Filters combine.

limitinteger

Page size, 1 to 100. Default 10.

starting_afterstring

A payout ID. Returns the page of older payouts after it.

ending_beforestring

A payout ID. Returns the page of newer payouts before it. Can't be combined with starting_after. See Pagination.

statusstring

Only payouts in this status. Exact, upper-case status name.

beneficiary_idstring

Only payouts to this beneficiary. An unknown ID returns an empty page, not an error.

Shell
curl "https://api.withsuperpay.com/v1/payouts?limit=2" \
  -H "Authorization: Bearer $SUPERPAY_TOKEN"

Paging#

FieldMeaning
object"list"
dataPayouts, newest first. [] when nothing matches.
has_nexttrue if older payouts exist beyond this page.
  • Older: while has_next is true, pass the last id in data as starting_after.
  • Newer: pass the first id in data as ending_before. On these pages has_next is always true. You have reached the newest payouts when data holds fewer than limit items.
  • There is no total count. Payout IDs sort by creation time, so any ID works as a cursor.

Cancel a payout#

POST/v1/payouts/{id}/cancelpayouts:write
idstringRequired

The po_… ID. Path parameter.

No body. Send an Idempotency-Key header.

A cancel is a request. Whether it stops the payout depends on how far the payout has got:

Status when you cancelResponseWhat happens
CREATED, VALIDATING, COMPLIANCE_REVIEW200, status: CANCELLEDCancelled immediately. Nothing was held.
APPROVED, FUNDS_RESERVED200, status unchanged, cancel_requested_at setSuperpay cancels it shortly and releases any held funds. Poll for CANCELLED, or wait for payout.cancelled. If the payout moved on to SUBMISSION_PENDING first, it continues.
SUBMISSION_PENDING, SUBMITTED, PROVIDER_PENDING, UNKNOWN200, status unchanged, cancel_requested_at setNot cancelled. The payout continues to its outcome.
COMPLETED, FAILED, CANCELLED, REVERSED409 PAYOUT_NOT_CANCELLABLENothing.

Cancelling again before the payout is final changes nothing and returns 200. Once it is final, a cancel returns 409 PAYOUT_NOT_CANCELLABLE, even if you asked to cancel earlier.

When a cancel does not complete in the request, Superpay records a payout.cancel_requested event, including for a payout that is too far along to be cancelled.

No recall

From SUBMISSION_PENDING on, a payout can't be stopped or recalled. Always check status in the response: 200 alone doesn't mean cancelled.

Shell
curl -X POST https://api.withsuperpay.com/v1/payouts/po_01M2FQEY0G6G8J0M2P4R6T8W0Y/cancel \
  -H "Authorization: Bearer $SUPERPAY_TOKEN" \
  -H "Idempotency-Key: cancel-7c2e9b14-5a3f-4d8e-b6a1-2f9e0d4c8a37"

The payout object#

Optional fields are left out when empty; they are never null. Timestamps are UTC, whole seconds.

FieldTypeDescription
objectstring"payout"
idstringpo_…
originator_idstringThe sender, org_…
beneficiary_idstringThe recipient, ben_…
corridorstringIN-INR-BANK: INR to an Indian bank account. Payouts created before this corridor replaced it show IN-NRE. IN-INR-UPI: INR to a UPI ID. Set from the beneficiary's account, never from the request.
amountobjectThe payout amount. Integer paise, INR.
feeobjectSuperpay's fee, same currency. Fixed at creation and never changes. Can be 0.
tax_withheldobjectOptional. Tax withheld at source on the credit, when the banking partner reports it. The beneficiary receives amount minus tax_withheld. It does not change what leaves your balance.
statusstringWhere the payout is. Build on this. See Statuses.
compliance_statusstringInformational. See Detail statuses.
provider_statusstringInformational. See Detail statuses.
ledger_statusstringInformational. See Detail statuses.
settlement_statusstringInformational. See Detail statuses.
reconciliation_statusstringInformational. See Detail statuses.
purpose_codestringThe RBI purpose code, upper case.
purpose_descriptionstringOptional. As sent.
referencestringOptional. Your reference, as sent.
fx_quote_idstringOptional. As sent.
bank_referencestringThe payment reference from the banking network, typically the UTR for a bank account. A payout to a UPI ID carries whatever reference the network reports for the payment. Appears once known: usually by COMPLETED, sometimes earlier. Share it with the beneficiary.
railstringThe Indian payment rail used: for a bank account IMPS, NEFT or RTGS, when reported; for a UPI ID UPI. Informational.
failureobjectPresent on FAILED and REVERSED: code (string) and reason (string, optional). See Failure codes.
cancel_requested_attimestampWhen you first asked to cancel. Stays set, even if the payout went on to complete.
livemodebooleantrue for a live-mode token, false for test mode.
created_attimestampWhen Superpay accepted the payout.
updated_attimestampLast change of any kind. Can move without a status change.
submitted_attimestampWhen Superpay's banking partner acknowledged the payout.
completed_attimestampWhen the payout reached a final status: COMPLETED, FAILED, CANCELLED or REVERSED. Updated again if a completed payout is reversed.

The payout object carries IDs only. It contains no bank account details or personal data. What Superpay sends its banking partner with the payout is in What is sent with a payout.

tax_withheld can appear a moment after the payout completes. It changes updated_at but sends no event.

Detail statuses#

These add detail to status. Don't build logic on them: branch on status and failure.code.

FieldValuesMeaning
compliance_statusPENDING, APPROVEDAPPROVED once the payout passes Superpay's checks. Stays PENDING on payouts that fail or are cancelled before that.
provider_statusNOT_SUBMITTED, SUBMITTED, ACCEPTED, PENDING, COMPLETED, FAILED, RETURNED, UNKNOWNThe payout's status as reported by Superpay's banking partner.
ledger_statusNONE, RESERVED, POSTED, RELEASED, REVERSEDWhat has happened to your balance: nothing held, held, debited, hold released, returned. See Your balance.
settlement_statusNOT_SETTLEDCurrently always NOT_SETTLED.
reconciliation_statusNOT_RECONCILED, MATCHED, DISCREPANCYSuperpay's own record-matching. Can change after the payout is final.

Statuses#

CREATEDVALIDATINGAPPROVEDFUNDS_RESERVEDSUBMISSION_PENDINGSUBMITTEDPROVIDER_PENDINGCOMPLETED

Every stage after CREATED happens in the background. Stages can be skipped, for example SUBMITTED straight to COMPLETED.

Happy path#

StatusMeaningWhat you do
CREATEDAccepted. Only the request has been checked.Wait. Can be cancelled.
VALIDATINGChecking the originator and beneficiary are still payable, including sanctions screening, and that a banking partner may credit the account's type and carry the amount.Wait. Can be cancelled.
APPROVEDChecks passed. Funds are about to be held.Keep enough INR available. Can be cancelled.
FUNDS_RESERVEDamount + fee held from your balance. Superpay is choosing a banking partner that can credit the account.Wait. Can be cancelled. See Waiting for a banking partner.
SUBMISSION_PENDINGBeing sent to Superpay's banking partner. Superpay retries safely.Wait. No longer cancellable.
SUBMITTEDSuperpay's banking partner acknowledged the payout.Wait.
PROVIDER_PENDINGBeing processed by the Indian banking network.Wait.
COMPLETEDThe beneficiary's bank has been credited.Share bank_reference. A return is still possible: see REVERSED.

Exceptions#

StatusMeaningWhat you do
UNKNOWNThe outcome isn't confirmed yet, for example after a timeout. Funds stay held while Superpay confirms with its banking partner. Not a failure.Wait and poll less often. Don't create a replacement payout: the original can still complete, and the beneficiary would be paid twice.
FAILEDNot paid. Any held funds are back in your available balance.Read failure.code. Fix the cause, then create a new payout with a new reference and Idempotency-Key.
CANCELLEDCancelled at your request before it was sent. Any held funds are back in your available balance.Nothing.
REVERSEDCompleted, then returned by the beneficiary's bank. failure.code is PROVIDER_RETURNED.Confirm the account details with the originator before paying again.

Final statuses: COMPLETED, FAILED, CANCELLED, REVERSED. UNKNOWN is not final. COMPLETED has one exit, to REVERSED.

COMPLIANCE_REVIEW is also a valid status, status filter value and event type, for a payout held for review by Superpay. Payouts do not enter it today.

Waiting for a banking partner#

A payout in FUNDS_RESERVED goes to a banking partner that can credit the beneficiary's account, has verified it, and can take the amount. When no partner can take it yet, the payout waits in FUNDS_RESERVED, with amount + fee held and provider_status NOT_SUBMITTED, and Superpay keeps trying.

  • There is no time limit. The payout moves on as soon as a partner can take it.
  • The API does not say why a payout is waiting. If one stays in FUNDS_RESERVED longer than you expect, contact Superpay with its id.
  • To give up, cancel it. The held funds are released.
  • A payout that no banking partner could ever take does not reach FUNDS_RESERVED. It fails when it is checked, before any funds are held: with BENEFICIARY_NOT_PAYABLE when none may credit the account's type in this mode, and with LIMIT_EXCEEDED when none can carry the amount, for example one under ₹1.00. See Failure codes. A payout already in FUNDS_RESERVED when that becomes true is not failed: it waits until you cancel it.

What is sent with a payout#

Superpay's main route keeps no record of a sender or of an account holder. When a payout in SUBMISSION_PENDING is sent, Superpay reads the originator's and the beneficiary's details as they are at that moment and sends them to its banking partner with the payout: the sender's name, email, address, nationality, country of residence, date of birth and identity document, and the account with its holder's nationality, date of birth, address and identity document.

Superpay also checks once more, on every route, that the route may pay the account as its type is known at that moment.

At that momentThe payout
A party lacks a field a payout needs of it (originator, beneficiary), or its personal data has been erasedIs not sent. FAILED with ORIGINATOR_NOT_ACTIVE or BENEFICIARY_NOT_PAYABLE, and failure.reason names the missing fields, or says the details are not available when the data was erased
A party's address is longer than 128 characters once its parts are joined by single spaces, or the account holder's identity document is not a passport or a national IDIs not sent. FAILED with PROVIDER_REJECTED
The route may no longer pay the account: a bank's answer has shown its type to be another since the payout was checked, or what the route can pay in this mode has changedIs not sent. FAILED with BENEFICIARY_NOT_PAYABLE

In every case the funds the payout held return to available. Correct the party, then create a new payout: the new one carries the corrected details. Where the account's type is the cause, read Account types that can be paid first: a new payout to the same account can fail the same way.

Failure codes#

failure.reason is human-readable and can change. It can carry a short code or text passed on from the banking network, or only the outcome (FAILED, CANCELED, REVERSED) when no more can be passed on. When a payout was not sent because a party's details were incomplete, it names the missing request fields. Don't parse it or show it to your end users: branch on failure.code, and treat a code you don't recognise as a generic failure.

failure.codeStatusWhenYour balanceWhat you do
ORIGINATOR_NOT_ACTIVEFAILEDThe originator wasn't ACTIVE when the payout was checked. Or, when the payout was sent, the originator lacked a field a payout needs or its personal data had been erased: see What is sent with a payout.Nothing was held at the check. Released when it failed at sending.If the originator is PENDING or VERIFYING, supply what its verification lists or wait for ACTIVE, then create a new payout. If it is REJECTED or SUSPENDED, see originator statuses. If failure.reason names fields, correct the originator with them first.
BENEFICIARY_NOT_PAYABLEFAILEDThe beneficiary stopped being payable before the payout was checked, for example it was deleted straight after you created the payout. Or no banking partner may credit the account's type in this mode: see Account types that can be paid. 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.Nothing was held at the check. Released when it failed at sending.Fix or replace the beneficiary, then create a new payout. If failure.reason names fields, correct the beneficiary with them first. If the account's type cannot be paid in this mode, a new payout to the beneficiary fails the same way. If the declared type is wrong, create a new beneficiary with the right one: a verified beneficiary's declared type is locked. Otherwise pay another account, or contact Superpay.
COMPLIANCE_REJECTEDFAILEDThe originator or the beneficiary was rejected on sanctions screening.Nothing was held.Don't resubmit. Contact Superpay. The party's verification shows KYC_REJECTED_SANCTIONS.
LIMIT_EXCEEDEDFAILEDA banking partner may credit the account, but none can carry this amount in one payout: it is under ₹1.00, or over a per-payout cap, where the route to the account has one. A payout to a UPI ID carries at most ₹1,00,000.00.Nothing was held.Create a new payout of at least ₹1.00. If a larger amount was refused, contact Superpay for the cap that applies to the account; for a UPI ID, send several payouts or pay a bank account.
INSUFFICIENT_FUNDSFAILEDYour INR available balance didn't cover amount + fee.Nothing was held.Add INR, then create a new payout.
PROVIDER_REJECTEDFAILEDSuperpay's banking partner refused the payout before accepting it. Or Superpay did not send it, because the route cannot take a party's address or identity document.Released.Check the payout and both parties' details, then create a new payout. If it repeats, contact Superpay.
RETRY_WINDOW_EXPIREDFAILEDSuperpay couldn't hand the payout to its banking partner within its retry limit.Released.Create a new payout.
PROVIDER_FAILEDFAILEDThe payment failed in the banking network after it was sent.Released.Create a new payout if it should still be paid.
ACCOUNT_TYPE_REJECTED_BY_BANKFAILEDThe beneficiary's bank refused the credit because of the account's type.Released.Create a new payout. Superpay uses what it learned about the account to route it: the new payout goes to a partner that may credit the account, or fails with BENEFICIARY_NOT_PAYABLE when none may in this mode. If it fails with this code again, contact Superpay.
PROVIDER_RETURNEDREVERSEDThe beneficiary's bank returned a completed payment.amount returned. The fee is not.Confirm the account details, then create a new payout.
A failed payout (excerpt)
{
  "object": "payout",
  "id": "po_01M2FPVYK07Z9B1D3F5H7K9M1P",
  "status": "FAILED",
  "compliance_status": "APPROVED",
  "provider_status": "NOT_SUBMITTED",
  "ledger_status": "NONE",
  "failure": {
    "code": "INSUFFICIENT_FUNDS",
    "reason": "insufficient available balance"
  },
  "completed_at": "2026-09-30T10:19:41Z"
}
A payout to an account type that cannot be paid (excerpt)
{
  "object": "payout",
  "id": "po_01M2FQ7C3R5T7V9X1Z3B5D7F9H",
  "status": "FAILED",
  "compliance_status": "PENDING",
  "provider_status": "NOT_SUBMITTED",
  "ledger_status": "NONE",
  "failure": {
    "code": "BENEFICIARY_NOT_PAYABLE",
    "reason": "no route may credit the beneficiary's account"
  },
  "completed_at": "2026-09-30T10:21:03Z"
}
A payout that was not sent (excerpt)
{
  "object": "payout",
  "id": "po_01M2FQ1T4N6Q8S0V2W4Y6A8C0E",
  "status": "FAILED",
  "compliance_status": "APPROVED",
  "provider_status": "NOT_SUBMITTED",
  "ledger_status": "RELEASED",
  "failure": {
    "code": "BENEFICIARY_NOT_PAYABLE",
    "reason": "the beneficiary's details are incomplete: date_of_birth, id_document.number"
  },
  "completed_at": "2026-09-30T10:24:09Z"
}

Your balance#

Creating a payout doesn't touch your balance.

WhenEffect on your INR balance
FUNDS_RESERVEDamount + fee move from available to reserved.
COMPLETEDamount + fee leave reserved.
FAILED or CANCELLED after funds were heldamount + fee move back to available.
REVERSEDamount is added to available, in full even if tax was withheld. The fee is not returned.

Check balances with GET /v1/balances.

Purpose codes#

Every payout needs an RBI purpose code for personal remittances.

purpose_codeUse for
P1301Family maintenance and savings
P1302Personal gifts and donations
P1303See the RBI purpose-code list
P1304See the RBI purpose-code list
P1306See the RBI purpose-code list

Any other value returns 400 INVALID_ARGUMENT on purpose_code. Choose the code that matches the real reason for the payment.

Track a payout#

Subscribe a webhook to payout.* to hear about every status change. Each event carries the payout as it changed, without purpose_description, tax_withheld, the detail statuses or failure.reason. Order one payout's events by resource.version.

To poll instead:

  • Poll GET /v1/payouts/{id} with backoff: a few seconds at first, stretching to a minute or more while the payout is SUBMITTED or PROVIDER_PENDING.
  • Poll UNKNOWN payouts less often. They resolve once Superpay's banking partner confirms the outcome.
  • Tracking many payouts? List them with a status filter, such as ?status=PROVIDER_PENDING, instead of fetching each one.
  • Stop at a final status. Returns can arrive days after completion, so check for new REVERSED payouts with ?status=REVERSED, or listen for payout.reversed.
  • Access tokens expire and there is no refresh token. Request a new one before expires_in runs out. See Authentication.
  • If a payout looks stuck, contact Superpay with its id.
Node.js
const FINAL = new Set(["COMPLETED", "FAILED", "CANCELLED", "REVERSED"]);

async function waitForPayout(id, getToken) {
  let delay = 2000;
  for (;;) {
    const res = await fetch(`https://api.withsuperpay.com/v1/payouts/${id}`, {
      headers: { Authorization: `Bearer ${await getToken()}` },
    });
    if (res.ok) {
      const payout = await res.json();
      if (FINAL.has(payout.status)) return payout;
    } else if (res.status < 500) {
      throw new Error(`GET payout failed: ${res.status}`);
    }
    await new Promise((resolve) => setTimeout(resolve, delay));
    delay = Math.min(delay * 2, 60000);
  }
}

Errors#

Errors are problem documents. Branch on code.

codeHTTPWhenWhat you do
INVALID_ARGUMENT400A field or query parameter is invalid. errors[] lists each one.Fix the fields. Retry with a new Idempotency-Key.
REQUEST_BODY_INVALID400Malformed JSON, an unknown field, a wrong type, or a malformed money object such as a non-integer amount or a lower-case currency.Send the documented body with a new Idempotency-Key.
IDEMPOTENCY_KEY_REQUIRED400Create or cancel without an Idempotency-Key.Add the header.
IDEMPOTENCY_KEY_INVALID400The key isn't 16–64 printable ASCII characters without spaces.Use a UUID.
PAYOUT_NOT_FOUND404Retrieve or cancel: no such payout in this mode.Check the ID and your token's mode.
REFERENCE_EXISTS409Create: another payout in this mode already has this reference.Use a new reference with a new key. If you are retrying a create that may have succeeded, resend it with its original key to get that payout.
PAYOUT_NOT_CANCELLABLE409Cancel: the payout is already final.Nothing to cancel.
IDEMPOTENCY_KEY_REUSED409The key was used for a different request.Use a new key.
RESOURCE_LOCKED409A request with this key is still running. retryable: true.Retry with the same key shortly.
IDEMPOTENCY_LEASE_LOST409The request ran too long and a retry with the same key took it over.Retry with the same key.
BENEFICIARY_NOT_FOUND422Create: no such beneficiary in this mode.Check the ID and your token's mode.
BENEFICIARY_ORIGINATOR_MISMATCH422Create: the beneficiary belongs to a different originator.Send the beneficiary's own originator_id.
BENEFICIARY_NOT_PAYABLE422Create: the beneficiary's payouts_enabled is false. sub_code says why.See Why a beneficiary is not payable.
CURRENCY_MISMATCH422Create: amount.currency isn't the beneficiary's currency.Send INR.
IDEMPOTENCY_RECOVERY_FAILED503An interrupted request couldn't be recovered yet. retryable: true.Retry with the same key.
INTERNAL500Unexpected error.Retry with the same key. If it persists, contact Superpay with the X-Request-Id.

Why a beneficiary is not payable#

BENEFICIARY_NOT_PAYABLE carries a sub_code from the verification reasons, and a detail you can show a person. Check the beneficiary's status first: a DELETED beneficiary is never payable, whatever its sub_code says.

422 Unprocessable Entity
{
  "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"
}
sub_codeWhat you do
KYC_PENDINGWait for beneficiary.verified, or poll until payouts_enabled is true. Then create the payout with a new key.
KYC_REQUIREMENTS_DUERead the beneficiary's verification and supply what requirements_due lists: the declared account type, or the account holder's identity.
KYC_EXPIREDThe account's verification gave no verdict. Send the beneficiary's details again (the same values are enough), or upload a document, to have it verified again.
KYC_REJECTED_NAME_MISMATCHThe bank holds a different name. See Name matching.
KYC_REJECTED_BANK_ACCOUNT_INVALIDCheck the account number, the IFSC and the holder's name. A different account number or IFSC is a new beneficiary.
KYC_SUSPENDED, KYC_REJECTED_SANCTIONS, KYC_REJECTED_OTHERContact Superpay.
Any otherRead the beneficiary's verification for what can be corrected.

Field errors in errors[]:

fieldcodemessage
originator_idparameter_value_invalidinvalid originator id
beneficiary_idparameter_value_invalidinvalid beneficiary id
amountparameter_value_invalidpositive amount with a currency
purpose_codeparameter_emptypurpose_code is required
purpose_codeparameter_value_invalidRBI personal remittance purpose code (P1301 family)
purpose_descriptionparameter_max_length_invalidat most 36 characters
referenceparameter_max_length_invalidat most 128 characters
fx_quote_idparameter_value_invalidinvalid quote id
limitparameter_range_invalid1-100
statusparameter_value_invalidnot a payout status
starting_afterparameter_value_invalidpass starting_after or ending_before, not both

Create collects every field error into one response.

400 Bad Request
{
  "type": "about:blank",
  "title": "Invalid request",
  "status": 400,
  "instance": "/v1/payouts",
  "code": "INVALID_ARGUMENT",
  "request_id": "req_01M2FPZKS04D6F8H0K2M4P6R8T",
  "errors": [
    {
      "code": "parameter_value_invalid",
      "message": "RBI personal remittance purpose code (P1301 family)",
      "field": "purpose_code"
    }
  ]
}

Authentication, scope and other shared errors are on Errors. The same failure codes are summarised in Failures on objects.