Error codes
Start with the HTTP status, then read the top-level message and optional sysCode and data for the cause. API errors do not use an outer error object.
Error object shape
{ "status": 400, "sysCode": "1500007", "message": "Request body is not valid JSON" }
Registered API errors normally return status (number), sysCode (string), and message (string), with optional data. Codes include the 15xxxxx and shared 99xxxxx series; identify the cause from the actual value rather than deriving it from the HTTP status. message is a single message string, not a set of bilingual fields.
Exception: field validation
A Zod failure handled by the shared validation layer uses HTTP 400, message: Bad Request, and a data array of issues, without sysCode. Each issue's path identifies the field and its message explains the problem; additional Zod fields may also be present. Pickup and self-dropoff endpoints instead map these failures to PICKUP_INVALID_REQUEST (sysCode 1500101), with issues in data.errors.
{ "status": 400, "message": "Bad Request", "data": [ { "code": "too_small", "minimum": 1, "type": "array", "inclusive": true, "exact": false, "message": "Array must contain at least 1 element(s)", "path": [ "items" ] } ] }
Exception: an unexpected server failure
An unhandled exception currently retains a legacy 500 response with sys_code and possibly en, zh_hk, and zh_cn, rather than sysCode. Clients must tolerate this exception and non-JSON responses. Show end customers a generic failure message instead of internal response contents.
{ "status": 500, "sys_code": "9900000", "message": "Internal Server Error", "en": "Internal Server Error", "zh_hk": "內部伺服器錯誤", "zh_cn": "内部服务器错误" }
Status fields describe different things
| Field | Meaning |
|---|---|
HTTP status / body.status | A number describing this HTTP request's outcome, such as 200, 201, 400 or 404. The top-level status in a successful JSON body also describes the request. |
sysCode | An optional string identifying the specific API error. Several sysCode values can share one HTTP status. |
data.status | In shipment detail, a string describing the shipment lifecycle, such as label_created or in_transit, independently of the HTTP outcome. |
data.dispatch_status / data.dispatch.status | Carrier-booking outcome: detail uses dispatch_status and create uses dispatch.status. It does not indicate that the parcel was collected or delivered. |
Shipment status values
| status | Meaning |
|---|---|
| draft | Draft; not yet booked. |
| label_created | Shipment record created; this does not mean the parcel has been picked up or a PDF is ready. |
| picked_up | The parcel has been collected or accepted at origin. |
| in_transit | The parcel is moving through the transport network. |
| out_for_delivery | The parcel is in the delivery stage. |
| delivered | Delivered; terminal shipment state. |
| exception | A tracking exception needs attention; a later valid event can restore progress. |
| cancelled | Cancelled; terminal shipment state. |
| returned | Returned; terminal shipment state. |
| superseded | Replaced by a new shipment; the original label is void. |
Dispatch status values
| dispatch status | Meaning |
|---|---|
| dispatched | Carrier booking succeeded; inspect label_available and label_pdf_url for the PDF. |
| booking_accepted | The carrier confirmed the booking; the selected RM/DPD tracking number and its separate carrier label may arrive later. Keep the existing shipment and do not submit a new booking while waiting. |
| booking_unknown | The carrier booking outcome is unconfirmed and an order may already exist. Query the existing shipment and contact support; do not create another booking. |
| manual_booking_pending | The shipment is ready for handover. Download the handover label from the shipment label endpoint. Operations arranges the carrier booking. |
| skipped_internal | An internal service did not need external carrier booking. |
| skipped_no_creds | Carrier booking was skipped because credentials were unavailable. |
| failed | When creation-time carrier booking fails, the shipment is rolled back and the request returns 422 without a dispatch object. In a 201 response, dispatch.error_code and dispatch.error describe any non-success dispatch outcome; dispatch.error is for people to read. |
| null | No dispatch result; test-mode shipment creation skips carrier booking and returns dispatch: null. |
Tracking events have their own detailed code/checkpoint values, which are also separate from HTTP statuses. Preserve unrecognized shipment or dispatch values and use a general fallback rather than assuming success or failure.
HTTP status codes
These statuses are used by public endpoints and their shared handling layer. Each endpoint uses a subset. If you receive an unlisted status or a non-JSON body, retain the HTTP outcome and apply general error handling.
| HTTP | Meaning and handling |
|---|---|
| 200 | OK — the read or operation succeeded. |
| 201 | Created — a resource was created; inspect its shipment and dispatch fields separately. |
| 204 | No Content — an OPTIONS preflight succeeded; the response has no body to parse. |
| 400 | Bad Request — malformed JSON, invalid fields or a business rule rejected the input; inspect message and data. |
| 401 | Unauthorized — the Bearer API key is absent or invalid. |
| 402 | Payment Required — an account billing or credit restriction prevents the operation. |
| 403 | Forbidden — the API key lacks a required scope or the account cannot use this operation. |
| 404 | Not Found — the resource or label is unavailable to this account and live/test environment. |
| 409 | Conflict — request, quote, idempotency or resource state conflicts; follow the specific reason before retrying. |
| 413 | Payload Too Large — the request body exceeds the allowed size. |
| 422 | Unprocessable Content — the carrier rejected the booking; this is not the status used for Zod field validation. |
| 429 | Too Many Requests — a rate limit was exceeded; respect Retry-After when present. |
| 500 | Internal Server Error — unexpected server failure; use a generic customer message and contact support if it persists. |
| 502 | Bad Gateway — a carrier or label download failed upstream. |
| 503 | Service Unavailable — the feature is disabled, temporarily unavailable, or a label is still being generated; inspect the reason. |
| 504 | Gateway Timeout — the handler timed out and the outcome is not yet known; the operation may still be running. Retry with the same Idempotency-Key and the same body (409 means it is still processing); never with a new key. |
Read the reason safely
This JavaScript example reads the top-level message and each issue's path and message in data or data.errors. It tolerates a missing sysCode, legacy sys_code, unknown statuses and non-JSON responses. Parse other structured data fields according to the endpoint's documentation. Keep API keys and personal information out of diagnostic logs.
async function readApiFailure(response) { const parsed = await response.json().catch(() => null); const body = parsed && typeof parsed === 'object' && !Array.isArray(parsed) ? parsed : {}; const status = response.status; // HTTP outcome, not shipment.status const requestId = response.headers.get('X-Request-Id') || undefined; const sysCode = typeof body.sysCode === 'string' ? body.sysCode : typeof body.sys_code === 'string' ? body.sys_code : undefined; const issues = Array.isArray(body.data) ? body.data : body.data && Array.isArray(body.data.errors) ? body.data.errors : []; const fieldErrors = issues.flatMap((issue) => { if (!issue || typeof issue !== 'object' || typeof issue.message !== 'string') return []; const path = Array.isArray(issue.path) ? issue.path .filter((part) => typeof part === 'string' || typeof part === 'number').join('.') : ''; return [{ path, message: issue.message }]; }); // Do not display an unexpected 500 response's contents to end customers. const message = status === 500 ? 'Request failed. Please try again later or contact support.' : typeof body.message === 'string' && body.message.trim() ? body.message : `Request failed (HTTP ${status})`; // message is always English; message_zh (+ message_zh_locale) is the same text in Chinese. const messageZh = status !== 500 && typeof body.message_zh === 'string' && body.message_zh.trim() ? body.message_zh : undefined; return { status, sysCode, requestId, message, messageZh, fieldErrors: status === 500 ? [] : fieldErrors }; } // After fetch(...): if (!response.ok) { const failure = await readApiFailure(response); showError(failure.message); // Your application's UI callback for (const issue of failure.fieldErrors) showFieldError(issue.path, issue.message); // Branch on a sysCode you recognize; otherwise keep the general fallback. }
sysCode reference
API error identifiers and their HTTP outcomes are listed below. Codes are returned as strings; braces in message templates are replaced at runtime. These messages are a reference: use the actual response's message and data.
| sysCode | HTTP | English message | 繁中 |
|---|---|---|---|
| 1500001 MISSING_IDEMPOTENCY_KEY | 400 | MISSING_IDEMPOTENCY_KEY — Idempotency-Key header is required for this endpoint | 此端點必須提供 Idempotency-Key 標頭 |
| 1500002 IDEMPOTENCY_IN_FLIGHT | 409 | IDEMPOTENCY_IN_FLIGHT — A request with this Idempotency-Key is still in progress | 另一個帶有相同 Idempotency-Key 的請求仍在處理中 |
| 1500003 IDEMPOTENCY_KEY_REUSED | 409 | IDEMPOTENCY_KEY_REUSED — Idempotency-Key was reused with a different request payload or on a different endpoint | 同一 Idempotency-Key 被用於不同的請求內容或不同的端點上 |
| 1500004 RATE_LIMITED | 429 | RATE_LIMITED — Rate limit exceeded ({reason}); retry after {retryAfter} seconds | 請求頻率超出限制({reason});請於 {retryAfter} 秒後重試 |
| 1500005 PAYLOAD_TOO_LARGE | 413 | PAYLOAD_TOO_LARGE — Request body exceeds the {maxBytes}-byte limit | 請求內容超出 {maxBytes} bytes 的上限 |
| 1500006 HANDLER_TIMEOUT | 504 | HANDLER_TIMEOUT — Request processing exceeded the {timeoutMs}ms limit. The outcome is not yet known. If you sent an Idempotency-Key, retry with the same key and the same body: 409 means it is still processing; otherwise you will receive the final result. Do not retry with a new key. | 請求處理超出 {timeoutMs}ms 時限,結果尚未確定。如有帶 Idempotency-Key,請以同一個 Idempotency-Key 及同一份內容重送:回 409 代表仍在處理中,否則將收到最終結果;請勿換 key 重送。 |
| 1500007 INVALID_JSON_BODY | 400 | INVALID_JSON_BODY — Request body is not valid JSON | 請求內容不是有效 JSON |
| 1500008 MAX_API_KEYS_EXCEEDED | 400 | MAX_API_KEYS_EXCEEDED — Maximum {max} active API keys per account; revoke an existing key first | 每個帳戶最多 {max} 個有效 API key;請先撤銷現有 key |
| 1500009 INSUFFICIENT_AVAILABLE_BALANCE | 409 | INSUFFICIENT_AVAILABLE_BALANCE — Available wallet balance is below the order total (available {available} HKD, required {required} HKD) | 錢包可用餘額不足以支付訂單(可用 {available} HKD,需要 {required} HKD) |
| 1500010 IOSS_NOT_OWNED | 400 | IOSS_NOT_OWNED — IOSS {ioss} is not registered to your account — use your own IOSS (Settings → Customs details) or contact us to register a marketplace platform IOSS | IOSS {ioss} 不屬於你的帳戶 — 請使用 設定→報關資料 的號碼,或聯絡我們登記平台 IOSS |
| 1500011 INSUFFICIENT_SCOPE | 403 | INSUFFICIENT_SCOPE — This API key is not authorized for the {scope} scope required by this endpoint | 此 API key 未獲授權使用此端點所需的 {scope} 權限範圍 |
| 1500012 OVERDUE_INVOICE_FROZEN | 402 | OVERDUE_INVOICE_FROZEN — Account is suspended due to an overdue invoice; ordering resumes once it is settled | 有帳單逾期未付,帳戶已暫停下單;結清後即可繼續。 |
| 1500013 WAIVER_FLOOR_REACHED Deprecated (code retained) | 402 | WAIVER_FLOOR_REACHED — Account is in a freeze-waiver period and the wallet has reached its negative floor; this order (required {required} HKD, available {available} HKD) would exceed the floor {floor} HKD. Settle part of the outstanding balance before ordering again. | 帳戶正處於凍結豁免期,錢包已達可透支下限;此訂單(所需 {required} HKD,可用 {available} HKD)將超出下限 {floor} HKD。請先償還部分欠款,再重新下單。 |
| 1500014 NEW_USER_CREDIT_LIMIT_REACHED | 402 | NEW_USER_CREDIT_LIMIT_REACHED — Account is using its new-user credit and this order (required {required} HKD, available {available} HKD) would exceed the granted credit limit {limit} HKD. Top up to continue ordering. | 帳戶正使用新客戶信用額度;此訂單(所需 {required} HKD,可用 {available} HKD)將超出獲批的信用額度 {limit} HKD。請先充值,再重新下單。 |
| 1500015 PRICING_QUOTE_CHANGED | 409 | PRICING_QUOTE_CHANGED — The selected quote changed before order creation; request a fresh rate and confirm it before retrying | 所選報價在建立訂單前已變更;請重新取得報價並確認後再試。 |
| 1500016 NEGATIVE_BALANCE_LIMIT_REACHED | 402 | NEGATIVE_BALANCE_LIMIT_REACHED — The wallet has reached its negative-balance limit and this order (required {required} HKD, available {available} HKD) would exceed the allowed limit {limit} HKD. Top up to continue ordering. | 帳戶已達可透支下限;此訂單(所需 {required} HKD,可用 {available} HKD)將超出允許的負餘額額度 {limit} HKD。請先充值,再重新下單。 |
| 1500017 PUBLIC_RESOURCE_NOT_FOUND | 404 | PUBLIC_RESOURCE_NOT_FOUND — Resource not found | 找不到資源 |
| 1500018 FX_RATE_UNAVAILABLE | 503 | FX_RATE_UNAVAILABLE — Live USD/HKD exchange rate is temporarily unavailable; retry shortly or declare in HKD | 暫時無法取得即時美元匯率,請稍後再試,或改用港幣申報。 |
| 1500019 IOSS_AND_PREPAY_CONFLICT | 400 | IOSS_AND_PREPAY_CONFLICT — ioss_number and vat_prepay are mutually exclusive — provide at most one | ioss_number 與 vat_prepay 不可同時提供,請擇一。 |
| 1500020 VAT_PREPAY_UNSUPPORTED | 400 | VAT_PREPAY_UNSUPPORTED — This destination is currently served by a carrier that does not support VAT prepay — use ioss_number instead | 此目的地目前由其他承運商派送,未提供代繳增值稅服務 — 請改為填寫你的 IOSS 號碼 |
| 1500021 VAT_PREPAY_DISABLED | 400 | VAT_PREPAY_DISABLED — Carrier VAT prepay is not yet available — use your registered IOSS number, or leave both fields empty | 承運商代繳增值稅服務尚未開放,請使用你已登記的 IOSS 號碼,或留空由收件人於當地自行繳付關稅。 |
| 1500022 SHIPMENT_CANCEL_CONTACT_SUPPORT | 409 | SHIPMENT_CANCEL_CONTACT_SUPPORT — The carrier could not cancel this shipment (it may already be collected) — please contact support | 服務商未能取消此訂單(可能已攬收),請聯絡客服 |
| 1500023 LABEL_DOWNLOAD_FAILED | 502 | LABEL_DOWNLOAD_FAILED — The label exists but could not be downloaded — retry shortly | 面單存在但下載失敗,請稍後重試 |
| 1500024 LABEL_NOT_READY | 503 | LABEL_NOT_READY — The label has not finished generating yet — retry shortly | 面單尚未生成完成,請稍後重試 |
| 1500025 SALES_PLATFORM_NAME_REQUIRED | 400 | SALES_PLATFORM_NAME_REQUIRED — sales_platform_name is required for shipments to Japan (JP) | 寄往日本的訂單必須填寫 sales_platform_name(銷售平台名稱) |
| 1500026 VOEC_PREPAY_DISABLED | 400 | VOEC_PREPAY_DISABLED — Carrier VOEC prepay for Norway is not yet available — provide tax_number instead | VOEC 代繳服務尚未開放,請填寫你的挪威 VOEC 號。 |
| 1500027 VOEC_PREPAY_CONFLICT | 400 | VOEC_PREPAY_CONFLICT — voec_prepay is mutually exclusive with tax_number, ioss_number and vat_prepay — provide at most one | VOEC 代繳與 VOEC 號碼/IOSS 號碼/歐盟代繳不可同時提供,請擇一。 |
| 1500028 VOEC_PREPAY_UNSUPPORTED | 400 | VOEC_PREPAY_UNSUPPORTED — The selected service does not offer VOEC prepaid service — supply a VOEC number or choose another service. | 所選服務不提供 VOEC 代繳,請填寫 VOEC 號或改選其他服務。 |
| 1500029 TAX_NUMBER_REQUIRED | 400 | TAX_NUMBER_REQUIRED — tax_number is required for shipments to Norway (NO), or set voec_prepay to true | 寄往挪威的訂單必須填寫 VOEC/稅務識別碼,或選用 VOEC 代繳服務 |
| 1500030 HS_CODE_BR_8_DIGITS_REQUIRED | 400 | HS_CODE_BR_8_DIGITS_REQUIRED — Shipments to Brazil (BR) require every item to carry an hs_code of exactly 8 digits (Brazil NCM), counted after symbols are removed. Offending: {items} | 寄往巴西的訂單,每個品項的 hs_code 必須為 8 位數字(巴西 NCM,移除符號後計算)。不符合:{items} |
| 1500031 INSURANCE_UNSUPPORTED | 400 | INSURANCE_UNSUPPORTED — The selected service does not offer insurance — remove INSURANCE from selected_surcharges or choose another service. | 所選服務不支援保價,請於 selected_surcharges 移除 INSURANCE 或改選其他服務。 |
| 1500032 SHIPMENT_CANCEL_INTERCEPT_IN_PROGRESS | 409 | SHIPMENT_CANCEL_INTERCEPT_IN_PROGRESS — This shipment has an interception request in progress and cannot be cancelled — withdraw the request under "Package disposition" on the shipment page in the Merdi portal first, or contact support if it can no longer be withdrawn | 此訂單有處理中的攔截申請,暫時不能取消。請先在 Merdi 網頁訂單頁的「包裹處置」撤回攔截申請;如申請已無法撤回,請聯絡客服。 |
| 1500033 CL_TAX_NUMBER_REQUIRED | 400 | CL_TAX_NUMBER_REQUIRED — tax_number (the recipient's RUT) is required for shipments to Chile (CL) | 寄往智利的訂單必須填寫收件人 RUT(智利稅號) |
| 1500034 COD_NOT_AVAILABLE | 400 | COD_NOT_AVAILABLE — payment_type "cod" (cash on delivery) is not available yet — use "prepaid" | 貨到付款服務暫未開放,請改用預付(prepaid) |
| 1500035 SHIPMENT_SUPERSEDED | 409 | SHIPMENT_SUPERSEDED — This shipment has been superseded by a change-order — download the label for the new shipment {replacedBy} instead | 此訂單已換單,面單已作廢,請下載新訂單 {replacedBy} 的面單 |
| 1500036 SUPPLEMENT_NOT_SERVED | 400 | SUPPLEMENT_NOT_SERVED — goods_category "supplement" is only available for destinations AU and NZ, and only once the supplement service is enabled for your account | 保健品(supplement)貨種只限寄往澳洲(AU)或紐西蘭(NZ),且須待保健品服務對你的帳戶啟用後才可使用 |
| 1500037 EU_PID_REQUIRED | 400 | EU_PID_REQUIRED — Shipments to EU member states require merchant_product_id (M-PID) and mfr_id_nonstd (NS-PID) on every item from {enforce_from}. merchant_product_id defaults to sku when omitted, and mfr_id_nonstd defaults to mfr_id_std (GTIN) when omitted. Offending: {items} | 寄往歐盟成員國的訂單,自 {enforce_from} 起每個品項必須填寫 merchant_product_id(M-PID)及 mfr_id_nonstd(NS-PID)。merchant_product_id 留空時以 sku 代入,mfr_id_nonstd 留空時以 mfr_id_std(GTIN)代入。不符合:{items} |
| 1500038 EU_PID_INVALID | 400 | EU_PID_INVALID — EU product identifiers (merchant_product_id, mfr_id_nonstd, mfr_id_std) must use plain ASCII characters, at most 70 characters per identifier (separate several with a comma), and must not be placeholders such as N/A, 0, *** or 999999; mfr_id_std must be a valid GTIN (8, 12, 13 or 14 digits with a correct check digit). Enforced from {enforce_from}. Offending: {items} | 歐盟產品識別碼(merchant_product_id、mfr_id_nonstd、mfr_id_std)只可使用英文半形字元,每個識別碼不超過 70 字元(多個以半形逗號分隔),不得使用 N/A、0、***、999999 等佔位值;mfr_id_std 須為有效 GTIN(8、12、13 或 14 位數字且校驗位正確)。自 {enforce_from} 起強制。不符合:{items} |
| 1500039 SHIPMENT_BOOKING_FAILED | 422 | SHIPMENT_BOOKING_FAILED — Carrier booking failed; the local shipment was rolled back and the wallet reservation has been released: {detail} | 服務商下單失敗,本系統未保留出貨訂單,錢包預留款已退回:{detail} |
| 1500040 ORDER_TYPE_DISABLED | 400 | ORDER_TYPE_DISABLED — The domestic_delivery order type is not enabled on this environment; omit order_type or use full_service | 此環境尚未開放此訂單類型,請省略 order_type 或使用 full_service。 |
| 1500041 ORDER_TYPE_INVALID | 400 | ORDER_TYPE_INVALID — order_type must be one of full_service, domestic_delivery (omit it for full_service) | order_type 必須為 full_service 或 domestic_delivery 其中之一(省略即為 full_service)。 |
| 1500042 ORDER_TYPE_SERVICE_MISMATCH | 400 | ORDER_TYPE_SERVICE_MISMATCH — The selected service does not belong to the requested order_type, or its order type setting changed since the quote | 所選服務不屬於所指定的 order_type,或服務的訂單類型設定在報價後已變更,請重新報價。 |
| 1500043 ORDER_TYPE_NOT_AVAILABLE | 403 | ORDER_TYPE_NOT_AVAILABLE — This account has no service available for the requested order_type | 此帳戶沒有可用於所指定 order_type 的服務。 |
| 1500046 DOMESTIC_DELIVERY_DESTINATION_MISMATCH | 400 | DOMESTIC_DELIVERY_DESTINATION_MISMATCH — The recipient country does not match the destination warehouse country of the selected domestic_delivery service | 收件國家與所選 domestic_delivery 服務的目的國倉庫所在國不一致。 |
| 1500047 ORDER_TYPE_OPERATION_UNSUPPORTED | 409 | ORDER_TYPE_OPERATION_UNSUPPORTED — This operation is not supported for orders of this order_type | 此訂單類型不支援該操作。 |
| 1500049 SENDER_COUNTRY_NOT_ACCEPTED | 400 | SENDER_COUNTRY_NOT_ACCEPTED — This service requires the sender address to be in the destination country of the service; sender.country_code is not accepted | 此服務要求寄件人地址位於服務的目的國,sender.country_code 不被接受。 |
| 1500050 CO_POSTAL_UNSUPPORTED | 400 | CO_POSTAL_UNSUPPORTED — recipient.postal_code is not a supported six-digit Colombian postcode for this service | recipient.postal_code 不是此服務支援的六位哥倫比亞郵編。 |
| 1500088 SERVICE_RETIRED | 400 | SERVICE_RETIRED — US Priority Air (PR) has been discontinued and cannot be used for new shipments. Choose another available service | 美國標快服務(PR)已停售,無法建立新訂單,請改選其他可用服務 |
| 1500101 PICKUP_INVALID_REQUEST | 400 | PICKUP_INVALID_REQUEST — The pickup request is invalid | 攬收請求內容無效 |
| 1500102 PICKUP_NOT_FOUND | 404 | PICKUP_NOT_FOUND — Pickup or pickup address not found (Also used when a selected shipment in shipment_ids is missing or belongs to another account.) | 找不到該攬收或攬收地址(shipment_ids 中所選貨件不存在或不屬於此帳戶時,亦使用此錯誤碼。) |
| 1500103 PICKUP_FEATURE_DISABLED | 503 | PICKUP_FEATURE_DISABLED — Pickup arrangement through the API is not available right now | 暫未開放經 API 安排攬收 |
| 1500104 PICKUP_HALTED | 503 | PICKUP_HALTED — Pickup arrangement is temporarily paused | 攬收安排暫時停止,請稍後再試 |
| 1500105 PICKUP_UNAVAILABLE | 403 | PICKUP_UNAVAILABLE — Pickup arrangement is not available for this account | 此帳戶暫不能安排攬收 |
| 1500106 PICKUP_SHIPMENTS_NOT_BOOKABLE | 409 | PICKUP_SHIPMENTS_NOT_BOOKABLE — One or more shipments cannot be booked for pickup | 部分訂單目前不能安排攬收 |
| 1500107 PICKUP_PREVIEW_STALE | 409 | PICKUP_PREVIEW_STALE — The pickup preview is no longer valid — request a new preview | 攬收預覽已失效,請重新預覽 |
| 1500108 PICKUP_BOOKING_INTENT_REUSED | 409 | PICKUP_BOOKING_INTENT_REUSED — This preview was already used for a different pickup request | 此預覽已用於另一個不同的攬收請求 |
| 1500109 PICKUP_LEGACY_MANIFEST_CONFLICT | 409 | PICKUP_LEGACY_MANIFEST_CONFLICT — An earlier pickup arrangement made in the web portal must finish before pickups can be arranged through the API | 帳戶有未完成的舊式攬收安排,須待其完成後才可經 API 安排攬收 |
| 1500110 PICKUP_STATE_CONFLICT | 409 | PICKUP_STATE_CONFLICT — The pickup state changed while the request was processed — retry | 處理期間攬收狀態已改變,請重試 |
| 1500111 PICKUP_INVALID_DATE_OR_SLOT | 400 | PICKUP_INVALID_DATE_OR_SLOT — The pickup date or time slot is not available | 所選攬收日期或時段不可用 |
| 1500112 PICKUP_CANCEL_WINDOW_EXPIRED | 409 | PICKUP_CANCEL_WINDOW_EXPIRED — The one-hour window to cancel this pickup has passed | 此攬收已超過可自行取消的一小時時限 |
| 1500113 PICKUP_NOT_CANCELLABLE | 409 | PICKUP_NOT_CANCELLABLE — This pickup can no longer be cancelled | 此攬收目前不能取消 |
| 1500114 PICKUP_CANCEL_UPSTREAM_FAILED | 502 | PICKUP_CANCEL_UPSTREAM_FAILED — The pickup could not be cancelled with the pickup provider — retry shortly | 暫時未能向攬收服務方取消,請稍後重試 |
| 1500115 PICKUP_CONFIGURATION_UNAVAILABLE | 503 | PICKUP_CONFIGURATION_UNAVAILABLE — Pickup arrangement is not configured for this period — contact support | 攬收設定暫未就緒,請聯絡客服 |
| 1500116 SHIPMENT_HAS_ACTIVE_PICKUP | 409 | SHIPMENT_HAS_ACTIVE_PICKUP — This shipment is part of an active pickup and cannot be cancelled — cancel the pickup first (If a self drop-off declaration holds it there is no pickup to cancel, so contact customer service; then retry the same request.) | 此訂單已在攬收安排中,暫時不能取消。請先取消攬收。(若持有來自自送倉申報,則沒有可取消的攬收,須聯絡客服解除;之後以相同請求重試。) |
| 1500117 SELF_DROPOFF_ORIGIN_NOT_SUPPORTED | 400 | SELF_DROPOFF_ORIGIN_NOT_SUPPORTED — Self drop-off declarations through the API are only available for shipments sent from Hong Kong (data.reason_code is origin_not_supported or origin_undetermined; one unsupported or undetermined origin refuses the whole request.) | 經 API 申報自送倉只適用於香港發貨的訂單。(data.reason_code 為 origin_not_supported 或 origin_undetermined;任何一件始發地不支援或無法確定的貨件均會使整個請求被拒絕。) |
| 1500200 LAST_MILE_BOOKING_REJECTED | 422 | LAST_MILE_BOOKING_REJECTED — The last-mile delivery provider rejected the recipient data; no shipment was kept and any wallet reservation has been released: {detail} | 尾程配送商拒絕收件資料,本系統未保留出貨訂單,錢包預留款已退回:{detail} |
| 1500201 BOOKING_PENDING_REVIEW | 409 | BOOKING_PENDING_REVIEW — The booking result is pending review. Do not resubmit; our support team will follow up | 建單結果待確認,請勿重複下單,客服將跟進。 |
| 1500202 LABEL_SORT_PROCESSING_FAILED | 409 | LABEL_SORT_PROCESSING_FAILED — The label sort information could not be processed for this shipment — contact support | 此訂單的面單分揀資訊處理失敗,請聯絡客服 |
| 1500203 WALLET_CURRENCY_UNSUPPORTED | 409 | WALLET_CURRENCY_UNSUPPORTED — This account's wallet currency does not support this feature | 此帳號的錢包幣別暫不支援此功能 |
| 9900000 INTERNAL_SERVER_ERROR | 500 | INTERNAL_SERVER_ERROR — Internal Server Error | 內部伺服器錯誤 |
| 9900001 UNAUTHORIZED | 401 | UNAUTHORIZED — Unauthorized | 未經授權 |
| 9900003 FORBIDDEN | 403 | FORBIDDEN — Forbidden | 禁止 |
| 9900006 RECORD_DUPLICATE | 400 | RECORD_DUPLICATE — Record already exists: {key} | 記錄已存在: {key} |
| 9900008 INVALID_FIELD | 400 | INVALID_FIELD — Invalid Field: {field} | 無效字段: {field} |
| 9900009 RECORD_NOT_FOUND | 400 | RECORD_NOT_FOUND — Record not found | 找不到記錄 |
| 9900026 YUN_PRECHECK_FAILED | 400 | YUN_PRECHECK_FAILED — Order rejected by the carrier pre-check: {detail} | 落單未過承運商規則預檢:{detail} |
| 9900027 YUN_DISPATCH_REJECTED | 422 | YUN_DISPATCH_REJECTED — Order rejected by the carrier: {detail} | 承運商拒收此單:{detail} |
When reporting a problem, include the request time, endpoint, HTTP status, the sysCode received (if present), and the response's X-Request-Id header for investigation. Do not include the full API key.