How it works

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#

ObjectID prefixWhat it isReady when
Business verificationcus_Your business, verified once per mode. It opens your custody account.status is ACTIVE
Custody accountcus_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
Quotefxq_A price for converting USD to INR. Holds nothing.status is ACTIVE, before expires_at
Conversionfxo_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.—
Originatororg_The person sending money: your customer. Each payout carries their details.verification.payable is true
Beneficiaryben_An Indian bank account that receives INR, and its holder's identity. Belongs to one originator.payouts_enabled and verification.payable are true
Payoutpo_INR sent from your balance to a beneficiary.status is COMPLETED
Eventevt_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.

#CallWait until
1Once per mode: POST /v1/business-verification. Nothing to call if your business is verified with the formGET /v1/business-verification shows status: "ACTIVE", announced by business.verification_updated
2Deposit USDC or USDT to a wallet listed by GET /v1/custodyThe wallet's balance shows it
3POST /v1/originatorsIts verification.payable is true, announced by originator.verified
4POST /v1/originators/{id}/beneficiariesIts payouts_enabled is true, announced by beneficiary.verified
5POST /v1/conversions/quotes, then POST /v1/conversions before expires_atThe conversion shows status: "EXECUTED", announced by fx.executed
6POST /v1/payoutsThe 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:

PartMeaning
availableMoney you can spend on conversions and payouts.
reservedMoney 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.

StepCustody walletUSD availableUSD reservedINR availableINR reserved
Deposit credited in your wallet12,500.000.000.000.000.00
Conversion EXECUTING: the dollars are pulled and held11,500.000.001,000.000.000.00
Conversion EXECUTED: USD spent, quoted INR credited11,500.000.000.0083,082.500.00
Payout FUNDS_RESERVED: amount + fee held11,500.000.000.0073,057.5010,025.00
Payout COMPLETED: the money leaves your balance11,500.000.000.0073,057.500.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 sell already includes the spread, shown as spread and spread_bps. rate.value is the all-in rate. When the conversion executes you receive exactly the quoted buy.
  • Custody. Superpay pulls only the shortfall: the conversion's sell less any USD already available, from one wallet.
  • Payouts. The fee is fixed when you create the payout and is held on top of amount.

When it does not complete#

OutcomeWhat happens to your money
Conversion FAILED before the pullNothing moved. Your wallet is unchanged.
Conversion FAILED after the pullThe pulled USD stays in your balance, available, and your next conversion spends it first.
Payout FAILED or CANCELLEDAnything held (amount + fee) returns to available.
Payout REVERSED: the beneficiary's bank returned a completed payoutThe payout amount is credited back to available. The fee is not refunded.
Payout or conversion UNKNOWNFunds 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.

CallChecked before 201Happens after 201
POST /v1/business-verificationYour business's details. They are submitted to Superpay's custody partner within the requestVerification by the custody partner. Starts PENDING, and can already be REJECTED
POST /v1/originatorsFields, and whether Superpay holds everything a payout needs of a sender: if so, the originator is ACTIVE in the responseNothing for an ACTIVE one. Otherwise it is PENDING until you supply what is due, or a check by Superpay passes
POST /v1/originators/{id}/beneficiariesFields; the originator exists and is not REJECTED or DELETED; whether anything a payout needs is missingVerification of the account, the holder's name included, once nothing is due. Starts PENDING
POST /v1/conversions/quotesYour business verification allows conversions; priced live by Superpay's banking partnerNothing. The quote holds no funds
POST /v1/conversionsThe quote is ACTIVE; one custody wallet holds the shortfall, read liveThe pull from your custody account, the hold on your USD, the conversion. Starts CREATED
POST /v1/payoutsFields; the beneficiary belongs to the originator and has payouts_enabled: true; the amount is INRThe 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 createWhileYou getLater
A payoutYour INR available is below amount + fee201, CREATEDFAILED, failure.code: "INSUFFICIENT_FUNDS"
A payoutThe originator is not ACTIVE201, CREATEDFAILED, failure.code: "ORIGINATOR_NOT_ACTIVE"
A payoutA party lacks a field a payout needs by the time the payout is sent201, CREATEDFAILED, failure.code: "ORIGINATOR_NOT_ACTIVE" or "BENEFICIARY_NOT_PAYABLE". Held funds are released
A payoutA party was rejected on sanctions screening201, CREATEDFAILED, failure.code: "COMPLIANCE_REJECTED"
A payoutNo banking partner may credit the account's type in this mode, or none can carry the amount201, CREATEDFAILED, failure.code: "BENEFICIARY_NOT_PAYABLE" or "LIMIT_EXCEEDED". Nothing was held
A conversionThe custody partner refuses the pull201, CREATEDFAILED, failure_reason: "CUSTODY_TRANSFER_FAILED: …"
A payoutThe beneficiary is not yet verified422, BENEFICIARY_NOT_PAYABLENothing was created
A conversionNo single custody wallet holds the shortfall422, CUSTODY_BALANCE_INSUFFICIENTNothing 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.

ObjectEventsStop waiting when
Business verificationbusiness.verification_updatedstatus is ACTIVE or REJECTED
Originatororiginator.verified, .rejected, .suspended, .verification_updatedverification.payable is true, or status is REJECTED, SUSPENDED or DELETED
Beneficiarybeneficiary.verified, .rejected, .name_mismatch, .suspended, .deleted, .verification_updatedpayouts_enabled is true, status is REJECTED, SUSPENDED or DELETED, or verification_status is MISMATCH
Conversionfx.executed, fx.failedstatus is EXECUTED or FAILED
Payoutpayout.*, one for most statusesstatus 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_PENDINGCOMPLETED

Base 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.

ObjectPolling
Payout, conversionFirst check after 2 seconds, then double the interval up to 60 seconds.
Payout or conversion in UNKNOWNEvery 5 minutes.
Originator, beneficiaryEvery 5 seconds for the first minute, then every 60 seconds.
Business verificationEvery few minutes.
Custody wallet balanceEvery 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.

Poll a payout with backoff
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.

TestLive
Client secret starts withsk_test_sk_live_
livemode on tokens and objectsfalsetrue
Custody walletsOn test networksOn the real networks
Processed byThe test environments of Superpay's partnersSuperpay's partners
Real money movesNoYes
  • 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 404 with 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.

See Testing and Go live.

Timing#

Superpay does not guarantee completion times. What you can rely on:

WhatExpect
Access tokenValid for expires_in seconds.
Business verificationDepends on Superpay's custody partner. No fixed time.
A deposit in a custody walletDepends on the network. No fixed time.
QuoteValid 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.
ConversionUsually leaves CREATED within seconds, once the custody partner accepts the pull. Execution depends on Superpay's banking partner.
OriginatorACTIVE 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 verificationDepends 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 payoutUsually leaves CREATED within seconds.
Payout no banking partner can take yetWaits in FUNDS_RESERVED, with no time limit, until one can or you cancel it.
Payout Superpay cannot hand to its banking partnerRetried 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 creditDepends on Superpay's banking partner and the beneficiary's bank. No fixed time.
Payout in UNKNOWNCan take several days to resolve. Funds stay held.
Bank returnA 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.

Next#