How it works
The objects, the one direction money moves, and how you hear about what happened.
You verify your business once, keep USDC or USDT in your own custody account, convert to INR when you need it, and pay INR into Indian bank accounts on behalf of your customers.
your wallet your custody account your Superpay balance India
USDC / USDT ───────▶ USDC / USDT ── conversion ──▶ INR ── payout ──▶ NRE, NRO or savings account
deposit (pulled when you accept) (bank_reference)The objects#
| Object | ID prefix | What it is | Ready when |
|---|---|---|---|
| Business verification | cus_ | Your business, verified once per mode. It opens your custody account. | status is ACTIVE |
| Custody account | cus_ | Your USDC and USDT, held in your name by Superpay's custody partner, with a deposit wallet per asset and network. | Its wallets are listed and hold funds |
| Quote | fxq_ | A price for converting USD to INR. Holds nothing. | status is ACTIVE, before expires_at |
| Conversion | fxo_ | Accepts a quote. Pulls the dollars it needs from your custody account and credits INR. | status is EXECUTED |
| Balance | — | Your money at Superpay: INR for payouts, and USD briefly while it is being converted. | — |
| Originator | org_ | The person sending money: your customer. Each payout carries their details. | verification.payable is true |
| Beneficiary | ben_ | An Indian bank account that receives INR, and its holder's identity. Belongs to one originator. | payouts_enabled and verification.payable are true |
| Payout | po_ | INR sent from your balance to a beneficiary. | status is COMPLETED |
| Event | evt_ | A record of a change to any of the above, also sent by webhook. | — |
Every object carries livemode. Timestamps are UTC, e.g. 2026-09-30T10:25:06Z. Amounts are objects with an integer amount in minor units and a currency: INR and USD have 2 decimals. See Conventions.
The flow#
Funding (steps 1–2) and onboarding your customers (steps 3–4) are independent. Run them in parallel.
| # | Call | Wait until |
|---|---|---|
| 1 | Once per mode: POST /v1/business-verification. Nothing to call if your business is verified with the form | GET /v1/business-verification shows status: "ACTIVE", announced by business.verification_updated |
| 2 | Deposit USDC or USDT to a wallet listed by GET /v1/custody | The wallet's balance shows it |
| 3 | POST /v1/originators | Its verification.payable is true, announced by originator.verified |
| 4 | POST /v1/originators/{id}/beneficiaries | Its payouts_enabled is true, announced by beneficiary.verified |
| 5 | POST /v1/conversions/quotes, then POST /v1/conversions before expires_at | The conversion shows status: "EXECUTED", announced by fx.executed |
| 6 | POST /v1/payouts | The payout shows status: "COMPLETED", announced by payout.completed |
Create beneficiaries once their originator is ACTIVE, which it can be in the response to step 3. The API accepts one earlier, but a payout needs both parties payable. The Quickstart walks through every call.
How money moves#
Your balance has two parts that matter:
| Part | Meaning |
|---|---|
available | Money you can spend on conversions and payouts. |
reserved | Money held for conversions and payouts in flight. It cannot be spent twice. |
GET /v1/balances also returns pending, which is currently always zero. Your custody wallets are not part of your balance: GET /v1/custody shows them.
Worked example#
You hold 12,500.00 USDC in a custody wallet. You convert 1,000.00 USD to INR, then pay ₹10,000.00 to a beneficiary.
| Step | Custody wallet | USD available | USD reserved | INR available | INR reserved |
|---|---|---|---|---|---|
| Deposit credited in your wallet | 12,500.00 | 0.00 | 0.00 | 0.00 | 0.00 |
Conversion EXECUTING: the dollars are pulled and held | 11,500.00 | 0.00 | 1,000.00 | 0.00 | 0.00 |
Conversion EXECUTED: USD spent, quoted INR credited | 11,500.00 | 0.00 | 0.00 | 83,082.50 | 0.00 |
Payout FUNDS_RESERVED: amount + fee held | 11,500.00 | 0.00 | 0.00 | 73,057.50 | 10,025.00 |
Payout COMPLETED: the money leaves your balance | 11,500.00 | 0.00 | 0.00 | 73,057.50 | 0.00 |
The API returns these in minor units: a wallet balance of 12,500.00 is {"amount": 1250000, "currency": "USD"}, and ₹83,082.50 is {"amount": 8308250, "currency": "INR"}.
Illustrative figures
The conversion rate and the ₹25.00 payout fee above are examples. Your spread and payout fees are set with Superpay.
- Conversions. A quote's
sellalready includes the spread, shown asspreadandspread_bps.rate.valueis the all-in rate. When the conversion executes you receive exactly the quotedbuy. - Custody. Superpay pulls only the shortfall: the conversion's
sellless any USD alreadyavailable, from one wallet. - Payouts. The
feeis fixed when you create the payout and is held on top ofamount.
When it does not complete#
| Outcome | What happens to your money |
|---|---|
Conversion FAILED before the pull | Nothing moved. Your wallet is unchanged. |
Conversion FAILED after the pull | The pulled USD stays in your balance, available, and your next conversion spends it first. |
Payout FAILED or CANCELLED | Anything held (amount + fee) returns to available. |
Payout REVERSED: the beneficiary's bank returned a completed payout | The payout amount is credited back to available. The fee is not refunded. |
Payout or conversion UNKNOWN | Funds stay reserved until the outcome is confirmed. |
Synchronous and asynchronous#
A request does only what it can finish inside the request: validate, check what is already known, and store the object. Three calls also consult a partner before answering: a business verification is submitted to the custody partner, a quote is priced by the banking partner, and accepting a quote reads your custody wallets. Everything else that involves Superpay's partners, the beneficiary's bank or your balance happens afterwards, in the background.
A 201 Created means accepted, not done.
| Call | Checked before 201 | Happens after 201 |
|---|---|---|
POST /v1/business-verification | Your business's details. They are submitted to Superpay's custody partner within the request | Verification by the custody partner. Starts PENDING, and can already be REJECTED |
POST /v1/originators | Fields, and whether Superpay holds everything a payout needs of a sender: if so, the originator is ACTIVE in the response | Nothing for an ACTIVE one. Otherwise it is PENDING until you supply what is due, or a check by Superpay passes |
POST /v1/originators/{id}/beneficiaries | Fields; the originator exists and is not REJECTED or DELETED; whether anything a payout needs is missing | Verification of the account, the holder's name included, once nothing is due. Starts PENDING |
POST /v1/conversions/quotes | Your business verification allows conversions; priced live by Superpay's banking partner | Nothing. The quote holds no funds |
POST /v1/conversions | The quote is ACTIVE; one custody wallet holds the shortfall, read live | The pull from your custody account, the hold on your USD, the conversion. Starts CREATED |
POST /v1/payouts | Fields; the beneficiary belongs to the originator and has payouts_enabled: true; the amount is INR | The originator must be ACTIVE and neither party rejected on sanctions screening; a banking partner must be able to credit the account's type in this mode and carry the amount; your balance is checked for amount + fee; funds are held; a banking partner that can credit the account is chosen; the payout goes to the bank, carrying the sender's and the account holder's details as they are then. Starts CREATED |
So a request can succeed and the object can still fail:
| You create | While | You get | Later |
|---|---|---|---|
| A payout | Your INR available is below amount + fee | 201, CREATED | FAILED, failure.code: "INSUFFICIENT_FUNDS" |
| A payout | The originator is not ACTIVE | 201, CREATED | FAILED, failure.code: "ORIGINATOR_NOT_ACTIVE" |
| A payout | A party lacks a field a payout needs by the time the payout is sent | 201, CREATED | FAILED, failure.code: "ORIGINATOR_NOT_ACTIVE" or "BENEFICIARY_NOT_PAYABLE". Held funds are released |
| A payout | A party was rejected on sanctions screening | 201, CREATED | FAILED, failure.code: "COMPLIANCE_REJECTED" |
| A payout | No banking partner may credit the account's type in this mode, or none can carry the amount | 201, CREATED | FAILED, failure.code: "BENEFICIARY_NOT_PAYABLE" or "LIMIT_EXCEEDED". Nothing was held |
| A conversion | The custody partner refuses the pull | 201, CREATED | FAILED, failure_reason: "CUSTODY_TRANSFER_FAILED: …" |
| A payout | The beneficiary is not yet verified | 422, BENEFICIARY_NOT_PAYABLE | Nothing was created |
| A conversion | No single custody wallet holds the shortfall | 422, CUSTODY_BALANCE_INSUFFICIENT | Nothing was created |
Most POST requests take an Idempotency-Key. If a request times out, retry it with the same key and body. A replayed response shows the object as it was when first created: GET it for its current state. See Idempotency and When to retry.
Hear about changes#
Changes to your objects are recorded as events. Subscribe an endpoint with a webhook to have events sent to you as they happen, signed and retried. Webhooks can arrive out of order and can be missed while your endpoint is down, so backfill from the event log to be sure you have them all.
| Object | Events | Stop waiting when |
|---|---|---|
| Business verification | business.verification_updated | status is ACTIVE or REJECTED |
| Originator | originator.verified, .rejected, .suspended, .verification_updated | verification.payable is true, or status is REJECTED, SUSPENDED or DELETED |
| Beneficiary | beneficiary.verified, .rejected, .name_mismatch, .suspended, .deleted, .verification_updated | payouts_enabled is true, status is REJECTED, SUSPENDED or DELETED, or verification_status is MISMATCH |
| Conversion | fx.executed, fx.failed | status is EXECUTED or FAILED |
| Payout | payout.*, one for most statuses | status is COMPLETED, FAILED, CANCELLED or REVERSED |
These are not always the end. A party whose verification.status is REQUIREMENTS_DUE is waiting for you: supply what requirements_due lists. A party or business verification whose correctable is true can be corrected, and an ACTIVE one can later be rejected or suspended: keep handling their events. Treat every status you do not recognise as in progress. A payout usually moves through:
CREATEDVALIDATINGAPPROVEDFUNDS_RESERVEDSUBMISSION_PENDINGSUBMITTEDPROVIDER_PENDINGCOMPLETEDBase your logic on a payout's status, failure and bank_reference. Its other status fields are informational.
Two states that are not what they seem
UNKNOWN is not a failure. Superpay is confirming the outcome with its banking partner, and funds stay held. Do not create a replacement payout or conversion: the original may still succeed and you would pay twice.
COMPLETED can later become REVERSED if the beneficiary's bank returns the money, sometimes days later. If you reconcile, keep listening for payout.reversed.
Polling instead#
Without webhooks, poll each object's GET endpoint. These are recommendations, not limits.
| Object | Polling |
|---|---|
| Payout, conversion | First check after 2 seconds, then double the interval up to 60 seconds. |
Payout or conversion in UNKNOWN | Every 5 minutes. |
| Originator, beneficiary | Every 5 seconds for the first minute, then every 60 seconds. |
| Business verification | Every few minutes. |
| Custody wallet balance | Every minute or two once you have sent a deposit. |
For many payouts, page through GET /v1/payouts filtered by status or beneficiary_id instead of fetching each one. Access tokens expire after expires_in seconds, so request a new one inside long polling loops. See Token lifetime.
const FINAL = new Set(['COMPLETED', 'FAILED', 'CANCELLED', 'REVERSED']);
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));
// getToken() returns a valid access token, requesting a new one when the old one has expired.
async function waitForPayout(id, getToken) {
let delay = 2000;
for (;;) {
await sleep(delay);
const res = await fetch(`https://api.withsuperpay.com/v1/payouts/${id}`, {
headers: { Authorization: `Bearer ${await getToken()}` },
});
// 429 and 5xx are temporary: keep polling. Any other error needs your attention.
if (!res.ok && res.status !== 429 && res.status < 500) {
throw new Error(`GET /v1/payouts/${id} returned ${res.status}`);
}
if (res.ok) {
const payout = await res.json();
if (FINAL.has(payout.status)) return payout;
if (payout.status === 'UNKNOWN') {
delay = 300000;
continue;
}
}
delay = Math.min(delay * 2, 60000);
}
}Test and live modes#
Your credentials decide the mode. Both modes use the same host, https://api.withsuperpay.com.
| Test | Live | |
|---|---|---|
| Client secret starts with | sk_test_ | sk_live_ |
livemode on tokens and objects | false | true |
| Custody wallets | On test networks | On the real networks |
| Processed by | The test environments of Superpay's partners | Superpay's partners |
| Real money moves | No | Yes |
- Data is fully separate. Business verification, custody account, balances, originators, beneficiaries, quotes, conversions, payouts, events and webhook subscriptions in one mode do not exist in the other. A test-mode ID returns
404with a live token. - Behaviour is the same. Validation, idempotency, statuses and error codes do not change between modes. Two things can differ: a test webhook URL may use
http, and the account types a payout can reach are set per mode. See Account types that can be paid. - Outcomes and timing in test mode depend on the partners' test environments.
- Going live means live credentials from Superpay, your business verified again in live mode, depositing into your live custody account, and onboarding your originators and beneficiaries again.
Timing#
Superpay does not guarantee completion times. What you can rely on:
| What | Expect |
|---|---|
| Access token | Valid for expires_in seconds. |
| Business verification | Depends on Superpay's custody partner. No fixed time. |
| A deposit in a custody wallet | Depends on the network. No fixed time. |
| Quote | Valid until expires_at, at most 60 seconds after creation. Accept it straight away. A quote priced by Superpay's dealing desk follows its own timing. |
| Conversion | Usually leaves CREATED within seconds, once the custody partner accepts the pull. Execution depends on Superpay's banking partner. |
| Originator | ACTIVE in the create response when it holds what a payout needs of a sender. Otherwise as soon as you supply what is due, or when a check by Superpay passes. |
| Beneficiary verification | Depends on Superpay's banking partner and the beneficiary's bank. No fixed time. Superpay asks for the verdict for up to 24 hours, after which the verification lapses and can be started again. |
| New payout | Usually leaves CREATED within seconds. |
| Payout no banking partner can take yet | Waits in FUNDS_RESERVED, with no time limit, until one can or you cancel it. |
| Payout Superpay cannot hand to its banking partner | Retried a limited number of times, never beyond 6 hours after submission starts, then FAILED with failure.code: "RETRY_WINDOW_EXPIRED". A short outage at the banking partner can be enough. Funds are released. |
| Payout credit | Depends on Superpay's banking partner and the beneficiary's bank. No fixed time. |
Payout in UNKNOWN | Can take several days to resolve. Funds stay held. |
| Bank return | A COMPLETED payout can become REVERSED days later. |
If an object stays in progress much longer than you expect, contact Superpay support with its ID and the X-Request-Id of a recent response.