Reference

Errors

On failure code is non-zero and message explains why. The language of message follows the Accept-Language header (zh or en). Use code in your logic; use message only for logs and troubleshooting.

codeHTTPDescriptionWhat to do
40000400Missing or malformed parameterFix the parameter named in message
40101401Authentication failedSee Authentication
42001400Currency or network not supportedUse values from Currencies
42002400Paying and receiving the same currency on the same networkChange the currency or network
42003400Amount below the minimumAsk the user to increase the amount
42004400Amount above the maximumAsk the user to reduce it or split the swap
42005400Address doesn't match the networkAsk the user to check the address and network
42006400Fixed-rate orders need a refund addressAdd refundAddress
42007400Fixed rate temporarily unavailableUse the floating rate
42008400Above the fixed-rate limitReduce the amount or use the floating rate
42009400Amount received after fees too smallAsk the user to increase the amount
42010503Quote temporarily unavailableRetry later
42011404Order not foundCheck the order number
42012409Not allowed in the current order stateLook up the order again
42013400Pair not supported for direct swapsSwap to USDT or USDC first
42020503Under maintenance, new orders pausedRetry later
42021503Network under maintenanceUse another network or retry later
42900429Too many requestsSlow down and back off
50000500System errorRetry later; contact us if it persists

Network errors and timeouts (code -1 in the SDKs): when creating orders, retry with the same clientOrderId — no duplicate order is created.

Need help with your integration? Contact support: [email protected]