Skip to main content
The Payment Integration guide covers every step required to move funds into and out of WhiteBIT programmatically — crypto deposits, crypto withdrawals, crypto withdrawals with currency conversion, fiat (SEPA) operations, and WhiteBIT Codes. Each section includes the full transaction lifecycle, status state machine, fee calculation, and webhook events.
EEA users: USDT deposits and withdrawals are not available since December 30, 2024 (MiCA compliance). Use USDC or EURI as alternatives. See Regulatory Compliance for details.

Use cases

Common partner-integration scenarios. Each links to the relevant per-endpoint tabs below for the API reference.

UC1 — Payment provider with per-end-user deposit address

A payment-provider partner assigns each end customer a unique deposit address and credits the customer’s account when funds arrive. Reconciliation is webhook-driven by uniqueId (each deposit address corresponds to one customer in the partner’s database). See the Crypto Deposits tab for endpoint detail.

UC3 — EEA crypto withdrawal with Travel Rule

A partner serving EEA end users submits withdrawals with the required travelRule object. The withdrawal goes through compliance review before on-chain broadcast. See the Crypto Withdrawals tab for endpoint detail.

UC4 — Crypto payout with conversion

When the partner holds one currency in Main balance but needs to send another, request a conversion quote, confirm it, and submit the withdrawal. The convert service handles balance routing internally; no manual Main↔Trade transfers are required. See the Withdrawal with Conversion tab for endpoint detail.

Deposit address generation

Generate a deposit address by calling POST /api/v4/main-account/address. See the API Reference for the full endpoint specification.Required parameters:
ParameterTypeDescription
tickerstringCurrency ticker (e.g., BTC, ETH). The currency must have can_deposit: true in the Asset Status response.
networkstringCryptocurrency network (e.g., ERC20, TRC20). Required for multi-network currencies like USDT. Query the Asset Status endpoint for available networks per currency.
Optional parameters: type (address-type selector — confirm valid values with the institutional team before integrating).The endpoint returns the same address for the same ticker and network combination on repeated calls — addresses are permanent and reusable, not ephemeral.Key response fields: account.address, account.memo (for currencies requiring a memo or destination tag), required.fixedFee, required.flexFee, required.minAmount, required.maxAmount.Rate limit: subject to platform-level rate limits — see Rate Limits for current enforced values.
# Generate a BTC deposit address
curl -X POST "https://whitebit.com/api/v4/main-account/address" \
  -H "Content-Type: application/json" \
  -H "X-TXC-APIKEY: YOUR_API_KEY" \
  -H "X-TXC-PAYLOAD: YOUR_PAYLOAD" \
  -H "X-TXC-SIGNATURE: YOUR_SIGNATURE" \
  -d '{
    "ticker": "BTC",
    "request": "/api/v4/main-account/address",
    "nonce": 1594297865000
  }'

# Generate an ERC20 USDT deposit address
curl -X POST "https://whitebit.com/api/v4/main-account/address" \
  -H "Content-Type: application/json" \
  -H "X-TXC-APIKEY: YOUR_API_KEY" \
  -H "X-TXC-PAYLOAD: YOUR_PAYLOAD" \
  -H "X-TXC-SIGNATURE: YOUR_SIGNATURE" \
  -d '{
    "ticker": "USDT",
    "network": "ERC20",
    "request": "/api/v4/main-account/address",
    "nonce": 1594297865000
  }'
For Go and PHP examples, see SDKs.

Unique address per user

