Skip to main content
For developers. This page covers the technical integration. For what CaaS is, the segments it fits, and the path to launch, see the CaaS overview.
A CaaS integration runs on the partner’s own WhiteBIT account. The partner issues a deposit address per end user, keeps an end-user ledger, credits end users from deposit events, and pays out from the account. Integration models compares this arrangement with sub-accounts and with customers’ own accounts.

Prerequisites

  • Institutional onboarding — KYB of the company and KYC of the director or responsible person, completed before provisioning. The main account accepts crypto deposits after onboarding. See Institutional Onboarding.
  • API keys — created after two-factor authentication is enabled; WhiteBIT recommends restricting each key to the endpoints and IPs the integration uses. See Authentication.
  • Per-user deposit addresses — create-new-address is not available by default and returns 403 until the account manager enables it on request. See Unique address per user.
  • Convert terms — before the first conversion, the account owner accepts the Convert terms once on whitebit.com. See Convert.
  • Webhooks (optional) — a webhook endpoint set up for the account, with the webhook key that verifies every delivery. Webhooks add speed; the scheduled history polling in Operating the integration is needed either way. See Webhooks.
  • Fiat — available only after fiat onboarding (Phase 2). See the On/Off-Ramp guide.
  • Other activations — the account manager handles any other activation the account needs.
The diagram shows how the prerequisites lead from institutional onboarding to go-live.

Architecture alignment during onboarding

The items below are agreed and documented with WhiteBIT during onboarding, before development starts.
  • End-user account mapping — how end users map to deposit addresses and to the partner’s end-user ledger. A sub-account per end user is a different arrangement — see Other account arrangements.
  • Verification split — the partner verifies its own end users; WhiteBIT verifies the partner during institutional onboarding (KYB). In the European Union, a separate onboarding process and separate rules apply.
  • Data residency and privacy — where end-user data is processed and stored, and the Data Processing Agreement (available via compliance@whitebit.com).
  • Operational roles — which staff hold which permissions (API key scopes, withdrawal approval).
  • Support model — support tiers, response targets, and incident channels beyond the public status page.
  • Fee and settlement terms.

Integration building blocks

Core API access

  • REST and WebSocket. Authenticated REST endpoints, WebSocket market data, and private account streams; every private request is signed. See First API Call and Authentication. Order placement, modification, and cancellation over WebSocket are available on the global platform only, authorized once on the connection rather than per request.
  • SDKs and tooling. Official SDKs, an MCP server, and a CLI for AI-assisted integration. See SDKs and AI tools.
  • API keys. The secret is shown only once, and inactive keys are deactivated. See Authentication and First API Call for the rules.
  • Rate limits. Limits are set per scope and per endpoint. See Rate limits for current values rather than assuming a single figure.
API keys grant account access. Restrict each key to the minimum scope and to known IPs, and store secrets outside application code. See Authentication.

Address issuance and end-user mapping

Each end user gets a deposit address per currency and network, and the partner keeps the mapping in its own database.
  1. Prefetch the currencies, networks, memo rules, deposit limits, and confirmation thresholds from Asset Status, and refresh the data on a schedule.
  2. Look up the end user’s address for the currency and the network in the partner database. When the lookup finds an address, show the address with its memo exactly as issued and send no request.
  3. Only when the lookup finds none, request one with POST /api/v4/main-account/create-new-address. The endpoint is not available by default; the account manager enables it on request — see Create new address for deposit. Each call creates a new address — even when the last one is unused — with no limit on the number of addresses. On memo networks, each call returns the same address with a new memo.
  4. Store the address — and its memo on memo networks — against the end user before showing it, and show the memo exactly as issued. See Unique address per user.
  5. Treat a timeout or a 5xx response as a possibly issued address. The address may already exist and still credit deposits to the account, but no endpoint returns the address, so those deposits match no end user. Show no address to the end user and request a new one.
The sequence below issues an address to one end user. Deposits to the address then follow the per-end-user deposit address use case.

Deposits and crediting

  • Progress and completion. deposit.accepted and deposit.updated report progress only; credit the end user when deposit.processed arrives or the history shows the deposit as successful. Verify every delivery with the webhook key. See Deposit lifecycle and Webhooks.
  • Matching. Match each credited deposit to an end user by its address — plus the memo on memo networks — and record it once, whether it arrives by webhook or by polling. See Webhook reconciliation.
  • Held funds. Part of a new deposit can stay held until the network fully confirms it. Held funds can be traded but not withdrawn, and Withdrawable balance reports the hold for the whole account, not for each end user.
  • Unmatched deposits. Route a credited deposit that matches no stored address and memo to manual review. On memo networks the memo identifies the account. A deposit with a wrong memo is credited to whichever account owns that memo. A deposit without a memo, or with a memo no account owns, is credited to no account, appears in no history, and sends no webhook. A deposit in an asset WhiteBIT does not list, or on a network the address was not issued for, is not matched to an account either. Recovering such a deposit is a manual operation with no API, so ask end users to send only listed assets, on the network the address was issued for, with the memo exactly as issued.
  • Refunds. Through the API, only a deposit that was frozen (status 21, 27 or 28) and then canceled with status 9 can be refunded, to an external address the end user provides, and only after WhiteBIT support allows a refund. Every refund passes an operator review before it is sent. A deposit in status 4 cannot be refunded through the API, and neither can a deposit that stays below the network minimum for 7 days and is canceled with status 9. See Refund flow.

