Docs MenuTap to expand ▼

Error Codes

Awice Logistics Open Platform uses 4-digit error codes grouped by leading digit. Every error response includes a request_id, which speeds up triage when you file a ticket.

Error Response Structure

{
  "code": 2002,
  "msg": "Signature verification failed",
  "detail": "expected signature does not match",
  "request_id": "f8a92c1e-3b4d-4f1a-b3a7-9c2e1f6d8b3a"
}

Billing Rules

  • Only code = 0 (success) deducts credits
  • HTTP 4xx / 5xx never deduct credits
  • Business failures (e.g. port not found, no results) return HTTP 200 with code ≠ 0 and do not deduct credits
  • Client-side timeouts (no response in 10s) do not deduct credits

Success

Business call succeeded; credits are deducted.

codeHTTPMeaningClient Action
0200SuccessProcess the data normally

1xxx Parameter Errors

Bad request parameters; no credits deducted.

codeHTTPMeaningClient Action
1001400Missing parameter / invalid typeCheck required fields, types, and length limits
1002400Multiple matches (ambiguous) for carrier/airlinePick a specific code from the candidates field and resend. Note: pol/pod port matches no longer return this code — rates for all matched ports are returned automatically
1003400Parameter out of allowed rangeCheck boundaries for page/limit/weight
1004400Conflicting combined parametersReview the API doc for mutually exclusive fields

2xxx Authentication Errors

Auth failure; no credits deducted. Alert instead of retrying.

codeHTTPMeaningClient Action
2001401AppKey does not exist or has been revokedDo not retry. Check app status in the console
2002401Signature verification failedCompare with the Auth doc (METHOD/PATH/JSON whitespace)
2003401Timestamp expired (> ±300s)Sync system NTP time
2004401Nonce reused (already used within 10 minutes)Regenerate nonce and retry once
2005401Request IP not in whitelistAdd the IP in Console → App Management
2006401Missing X-Awice-* headersVerify all 4 required headers are present

3xxx Billing Errors

Plan / balance issues; no credits deducted. Alert the user directly.

codeHTTPMeaningClient Action
3001402Insufficient credits (balance used up, or free trial pack not claimed yet)Do not retry. Claim the trial pack or buy a plan in the console. The response carries trial_available so you can branch programmatically
3003402Dictionary search requires an active plan (not open to accounts without a subscription)Claim the trial pack or buy a plan; for dropdown options use dict/popular instead (free, unlimited)
3004402Plan expired (response carries expired_at / frozen_credit)Renew or buy a new plan. Note: credits left unused when a plan expires are forfeited

4xxx Rate Limiting

QPS exceeded; no credits deducted. The Retry-After header indicates when to retry.

codeHTTPMeaningClient Action
4001429QPS limit exceededExponential backoff retry; honor the Retry-After header
4002429Daily call count exceeded soft limitRecover after 24h or contact sales to raise the limit

5xxx Server Errors

Server-side issue; no credits deducted. Retry 1-2 times.

codeHTTPMeaningClient Action
5001500Internal server errorRetry once; if still failing, file a ticket with request_id
5002503Upstream service unavailable (express endpoint only)Retry up to 2 times at 2s intervals
5003504Upstream response timed outIncrease client timeout and retry

Recommended Retry Strategy

code rangeRetry?Recommended strategy
1xxxDo not retryParam errors — retrying won't help. Alert and investigate manually.
2xxxDo not retryAuth issue (only 2004 nonce can be retried once)
3xxxDo not retryPlan issue — alert operations
4xxxRetryableExponential backoff: 1s / 2s / 4s, honor Retry-After
5xxxRetryableUp to 2 retries, 1-3s interval; file a ticket with request_id
Error Codes - Awice Logistics Open Platform Docs | 5688.cn