Skip to main content
GET
Get resend shipping fees by destination
此頁面由 AI 自動翻譯。API 技術規格以英文呈現為標準。如有任何疑問,請參閱英文版本
針對一個或多個要寄往指定目的地(國家 + 郵遞區號)的退貨庫存項目,回傳可用的 Resend(出庫)服務類型,並附帶費用估算。可用於在呼叫 建立 Resend Order 之前預覽 Resend 費用。
本端點僅估算 Resend(出庫)運送費用。若要預覽 Return(入庫)費用,請改用 依起始位置取得 Shipping Fees

必要參數

  • returnInventoryIdList — 必填。以逗號分隔的退貨庫存 ID 清單(例如 10023,10024),代表要一併重寄的項目。所有 ID 必須屬於同一個 Warehouse,且每個都必須存在,否則請求會驗證失敗。
  • toCountryCode — 必填,小寫 ISO3(例如 usagbr)。有效值請參閱 取得所有國家
  • toPostalCode — 必填,且不可為空。
  • limit — 選填。限制回傳的服務類型選項數量;省略時會回傳該目的地所有可用選項。

回應備註

每一筆項目描述一種可用的 Resend 服務類型與其費用:
  • serviceTypeCode / serviceTypeName — 服務識別碼與其顯示名稱。
  • isEnableAutoCreateLabel — 以此服務建立 Resend Order 時是否自動產生面單。
  • postalCodePair — 用於推算費率的 from / to 郵遞區號區間配對。
  • currencyCodefee — 估算的費用。
  • chargeableWeight — 承運商實際計費的重量,可能因材積重量進位而高於包裹的實際重量。
清單為空表示該庫存組合與目的地沒有可用的 Resend 服務。費用為估算值;最終費用於建立 Resend Order 時套用。

授權

x-rr-apikey
string
header
必填

Your API key

x-rr-apitoken
string
header
必填

Your API token — keep this private

查詢參數

returnInventoryIdList
string
必填

Comma-separated list of return inventory IDs to price the resend for. All IDs must belong to the same warehouse.

toCountryCode
string
必填

ISO3 destination country code

toPostalCode
string
必填

Destination postal code

limit
integer<int32>

Maximum number of service-type fee options to return

必填範圍: x >= 0

回應

Success

data
object[]

List of available resend service types with their shipping fee