Get resend shipping fees by destination
重寄
依目的地取得 Resend Shipping Fees
GET
Get resend shipping fees by destination
針對一個或多個要寄往指定目的地(國家 + 郵遞區號)的退貨庫存項目,回傳可用的 Resend(出庫)服務類型,並附帶費用估算。可用於在呼叫 建立 Resend Order 之前預覽 Resend 費用。
本端點僅估算 Resend(出庫)運送費用。若要預覽 Return(入庫)費用,請改用 依起始位置取得 Shipping Fees。
必要參數
returnInventoryIdList— 必填。以逗號分隔的退貨庫存 ID 清單(例如10023,10024),代表要一併重寄的項目。所有 ID 必須屬於同一個 Warehouse,且每個都必須存在,否則請求會驗證失敗。toCountryCode— 必填,小寫 ISO3(例如usa、gbr)。有效值請參閱 取得所有國家。toPostalCode— 必填,且不可為空。limit— 選填。限制回傳的服務類型選項數量;省略時會回傳該目的地所有可用選項。
回應備註
每一筆項目描述一種可用的 Resend 服務類型與其費用:serviceTypeCode/serviceTypeName— 服務識別碼與其顯示名稱。isEnableAutoCreateLabel— 以此服務建立 Resend Order 時是否自動產生面單。postalCodePair— 用於推算費率的from/to郵遞區號區間配對。currencyCode與fee— 估算的費用。chargeableWeight— 承運商實際計費的重量,可能因材積重量進位而高於包裹的實際重量。
相關
- 建立 Resend Order — 使用所選的
serviceTypeCode。 - 取得 重寄訂單 詳情 — 建立後檢視 Resend Order。
- 依起始位置取得 Shipping Fees — Return(入庫)費用預覽的對應端點。
授權
Your API key
Your API token — keep this private
查詢參數
Comma-separated list of return inventory IDs to price the resend for. All IDs must belong to the same warehouse.
ISO3 destination country code
Destination postal code
Maximum number of service-type fee options to return
必填範圍:
x >= 0回應
Success
List of available resend service types with their shipping fee