Travel Rule holds on deposits

Travel Rule affects deposits and withdrawals for EEA and Turkey accounts. Inbound crypto deposits to those accounts are held until Travel Rule verification completes, and no webhook reports these status changes: poll the history for the held statuses. See Travel Rule (EEA and Turkey) and Travel Rule deposit statuses. The Travel Rule API for programmatic verification is enabled per account by the account manager on request; see Regulatory Compliance. For transfers in scope of the Travel Rule, originator and beneficiary information is required. See Travel Rule for the field requirements and the transfer flow.

Payouts

  1. Check the destination. A withdrawal to one of the account’s own deposit addresses is rejected (see Create withdraw request). Check each payout destination against the stored addresses, and settle a transfer between two of the partner’s end users in the partner ledger, without a withdrawal.
  2. Check the withdrawable amount. Held deposit funds cannot be withdrawn; before large payouts, check Withdrawable balance for the whole account.
  3. Record the payout. Reserve the amount in the end user’s ledger balance and store a unique withdrawal ID before sending the request.
  4. Send the withdrawal. See Create a withdrawal for the parameters, including network and memo. The 201 response body is an empty array ([]) and carries no ID. Follow the withdrawal in the history by its unique withdrawal ID, the uniqueId sent in the request.
  5. Settle. Settle the reserved debit when the withdrawal succeeds (status 3 or 7), and release the reserve when the withdrawal is canceled (status 4). Act on each other status as the Withdrawal status state machine describes. When two withdrawals compete for the same balance and one fails processing, that withdrawal is retried; if processing still fails, the withdrawal ends as canceled (status 4) and withdraw.canceled is sent.
The sequence below follows the payout steps for one end user. The Payment Integration use cases also show an EEA withdrawal with Travel Rule data and a crypto payout with conversion. EEA payouts. Withdrawals from EEA accounts carry Travel Rule data. See Travel Rule for EEA withdrawals. Withdrawals. Fee-inclusive (/withdraw) and fee-on-top (/withdraw-pay) variants, plus withdrawal after conversion using the Convert service. For a withdrawal after conversion, transfer the funds from Main to Trade and wait until the amount shows on the Trade balance. Request a quote and confirm at the quoted rate. Then transfer the converted amount back to Main and wait until the amount shows on the Main balance. Withdraw in the destination currency. See Payment Integration and Convert.

Fiat

Fiat (EUR/SEPA) is available on the partner’s WhiteBIT account after Phase 2 onboarding: SEPA withdrawals, and API-generated deposit invoices once the account manager enables the invoice endpoint. See the On/Off-Ramp guide.

Other account arrangements

CaaS runs on the partner’s own account. Two other account arrangements serve end users — see Integration models.
  • Trading and conversion. Spot markets (see Spot trading), and the Convert service for instant conversion at a quoted rate without placing orders on the order book. See Convert.
  • WhiteBIT Codes. Fee-free internal crypto transfers between WhiteBIT accounts, useful for settlement flows. See WhiteBIT Codes.
  • Crypto Lending. Fixed and Flex lending endpoints are restricted to B2B partners and require access to be granted through the account manager. See Crypto Lending.

End-user buy and sell

An end user’s buy or sell is an entry in the partner ledger and sends no request to WhiteBIT. The partner changes the currencies on its WhiteBIT account with Convert, as the sequence shows, or moves fiat through the on-ramp flow and the off-ramp flow. Each conversion follows the crypto payout with conversion use case, and Convert results and retries describes how to check its outcome.

End-user offboarding

When an end user leaves the service, the partner gives the end user a reasonable period to withdraw the crypto as in Payouts or to convert the crypto as in End-user buy and sell. After the period ends, the partner converts the remaining crypto and credits the proceeds to the end user in the partner ledger. The API provides no way to close or deactivate an issued deposit address (see Create new address for deposit). The address keeps crediting deposits to the account with no expiry, so the partner keeps the address mapped to the end user: reconciliation matches history records against the stored addresses (see Operating the integration). The sequence below follows one end user through offboarding.

API reference

The building blocks above use these endpoints and pages:

Operating the integration

  • Reconciliation. Webhooks have no replay, so reconcile on a schedule. Page the deposit and withdrawal history back to the last reconciled record; results come newest first. Overlap the pages, drop duplicates, and match the records locally against the stored addresses and withdrawal IDs, within the rate limits. See Webhook reconciliation.
  • Withdrawal IDs. Store each payout’s unique withdrawal ID before sending the request, and never use one ID for two payouts. See Create a withdrawal.
  • Unmatched withdrawals. Route a withdrawal record that matches no stored withdrawal ID to manual review: the integration did not create it.
  • Monitoring. status.whitebit.com reports platform, API, and blog status; whitebit.com/system-page reports per-asset deposit, withdrawal, and transfer availability.
  • Testing. WhiteBIT offers no public testnet or sandbox. Test deposits and payouts on the live API with the minimum amounts each network allows, run a limited pilot cohort, then scale to production. Demo Tokens cover spot trading only.
  • Go-live. Work through the Go-Live Checklist — covering authentication, error handling, rate limits, compliance, WebSocket, webhooks, monitoring, and testing — before each stage.

Support

What’s next

FAQ

Common questions on scope, deposit addresses, payouts, onboarding, and support.

Payment Integration

The deposit, withdrawal, and webhook mechanics the building blocks link to.

API Reference

Every endpoint, with request and response detail.