API ước tính freight quốc tế

POST /v1/fulfillment/shipments/freight/estimate — calculator nhẹ; số tiền chỉ mang tính tham khảo.

So sánh với shipment preview (giá chính xác sau khi nhập kho).

Estimate so với preview

freight/estimatepreview
Khi nàoTrước / không có kiện nhập khoSau khi kiện ở trong kho
InputQuốc gia/postal + cân nặng/kích thướcparcel_nos[] + receiver đầy đủ + kênh
OutputGiá tham khảo quotes[]Một freight / services / total

Request body

{
  "destination": {
    "country_code": "US",
    "region": "California",
    "postal_code": "90001"
  },
  "weight_kg": 2.05,
  "length_cm": 30,
  "width_cm": 20,
  "height_cm": 10,
  "attributes": [
    "general"
  ]
}
  • weight_kg và/hoặc length_cm + width_cm + height_cm (ít nhất một)
  • attributes[] tùy chọn (ví dụ general, battery)
  • Không có parcel_nos, không có địa chỉ đường đầy đủ

Response

quotes[] với shipping_channel_code, shipping_channel_name, freight, total (fen). Tham chiếu field: response models.

Thuộc tính item {#item-attributes}

GET /v1/fulfillment/shipments/item-attributes — mã attributes[] hợp lệ cho estimate (ví dụ general, battery).