The POST /api/v4/main-account/address endpoint above returns the same address for the same ticker and network combination on every call. For payment provider integrations that assign a unique deposit address per end user, use POST /api/v4/main-account/create-new-address instead — this endpoint generates a fresh address on every call. See the API Reference for the full specification.
The /create-new-address endpoint is not available by default. Contact support@whitebit.com to request access.
Required parameters:
ParameterTypeDescription
tickerstringCurrency ticker (e.g., BTC, ETH)
networkstringCryptocurrency network (e.g., ERC20, TRC20). Required for multi-network currencies.
Optional parameters: type (address-type selector — confirm valid values with the institutional team before integrating).Rate limit: subject to platform-level rate limits — see Rate Limits for current enforced values.
# Generate a unique BTC deposit address
curl -X POST "https://whitebit.com/api/v4/main-account/create-new-address" \
  -H "Content-Type: application/json" \
  -H "X-TXC-APIKEY: YOUR_API_KEY" \
  -H "X-TXC-PAYLOAD: YOUR_PAYLOAD" \
  -H "X-TXC-SIGNATURE: YOUR_SIGNATURE" \
  -d '{
    "ticker": "BTC",
    "request": "/api/v4/main-account/create-new-address",
    "nonce": 1594297865000
  }'
Choosing between the two endpoints: The choice depends on the partner’s reconciliation model. If the partner manages one consolidated wallet per asset (treasury / market-maker / single-merchant), use /address — repeat calls return the same address, simplifying address management. If the partner assigns one address per end customer (payment provider / per-user wallet), use /create-new-address — repeat calls return fresh addresses, enabling deposit-amount-to-end-user mapping without bookkeeping.
EndpointBehaviorBest for
POST /api/v4/main-account/addressReturns the same address for the same ticker + networkSingle-wallet setups, treasury management
POST /api/v4/main-account/create-new-addressGenerates a new address on every callPayment providers assigning one address per end user

Deposit lifecycle

After funds arrive at a generated deposit address, the deposit passes through a defined sequence of states before crediting to the Main balance.
  1. Address generated (POST /api/v4/main-account/address)
  2. Funds sent by the external party — mempool detection begins
  3. Confirmation tracking begins — deposit.accepted webhook fires, confirmations.actual < confirmations.required
  4. Confirmations reach the required threshold — deposit.updated webhook fires with updated confirmations.actual
  5. Deposit credited to Main balance — deposit.processed webhook fires — terminal success state
  6. OR: Deposit canceled — deposit.canceled webhook fires — terminal failure state
  7. OR (EEA/Turkey): Travel Rule hold — deposit frozen (status 27 or 28). If the Travel Rule API is enabled, submit originator data via API to unfreeze; otherwise manual action at whitebit.com is required. See Travel Rule section below.

Deposit status state machine

The deposit/withdraw history endpoint returns numeric status codes. The following table maps each code to the meaning and the corresponding webhook event.
Numeric status codes are namespaced by transactionMethod. The same code may mean different things for deposits (transactionMethod: 1) and withdrawals (transactionMethod: 2). Always interpret the code in the context of the transactionMethod that returned it.
StatusStateWebhookTerminal?Partner actionDescription
15Pendingdeposit.acceptedNoWait for next webhookDeposit detected, awaiting confirmations
15Updateddeposit.updatedNoWait for next webhookConfirmation count changed
3, 7Successfuldeposit.processedYesCredit end user, close watcherFunds credited to Main balance
4, 9Canceleddeposit.canceledYesSurface refund flowDeposit canceled (refund may be available)
5Unconfirmed by userNoNotify end user — manual action required at whitebit.comAwaiting user action
21AML frozenNoWait — under compliance review. Escalate to institutional team if >24hDeposit frozen by AML controls
22UncreditedNoWait — credit pending. Escalate to support if >24hDetected but not credited
27Travel Rule frozenNoNotify end user — Travel Rule data required at whitebit.comAwaiting Travel Rule data (EEA / Turkey)
28Travel Rule processingNoWait — Travel Rule data under reviewTravel Rule data submitted
Use POST /api/v4/main-account/history with transactionMethod: 1 and status filter to poll for deposits in specific states. See Rate Limits for the current enforced limit on this endpoint.

Network confirmations

Each cryptocurrency network requires a different number of block confirmations before a deposit is credited.Webhook payloads include confirmations.actual and confirmations.required fields — use the confirmations.required value to determine when the deposit will complete. Query the Asset Status endpoint (GET /api/v4/public/assets) for per-currency confirmation requirements.Confirmation requirements vary by currency and network. Do not hardcode specific numbers — always retrieve the current values from the Asset Status endpoint.

