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.
| code | HTTP | Description | What to do |
|---|---|---|---|
40000 | 400 | Missing or malformed parameter | Fix the parameter named in message |
40101 | 401 | Authentication failed | See Authentication |
42001 | 400 | Currency or network not supported | Use values from Currencies |
42002 | 400 | Paying and receiving the same currency on the same network | Change the currency or network |
42003 | 400 | Amount below the minimum | Ask the user to increase the amount |
42004 | 400 | Amount above the maximum | Ask the user to reduce it or split the swap |
42005 | 400 | Address doesn't match the network | Ask the user to check the address and network |
42006 | 400 | Fixed-rate orders need a refund address | Add refundAddress |
42007 | 400 | Fixed rate temporarily unavailable | Use the floating rate |
42008 | 400 | Above the fixed-rate limit | Reduce the amount or use the floating rate |
42009 | 400 | Amount received after fees too small | Ask the user to increase the amount |
42010 | 503 | Quote temporarily unavailable | Retry later |
42011 | 404 | Order not found | Check the order number |
42012 | 409 | Not allowed in the current order state | Look up the order again |
42013 | 400 | Pair not supported for direct swaps | Swap to USDT or USDC first |
42020 | 503 | Under maintenance, new orders paused | Retry later |
42021 | 503 | Network under maintenance | Use another network or retry later |
42900 | 429 | Too many requests | Slow down and back off |
50000 | 500 | System error | Retry 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]