For developers. This page covers the technical integration. For what WaaS is, the verification variants at a
business level, and how to apply, see the WaaS overview.
Prerequisites
- Approved WaaS partner enrollment — see the WaaS overview for what WaaS provides and how to apply.
- A chosen verification variant — managed sub-accounts, KYC reliance, or shared-KYC sub-accounts; see Build path per variant.
- API access — HMAC-signed requests; a
type: 2API key (deposits and withdrawals) on each sub-account, with the URLs the integration calls enabled (every URL group starts switched off on a new key); crypto deposits to sub-accounts and the sub-account withdrawal endpoints enabled for the account by the account manager. - Sub-account permissions — each sub-account also needs its own deposit and withdrawal permissions (
depositsEnabled,withdrawsEnabled). For a sub-account created without an email, both go in the create request; for a sub-account created with an email, set both with Edit Sub-Account once itsstatusisactive. See Wallet creation. - Sub-account limit — a main account holds up to 50 sub-accounts by default; the assigned account manager raises the limit on request.
Build path per variant
- Managed sub-accounts. The partner creates a sub-account per end user under the main account (
POST /api/v4/sub-account/createwithshareKyc: falseand the end user’semail). WhiteBIT emails the end user an invitation, and the sub-account is activated once the end user opens the link and sets a password. The link expires after three days and can be re-sent on whitebit.com, not through the API. Once List of Sub-Accounts shows the sub-account’sstatusasactive, the partner sets the deposit and withdrawal permissions with Edit Sub-Account, sending thealiasand the fullpermissionsobject. WhiteBIT then verifies each end user through a KYC URL; transfers from the main account to the sub-account are refused until the KYC is approved. Build with Sub-Accounts for account creation and management, and the customer onboarding flow for the KYC URL and per-customer API keys. - Sub-accounts with KYC reliance. The same sub-account architecture as the managed variant, but the partner performs end-user KYC instead of WhiteBIT, under a Compliance-approved agreement. The partner creates each sub-account with
shareKyc: trueand noemail, so the sub-account is active at creation with no invitation step, and the deposit and withdrawal permissions go in the create request; a request withemailstarts the invitation flow instead. Build with the same Embedded Trading integration guide; complete Institutional Onboarding first to establish the reliance agreement. See KYC reliance eligibility below for the conditions. - Shared-KYC sub-accounts. The partner creates a sub-account per end user with
shareKyc: true, and each sub-account carries the main account’s verification. WhiteBIT verifies the partner during Institutional Onboarding (KYB); the partner verifies its own end users. Leaveemailout of the create request: a request withemailstarts the invitation flow even withshareKyc: true. No invitation, activation or KYC URL step applies: the sub-account is active at creation,spotEnabledandcollateralEnabledapply at once, and the deposit and withdrawal permissions go in the create request. Build with Sub-Accounts and the Embedded Trading integration guide, skipping its end-customer KYC steps.
KYC reliance eligibility
KYC reliance — WhiteBIT relying on the partner’s own customer verification — may be available, but is not enabled by default. It is never automatic, and operates as a delegation: responsibility for customer verification is never transferred. Eligibility is assessed case by case. Reliance is available only to partners that are supervised AML-obligated entities (for example EMI, PI, VASP, or MiCA-CASP license holders) in an adequate jurisdiction, applying broadly equivalent customer due diligence, under a written agreement and an individual WhiteBIT Compliance assessment. A confirmed entry on the relevant public register establishes the licensing basis; a confirmed EU/MiCA entity is additionally required when EU users are in scope. Licensing regimes and entity structures vary, and the examples above may not capture every case. Describe your licence(s), jurisdiction, and customer due-diligence approach in full in your application so the WhiteBIT Compliance team can review your specific situation and make a determination.Payment and payout flows
Fund-movement mechanics, with parameters and code examples, are in the Sub-Accounts quickstart and the Payment Integration guide. Each diagram below covers one end user’s sub-account and names the key that signs each request: the main-account key or the sub-account’s own key.Fiat deposits and withdrawals operate on the main account (institutional fiat access), from and to
the partner’s own bank account only. End users’ fiat stays in the partner’s own system.
Wallet creation
Wallet creation runs once per end user: the sub-account with its deposit and withdrawal permissions, itstype: 2 API key with the deposit-address and Main balance URLs enabled, and a deposit address per ticker and
network. Managed sub-accounts add the activation and KYC URL steps from the
customer onboarding flow: once
List of Sub-Accounts shows the sub-account’s status as active, the partner sets the deposit and
withdrawal permissions with Edit Sub-Account, then creates the API key and the deposit addresses. Only transfers from
the main account wait for the KYC approval. Shared-KYC sub-accounts skip both steps and carry all four permissions in
the create request.
WhiteBIT and the partner agree the KYC reliance setup during onboarding; see
Build path per variant.
Deposits
The diagram follows one deposit from the address shown to the end user to a final status. A sub-account counts as a separate account and can have its own webhook, created at whitebit.com only: the main account switches the session to the sub-account and creates the webhook there. The main account’s webhook does not receive sub-account events, and payloads carry no sub-account identifier. Webhook delivery is retried but has no replay, so poll the deposit history of each sub-account on a schedule as well, even when a webhook is configured. UsePOST /api/v4/main-account/history with transactionMethod: 1, signed with the sub-account’s API key. Deduplicate by uniqueId. Act on each deposit status as the Deposit status state machine describes. Not every deposit ends credited: some end canceled, and some stay in status 21 (on hold) or 22 (uncredited) before reaching a final status. See Webhooks for signatures and delivery semantics. API
rate limits apply per endpoint.
The main amount from POST /api/v4/sub-account/balances includes deposits credited before the network fully confirms
the deposits. The sub-account’s key reads the part still held back as pending_deposit_amount from
POST /api/v4/main-account/balance, once /api/v4/main-account/balance is switched on for the key with
POST /api/v4/sub-account/api-key/edit. The held part cannot be withdrawn to a blockchain address, moved to the
Collateral balance, or transferred to the main account until the network confirms the deposit. The hold stays on the
sub-account that received the deposit. A sub_to_main transfer can
move at most main_balance minus pending_deposit_amount, both read for the currency in one
POST /api/v4/main-account/balance call with the sub-account’s key. A request that reaches into the held part is refused as a whole with 422 on amount, code 20.
A main account holds up to 50 sub-accounts by default; the assigned account manager raises the limit on request.
Crypto purchases with fiat
In a purchase, the partner debits the end user’s fiat in the partner’s own system and transfers the crypto from the main account to the sub-account. For a managed sub-account, WhiteBIT refuses the transfer until the end user’s KYC is approved, and the refusal names theto field; offer purchases only after the approval.
The transfer request takes no idempotency key, and two identical requests move the funds twice. A 200 response
means WhiteBIT received the request, and the transfer can still fail after the response. After a timeout or a 5xx
response, the transfer can still complete. A record in the transfer history shows that the request was received, not
that the funds moved, so the history does not confirm a transfer.
The sub-account’s own balance confirms a transfer: read main for the ticker on the sub-account. A transfer to the
sub-account raises it by the amount, and a transfer to the main account lowers it. The main account’s balance
changes with transfers to and from every sub-account and does not confirm a single transfer. After a 200, a timeout or a 5xx,
read the sub-account’s main until it shows the transfer, and do not resend while waiting. A transfer that does
not show is a manual check, not an automatic resend.
The caller cannot attach its own reference to a transfer, so an integration stores its own record of each transfer
before the call and compares the sub-account’s main with the amount expected from its records of every movement on
the sub-account, including deposits and withdrawals. Send the next transfer for the same sub-account and ticker only
after the previous one shows.
See Retry strategy by error type for the retry rule of each
error type.
Crypto sales for fiat
In a sale, the partner transfers the crypto from the sub-account’s Main balance to the main account. The sale amount is at most the sub-account’smain_balance minus pending_deposit_amount, both read in one
POST /api/v4/main-account/balance call with the sub-account’s key. A transfer that reaches into the held part is refused with 422 on
amount, code 20, and nothing moves: the held part can be sold once the deposit is confirmed.
A 200 response means WhiteBIT received the request, and the transfer can still fail after it. After a 200, a
timeout or a 5xx, the partner reads the sub-account’s main with POST /api/v4/sub-account/balances (main-account
key) until it shows the transfer, and credits the end user’s fiat only then. The partner sends no second transfer while
waiting. A transfer that does not show is a manual check, not an automatic resend.
Withdrawals
The sub-account’stype: 2 key creates each withdrawal, and the main-account key confirms it before processing
starts. The account manager enables the sub-account withdrawal endpoints.
The sub-account also needs its own withdrawal permission (withdrawsEnabled), set as in Wallet creation.
Sub-account withdrawal approval gives the request for each approval step.
A waiting withdrawal does not expire and sends no webhook: find it in the unconfirmed-withdrawals list with the main-account key.
Act on each withdrawal status as the Withdrawal status state machine describes.
Conversion
Conversion on a sub-account uses the requests in Convert balances and Conversion in the withdrawal flow, signed with the sub-account’s key, on the sub-account’s Trade balance. The partner transfers the source currency from the Main balance to the Trade balance and requests the estimate after the transferred amount shows on the Trade balance. Before a withdrawal or a sale, the partner transfers the converted amount back to the Main balance, because the withdrawal endpoints and a transfer to the main account both draw from the sub-account’s Main balance only. The transfer to Trade needs the sub-account’s spot permission (spotEnabled). The main account’s one-time acceptance of the Convert terms on whitebit.com
covers its sub-accounts; sub-accounts do not accept the terms separately.
Every URL group starts switched off on a new sub-account key, so before the first conversion the partner enables
/api/v4/convert/estimate, /api/v4/convert/confirm, and the balance transfer /api/v4/main-account/transfer on the
sub-account’s key with Edit Sub-Account API Key, signed with the main-account key.
API key lifecycle
The 14-day deactivation of unused keys applies to sub-account keys too, and any authenticated request, such as a deposit history poll, resets the timer. A request refused with401 and
This user is blocked means the sub-account or its main account is blocked, not that the key was deactivated.
Only the create response returns the API secret. After a create request without a response, the partner checks the key
list, deletes any key the request created, and creates the key again.
End-user offboarding
Offboarding empties the sub-account through a final withdrawal or a sale, then the main-account key blocks it. The sub-account’s key creates the final withdrawal and the main account confirms it, as in Withdrawals. A sale follows Crypto sales for fiat. After the block, every request signed with the sub-account’s key is refused with401 and This user is blocked, so any Trade-to-Main transfer, the final withdrawal
and its status checks run before the block. A block does not stop deposits: a later deposit to one of the sub-account’s
addresses is still credited to the sub-account, but the blocked sub-account’s key cannot move
the deposit. The partner therefore keeps the end user’s mapping to the sub-account and its addresses.
More flows
Additional use cases (conversion payouts, refunds, exact-amount payouts, multichain payouts) are catalogued in Recipes, with the full parameter reference in the Payment Integration guide. Travel Rule (programmatic): submit originator data viatravel-rule/deposit/verification and
fetch the VASP list via travel-rule/vasps (EEA and Turkey). See Travel Rule.
Testing
WhiteBIT does not offer a public testnet or sandbox. Test on the live API with minimum amounts, and check per-asset minimums via the Asset Status endpoint first. Where the response includeslimits, a crypto deposit is checked against the network minimum (limits.deposit.<network>.min). A test deposit below the network
minimum is not credited at once: it waits in status 22, and unless the deposits to the same address add up to the minimum, it is canceled with status 9 after 7 days. The WhiteBIT Codes flow is a low-risk way to try a real signed call on a small
amount (see Recipes).
What’s next
WaaS Recipes
Runnable examples and the starter repo.
Payment Integration
Endpoint-level reference for every payment and payout flow.
FAQ
Scope, verification variants, onboarding, and compliance questions.