Partial / over-payment scenarios

Crypto deposits credit the actual on-chain amount received; the system does not flag deposits as “underpaid” or “overpaid”. If a partner expects an exact amount (e.g., for invoice matching), reconciliation logic must compare the deposit amount in the deposit.processed webhook against the expected amount and surface mismatches as application-level alerts.

Required endpoints for deposits

EndpointPurposeAPI Reference
POST /api/v4/main-account/create-new-addressGenerate a unique deposit address per userCreate New Address
Webhooks (deposit.accepted, deposit.updated, deposit.processed)Deposit status notificationsWebhooks
POST /api/v4/main-account/historyQuery deposit and withdrawal historyHistory
POST /api/v4/main-account/balanceCheck Main balanceMain Balance
POST /api/v4/main-account/feeAvailable currencies, networks, and deposit limitsGet Fees
For integrations that use a single persistent deposit address instead of unique addresses per user, substitute POST /api/v4/main-account/address (API Reference) for the /create-new-address endpoint.

Travel Rule (EEA and Turkey)

Since May 19, 2025, inbound crypto deposits for EEA and Turkey accounts are placed on hold until Travel Rule verification completes.
  • Status 27 (DEPOSIT_TRAVEL_RULE_FROZEN): deposit frozen, awaiting Travel Rule data from the account holder
  • Status 28 (DEPOSIT_TRAVEL_RULE_FROZEN_PROCESSING): Travel Rule data submitted, under review by WhiteBIT
API-based verification: When the Travel Rule API is enabled for the account, partners can submit originator data via POST /api/v4/travel-rule/deposit/verification to unfreeze deposits programmatically. See Travel Rule for the full verification flow and request format.
Manual verification fallback: If the Travel Rule API is not enabled for the account, frozen deposits require manual action at whitebit.com. Contact institutional@whitebit.com to request Travel Rule API access.
See Regulatory Compliance for the full Travel Rule reference. See the Travel Rule help center article for the complete requirements.

Webhook reconciliation

Reliable fund tracking requires both webhook-based and polling-based reconciliation. Primary method — webhooks for real-time notifications:
  • Configure the webhook URL in API key settings (see Webhooks)
  • Verify the HMAC-SHA512 signature on every incoming webhook. Each delivery includes three headers — X-TXC-APIKEY (the API key the webhook is bound to), X-TXC-PAYLOAD (base64-encoded JSON body), and X-TXC-SIGNATURE (HMAC-SHA512 of the payload with the API secret). See Security Best Practices for the verification algorithm.
  • Track the nonce field — each webhook nonce is strictly greater than the previous. The nonce travels inside the JSON payload, not in a separate header.
Retry policy: Approximately 3 retries, attempted roughly once per hour, over a 24-hour delivery window. Fallback method — poll POST /api/v4/main-account/history:
  • Use transactionMethod: 1 for deposits, transactionMethod: 2 for withdrawals
  • Filter by status array for specific states
  • Recommended polling interval: every 5 minutes for active monitoring
  • See Rate Limits for current enforced values
Deduplication: Use the uniqueId from webhook payloads and history responses to deduplicate across webhook and polling paths.
WhiteBIT does not offer a webhook replay mechanism. Implement polling as a fallback for outages longer than the 24-hour retry window. Store all processed uniqueId values to prevent double-processing.
Reconciliation pattern:
  1. Receive webhook — verify signature — extract uniqueId and status
  2. Store the event with uniqueId as the idempotency key
  3. On polling cycle: query the history endpoint — compare uniqueId values against stored events
  4. Process any events found via polling that the webhook path did not deliver
  5. Mark transactions as complete only when a terminal status is reached (3/7 for success, 4/9 for canceled deposits, 4 for canceled withdrawals)

What’s Next

Webhooks

Full webhook setup, event types, and signature verification.

Convert

Conversion estimate and confirm flow, parameters, and history.

Regulatory Compliance

MiCA restrictions, Travel Rule requirements, and regional considerations.

Security Best Practices

API key management, IP whitelisting, and secret storage.