Custody account
Where your stablecoins wait until you convert, with deposit addresses, live balances and the pulls that fund your conversions.
Your custody account holds your USDC and USDT, in your business's name, with Superpay's custody partner. It is opened when your business is verified: after its verification is submitted, through the API or the form. The coins stay yours and stay off Superpay's books: they are never part of your Superpay balance. Superpay moves coins out of the account only when you accept a conversion, and only as many as that conversion needs.
| Endpoint | Scope | Does |
|---|---|---|
GET /v1/custody | treasury:read | Retrieve your custody account: its deposit wallets, their live balances, and recent pulls |
POST /v1/custody/account | treasury:manage | Deprecated. Opens the account. Use POST /v1/business-verification |
Business verification ACTIVEDeposit USDC or USDTAccept a conversionSuperpay pulls what it needsINR in your balanceRetrieve your custody account#
/v1/custodytreasury:readReturns the account with its deposit wallets, each balance read live from the custody partner, and the last 20 pulls.
curl https://api.withsuperpay.com/v1/custody \
-H "Authorization: Bearer $SUPERPAY_TOKEN"{
"object": "custody_account",
"id": "cus_01M2FN8Q4Z6B8D0F2H4K6M8P0R",
"status": "ACTIVE",
"requirements_due": [],
"wallets": [
{
"asset": "USDC",
"network": "polygon",
"address": "0x8f3a2b61c47d9e05a1b3c5d7e9f1a2b4c6d8e0f1",
"balance": { "amount": 1150000, "currency": "USD" },
"observed_at": "2026-09-30T10:25:03Z"
},
{
"asset": "USDC",
"network": "ethereum",
"address": "0x8f3a2b61c47d9e05a1b3c5d7e9f1a2b4c6d8e0f1",
"balance": { "amount": 0, "currency": "USD" },
"observed_at": "2026-09-30T10:25:03Z"
},
{
"asset": "USDT",
"network": "tron",
"address": "TJ4fY3a9kXe1mWq7cN2vB8sR5hL6pD0gZu",
"balance": null
}
],
"pulls": [
{
"id": "ctr_01M2FPX0C2E4G6J8K0M2P4R6T8",
"conversion_id": "fxo_01M2FPY3K8D5N2Q7R9S4T6V8WX",
"amount": { "amount": 100000, "currency": "USD" },
"asset": "USDC",
"network": "polygon",
"status": "SETTLED",
"created_at": "2026-09-30T10:20:51Z"
}
],
"livemode": false,
"created_at": "2026-09-30T09:00:04Z",
"updated_at": "2026-09-30T09:12:40Z"
}This account held 12,500.00 USD of USDC on polygon before a conversion pulled 1,000.00 USD from it.
Until you have a business verification, this returns 404 CUSTODY_ACCOUNT_NOT_FOUND: before you submit it, or, if you are verified with the form, before your people have submitted it.
The response can take a few seconds, because each balance is read from the custody partner. A balance of null means that read failed: retry. GET /v1/business-verification is the faster call when you only need the verification status.
Deposit stablecoins#
Once your business verification is ACTIVE, wallets lists where you can deposit: one entry per asset and network, typically USDC on polygon and ethereum, and USDT on tron and ethereum. Before that, wallets is empty.
- Pick a wallet and send its
asseton itsnetworkto itsaddress. - Retrieve the account. The wallet's
balancerises once the custody partner has credited the deposit.
Match the asset and the network
Send only the wallet's asset, on the wallet's network. The same address can appear on more than one network, so read asset and network together. Coins sent in another asset or on another network are not credited automatically: contact Superpay.
balanceis the wallet's value in US dollars, in cents, rounded down: 12,500.00 USDC shows as{"amount": 1250000, "currency": "USD"}.- Balances are read live on every request. No event announces a deposit: retrieve the account to see it.
- How long a deposit takes to show depends on the network. No time is guaranteed.
- Nothing you deposit appears in
GET /v1/balances. It stays in custody until a conversion needs it.
In test mode#
Test-mode wallets are on test networks, although network keeps the same names: ethereum is Sepolia, polygon is Amoy, and tron is a Tron test network. Never send real coins to a test-mode address. Ask Superpay how to get test stablecoins.
How conversions use your custody account#
A conversion that sells USD is funded from your custody account.
| Step | What happens |
|---|---|
| Quote | Superpay checks that your business verification is ACTIVE |
| Accept | Superpay works out the shortfall: the conversion's sell less any USD already available in your balance. One wallet on its own must hold at least that much, read live |
| After accept | Superpay works out the shortfall again and pulls it from the first wallet that holds it, in Superpay's order of preference, keeping the same asset and network end to end. It credits the shortfall to your balance as USD, and the conversion reserves and spends it |
| Execution | INR is credited to your balance |
- A pull draws on one wallet only. If no single wallet holds the shortfall, accepting the conversion fails with
422 CUSTODY_BALANCE_INSUFFICIENT, even if your wallets hold enough together. - If a conversion fails after its pull, the USD stays in your balance,
available, and your next USD conversion spends it first. It is not returned to custody automatically: ask Superpay if you want it back. - If the pull itself is refused, the conversion fails with
failure_reasonCUSTODY_TRANSFER_FAILEDand nothing leaves your wallet.
The errors a conversion can meet are listed under Conversions.
Pull statuses#
Each pull is listed in pulls, newest first.
status | Meaning |
|---|---|
PENDING | Recorded. Not yet accepted by the custody partner |
SUBMITTED | Accepted. The USD was credited to your balance for the conversion |
COMPLETED | The coins have moved on chain |
SETTLED | The coins have arrived with Superpay. Final |
FAILED | The coins never left your custody account. Final |
The custody account object#
| Field | Type | Description |
|---|---|---|
object | string | custody_account |
id | string | cus_…, the same id as your business verification |
status | string | SUBMITTING or PENDING (verification PENDING), DOCUMENTS_REQUIRED (REQUIREMENTS_DUE), ACTIVE, or REJECTED. Build on the business verification instead |
status_reason_code | string | A reason code. Left out when SUBMITTING or ACTIVE |
status_reason_message | string | What the code means. Present with status_reason_code |
requirements_due | array | Documents still required, as document.<type> |
wallets | array | Deposit wallets. [] until the account is ACTIVE |
wallets[].asset | string | USDC or USDT |
wallets[].network | string | ethereum, polygon or tron |
wallets[].address | string | The deposit address |
wallets[].balance | money or null | The wallet's value in USD cents, rounded down, read live. null if it could not be read |
wallets[].observed_at | string | When balance was read. Left out when balance is null |
pulls | array | The last 20 pulls, newest first |
pulls[].id | string | ctr_… |
pulls[].conversion_id | string | The conversion it funded, fxo_… |
pulls[].amount | money | The USD amount pulled |
pulls[].asset, pulls[].network | string | The wallet it came from |
pulls[].status | string | See Pull statuses |
pulls[].created_at | string | RFC 3339, UTC |
livemode | boolean | true for live, false for test |
created_at, updated_at | string | RFC 3339, UTC |
Open an account (deprecated)#
/v1/custody/accounttreasury:manageThe earlier form of POST /v1/business-verification, kept for existing integrations. It takes the same body and answers with the custody account instead of the verification.
- It takes no
Idempotency-Key. Repeating it is safe: the first call opens the account (201), later calls return it unchanged (200). - It never resubmits a rejected business. A rejected account returns
422 CUSTODY_ACCOUNT_REJECTED. - A business verified with the form has no use for it. Once its people have submitted, a call returns the account unchanged (
200) and nothing sent is kept.
Errors#
| Code | HTTP | Endpoint | When | What you do |
|---|---|---|---|---|
CUSTODY_ACCOUNT_NOT_FOUND | 404 | Retrieve | You have no business verification in this mode: nothing was submitted, through the API or the form | Submit it. If you are verified with the form, wait for business.verification_updated |
CUSTODY_ACCOUNT_REJECTED | 422 | Open (deprecated) | The business was rejected. sub_code holds the reason code | See business verification |
INTERNAL | 500 | Retrieve | Your wallets could not be listed | Retry. Contact Superpay if it persists |
CUSTODY_UNAVAILABLE | 503 | Retrieve | Your custody account changed while it was being read. retryable is true | Retry after Retry-After |
The request-body errors of POST /v1/custody/account are those of business verification.