API оценки международного фрахта
POST /v1/fulfillment/shipments/freight/estimate — легкий калькулятор; суммы ориентировочные.
Сравните с shipment preview (точная цена после inbound).
Estimate vs preview
| freight/estimate | preview | |
|---|---|---|
| Когда | До / без inbound parcels | После parcels на складе |
| Input | Country/postal + weight/size | parcel_nos[] + полный receiver + channel |
| Output | quotes[] reference prices | Один 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и/илиlength_cm+width_cm+height_cm(минимум одно)- Опционально
attributes[](например,general,battery) - Без
parcel_nos, без полного street address
Ответ
quotes[] с shipping_channel_code, shipping_channel_name, freight, total (fen). Справочник полей: модели ответов.
Атрибуты товара {#item-attributes}
GET /v1/fulfillment/shipments/item-attributes — допустимые коды attributes[] для estimate (например, general, battery).