Errors
Success is 00000. Other codes are exceptions. Always read code, not only HTTP status.
Shape
json
{ "code": "00000", "msg": "ok", "data": {} }json
{ "code": "40000", "msg": "order_id is required", "error": "order_id is required"}Codes
| Code | HTTP | Meaning |
|---|---|---|
00000 | 200 / 201 | Success |
40000 | 400 | Validation or request error |
40001 | 409 | Not enough of that asset on that network in your main wallet for a withdrawal (checked again on the blockchain when it is approved) |
40002 | 409 | Not enough of the network's native coin (ETH or BNB) in your main wallet for the network fee. Shown when a withdrawal is approved. Tron needs none |
40003 | 400 | Outside a limit set for your account (order size, withdrawal size, daily withdrawals) |
40100 | 401 | Missing or invalid API key, or the workspace is not active |
40400 | 404 | Unknown order or payout for this merchant |
40900 | 409 | The request conflicts with the current state, for example cancelling a paid order |
40901 | 409 | Checkout only: no payment address is free on that network right now. The popup shows it; your CRM never receives it |
50300 | 503 | Your wallets are still being prepared, or a live balance could not be checked right now. Try again in a few minutes |
Examples of 40000: missing order_id, amount not greater than 0, a success, cancel or callback URL that is not http(s), missing payout_id, unknown asset/network, invalid destination address, or a destination that is not an approved payout wallet. Query with neither identifier (or an id that belongs to another merchant) is 40400.