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 |
40100 | 401 | Missing or invalid API key |
40400 | 404 | Unknown order or payout for this merchant |
40900 | 409 | Paid order cannot be cancelled |
Examples of 40000: missing order_id, amount not greater than 0, valid_time outside 10–1440, success/cancel URL not http(s), missing payout_id, unknown asset/network, invalid destination address, or insufficient available balance. Query with neither identifier (or an id that belongs to another merchant) is 40400.