Error Codes and Troubleshooting

View as Markdown

Error Response Format

1{
2 "code": 1003,
3 "message": "Invalid token",
4 "requestId": "req-12345678"
5}

Business errors usually still return the unified JSON structure. Integrators should check code first. Authentication failures may return HTTP 401; rate limiting may return HTTP 429.

Common Error Codes

Error codeDescription
0Success
1001No valid authentication information provided
1002Token expired
1003Invalid Token, API Key, or signature
1004Token revoked
1006Source IP mismatch
2001Missing required parameter
2002Invalid parameter value
2003Parameter out of range
3001Insufficient balance
3003Order not found
3004Duplicate request
3005Order cannot be canceled
3006Permission denied
3100 - 3112Condition order parameter validation error
5001Internal server error
5002Service temporarily unavailable
5003Rate limit triggered

Troubleshooting

ProblemRecommendation
1001 no valid authentication informationCheck whether Authorization: Bearer <accessToken> or X-API-KEY is included.
1002 Token expiredRefresh Token or log in again before retrying.
1003 invalid Token, API Key, or signatureCheck API Key, signature payload, request body JSON string, and query parameter order.
1006 source IP mismatchCheck the API Key IP whitelist configuration.
3004 duplicate requestDo not reuse the same signature for order-related paths. Regenerate timestamp and signature.
5003 rate limit triggeredReduce request frequency and use exponential backoff if retrying.
Timestamp outside of tolerance windowCall /v1/time to calibrate time offset and sign the request again.