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