Balances
Your INR and USD balances at Superpay, how much INR you can pay out now, and the retired stablecoin fundings.
Your balance at Superpay holds the INR your conversions produce and your payouts spend. Your stablecoins are not part of it: they wait in your custody account until a conversion needs them.
| Endpoint | Scope | Use |
|---|---|---|
GET /v1/balances | balances:read | What you hold, per currency |
GET /v1/treasury/capacity | treasury:read | How much INR you can pay out now, and whether Indian banking hours are open |
GET /v1/treasury/fundings | treasury:read | Your earlier stablecoin fundings |
GET /v1/treasury/fundings/{id} | treasury:read | One earlier stablecoin funding |
POST /v1/treasury/fundings | treasury:manage | Retired. Announcing a USDC or USDT funding returns 410 FUNDING_DEPRECATED |
Retrieve balances#
/v1/balancesbalances:readReturns one balance per currency you hold:
| Currency | Where it comes from |
|---|---|
INR | Conversions credit it. Payouts spend it |
USD | Credited from your custody account for a conversion, and spent by it straight away. Usually 0. It appears after your first conversion funded from custody |
currencystringQuery parameter. Return only this currency, e.g. INR. Upper case, 3–5 letters. A currency you have never held returns an empty data array.
curl https://api.withsuperpay.com/v1/balances \
-H "Authorization: Bearer $SUPERPAY_TOKEN"{
"data": [
{
"object": "balance",
"currency": "INR",
"available": { "amount": 3295750, "currency": "INR" },
"reserved": { "amount": 5012500, "currency": "INR" },
"pending": { "amount": 0, "currency": "INR" },
"livemode": false
},
{
"object": "balance",
"currency": "USD",
"available": { "amount": 0, "currency": "USD" },
"reserved": { "amount": 0, "currency": "USD" },
"pending": { "amount": 0, "currency": "USD" },
"livemode": false
}
],
"has_next": false,
"object": "list"
}Amounts are integers in minor units: INR and USD both have 2 decimals. Above, 3295750 is ₹32,957.50, and the reserved 5012500 is a ₹50,000.00 payout plus its ₹125.00 fee, not yet completed.
Only booked money appears. Stablecoins in your custody account never do: read them with GET /v1/custody.
The balance object#
| Field | Type | Description |
|---|---|---|
object | string | balance |
currency | string | INR or USD |
available | money | Yours to use now: to convert or to pay out |
reserved | money | Held for work in flight: conversions not yet executed and payouts not yet completed |
pending | money | Reserved for future use. Always 0 today |
livemode | boolean | true for live credentials, false for test |
- Items are sorted by currency code.
- The list is not paginated.
has_nextis alwaysfalse. - An account with no credited funds returns
"data": []. - Test and live balances are separate.
What moves your balance#
| Event | Effect |
|---|---|
| A conversion funded from custody starts | The USD pulled from your custody account is credited, and the conversion's sell moves from USD available to reserved |
| The conversion executes | The USD leaves reserved. The INR buy is added to available |
| The conversion fails after its USD was reserved | The USD returns to available, and your next USD conversion spends it first |
A payout reaches FUNDS_RESERVED | The amount plus fee moves from available to reserved in INR |
| The payout completes | The amount plus fee leaves reserved |
| The payout fails or is cancelled after its funds were reserved | The amount plus fee returns to available |
| The beneficiary's bank returns a completed payout | The amount returns to available. The fee is not returned |
Step-by-step figures: Conversions: effect on balances and Payouts: your balance.
Payout capacity#
/v1/treasury/capacitytreasury:readHow much INR you can pay out right now, and whether Indian banking hours are open. Check it before a large payout.
corridorstringQuery parameter. Defaults to IN-INR-BANK, payouts to Indian bank accounts. IN-NRE, its earlier name, is accepted too. Omit it.
curl https://api.withsuperpay.com/v1/treasury/capacity \
-H "Authorization: Bearer $SUPERPAY_TOKEN"{
"object": "treasury_capacity",
"corridor": "IN-INR-BANK",
"funding_model": "TENANT_PREFUND",
"capacity": { "amount": 3295750, "currency": "INR" },
"tenant_available": { "amount": 3295750, "currency": "INR" },
"livemode": false,
"banking_window": {
"open": true,
"next_open": "2026-10-01T09:30:00+05:30",
"next_cutoff": "2026-09-30T16:30:00+05:30",
"zone": "Asia/Kolkata"
},
"as_of": "2026-09-30T10:21:30Z"
}The capacity object#
| Field | Type | Description |
|---|---|---|
object | string | treasury_capacity |
corridor | string | IN-INR-BANK, whichever name you sent |
funding_model | string | TENANT_PREFUND: payouts are paid from your own INR balance |
capacity | money | INR you can pay out now. Never more than tenant_available and never negative. Can be lower than tenant_available when payout liquidity is constrained |
tenant_available | money | Your available INR balance. USD and your custody holdings are not counted: convert first |
livemode | boolean | true for live credentials |
banking_window | object | Indian banking hours. See Banking window |
as_of | string | UTC time the figures were computed |
Capacity is a snapshot at as_of, not a hold on funds.
Banking window#
| Field | Type | Description |
|---|---|---|
open | boolean | true during banking hours on a business day |
next_open | string | Optional. When banking hours next open |
next_cutoff | string | Optional. When banking hours next close |
zone | string | Asia/Kolkata |
- Banking hours are 09:30–16:30 IST, Monday to Friday, unless Superpay's banking calendar marks the day otherwise.
- While open,
next_cutoffis today's 16:30 andnext_openis the next business day's 09:30. - While closed, both refer to the next opening: today's if it is a business day before 09:30, otherwise the next business day's.
next_openandnext_cutoffcarry the+05:30offset. Every other timestamp in the API is UTC.
Stablecoin fundings#
Stablecoin balances are no longer held at Superpay. You used to announce a USDC or USDT deposit with POST /v1/treasury/fundings and hold the stablecoins in your balance. Now you deposit them into your custody account, where they stay until a conversion needs them.
/v1/treasury/fundingstreasury:manageAnnouncing a USDC or USDT funding returns 410 Gone with code FUNDING_DEPRECATED. The Idempotency-Key and the JSON body are checked first; the other fields are not. Any other asset fails validation with 400 INVALID_ARGUMENT. Unlike other problem documents, the 410's title is gone and it has no instance. The refusal is stored against its Idempotency-Key like any 4xx.
Your earlier fundings can still be read:
/v1/treasury/fundingstreasury:read/v1/treasury/fundings/{id}treasury:readThe list is newest first. It takes limit (1 to 100, default 10) and starting_after (a tf_… id), and no filters. An unknown or malformed id, or one from the other mode, returns 404 FUNDING_NOT_FOUND.
| Field | Type | Description |
|---|---|---|
object | string | treasury_funding |
id | string | tf_… |
corridor | string | IN-NRE or IN-INR-BANK |
status | string | ANNOUNCED, DETECTED, CONFIRMED, CREDITED (final), RETURNED (final, nothing credited) or UNKNOWN |
amount | money | The amount announced, in the funding asset |
credited_amount | money | Optional. The amount credited, when one is recorded. It can differ from amount |
network | string | ethereum, polygon or tron |
deposit_address, deposit_memo | string | Optional. Where the deposit was to be sent |
external_reference | string | Optional. The on-chain transaction hash |
confirmations, required_confirmations | integer | Network confirmations seen, and needed |
reference | string | Optional. Your reference |
livemode | boolean | true for live credentials |
created_at, updated_at | string | UTC |
A funding announced earlier still moves to its final status. Its moves to DETECTED, CONFIRMED, CREDITED and RETURNED are announced by treasury.funding_* events. Contact Superpay about any stablecoin balance you still hold.
Errors#
Errors are problem documents. Key your handling on the HTTP status and code. Every endpoint here can also return the authentication errors on Errors.
| Code | HTTP | Endpoint | When | What to do |
|---|---|---|---|---|
INVALID_ARGUMENT | 400 | Balances, fundings list | currency is not an upper-case 3–5 letter code, or limit is not 1 to 100. errors[].field names the parameter | Fix the parameter |
CORRIDOR_UNKNOWN | 400 | Capacity | corridor is neither IN-INR-BANK nor IN-NRE | Omit corridor |
FUNDING_NOT_FOUND | 404 | Retrieve a funding | No funding with this id for your credentials' mode | Check the id and mode |
FUNDING_DEPRECATED | 410 | Announce a funding | Stablecoin fundings are retired | Deposit into custody |
| (varies) | 503 | Balances, capacity | Your balance could not be read. retryable is true | Retry after Retry-After |
| (varies) | 504 | Balances, capacity | Reading your balance timed out | Retry |
INTERNAL | 500 | Any | Unexpected error | Retry later. Quote request_id to Superpay if it persists |
Handle 503 and 504 by status. Their code values are not stable.