屬性
請求正文中的 JSON 鍵/值對
POST | https://api.zonos.com/v1/shipment_rating
HEADER zonos-version: 2020-03-04
上述標題是此運費報價請求成功完成的必需輸入。
| 字段↕ | 說明↕ |
|---|---|
currency 必需 | 基本貨幣字符串,由三個字母的 ISO 代碼表示。 |
items_amount 必需 | 包含項目金額的十進制數。 |
packages 必需 | 要運送的包裝的數量和尺寸清單。hash |
packages.id 必需 | 商家或出口商的唯一包裝識別碼。 |
packages.dimensions 必需 | 包裝的尺寸。hash |
packages.dimensions.height 必需 | 運送盒高度的十進制數。 |
packages.dimensions.length 必需 | 運送盒長度的十進制數。 |
packages.dimensions.unit 必需 | 運送盒尺寸的測量單位。可能的值為 inch centimeter millimeter null。當為 null 時,將使用 inch。 |
packages.dimensions.width 必需 | 包含運送盒寬度的十進制數。 |
packages.insured_amount 選填 | 包含保險金額的十進制數。 |
packages.type 選填 | 一個字符串,用於指定要用於運費計算的特定快遞公司盒類型。可能的值包括 FEDEX_BOX |
packages.weight 必需 | 包含包裝重量的十進制數。 |
packages.weight_unit 必需 | 具有重量測量單位的字符串。可能的值為 pound ounce kilogram null。當為 null 時,將使用 pound。 |
pickup_date 必需 | ISO 8601 格式的預定取件日期 YYYY-MM-DDTHH:mm:ss.sss+0000。未傳遞時區信息時假定為 UTC。 |
service_level 選填 | 與快遞公司的 service_level,例如 standard。hash 常見示例包括:ups_express、ups_express_saver、ups_expedited、ups_economy、ups_standard、ups_mail_innovations_economy、ups_mail_innovations_priority、dhl_express、dhl_ecommerce_parcel_direct、fedex_priority、fedex_economy、usps_first_class_mail_international、usps_priority_mail_international、landmark_parcel、apc_parcel、point2point_standard、point2point_direct、point2point_packet 和 fedex_international_ground有關完整的按快遞公司提供的服務級別列表,請參閱快遞公司文檔。 |
ship_from 必需 | 始發地址。hash |
ship_from.city | 原始地址的城市、城鎮、地區、郊區或村莊的字符串。 |
ship_from.country 必需 | 始發國家/地區字符串,由兩個字母的 ISO 代碼表示。 |
ship_from.postal_code 必需 | 原始地址郵政編碼的字符串。 |
ship_from.state_code 必需 | 原始地址的字符串(如果可用)。僅在加拿大和巴西時必需。 |
ship_to 必需 | 目的地地址。hash |
ship_to.city 必需 | 客戶地址城市、城鎮、地區、郊區或村莊的字符串。 |
ship_to.country 必需 | 目的地國家/地區的字符串,由兩個字母的 ISO 代碼表示。 |
ship_to.postal_code 必需 | 目的地郵政編碼的字符串。根據進口國家/地區的不同,可能是可選的。 |
ship_to.state_code 必需 | 目的地州/地區代碼的字符串(如果可用)。僅在加拿大和巴西時必需。 |
ship_to.type 必需 | 目的地地址的類型。可能的值包括 residential commercial。 |
1
{2
"currency": "USD",3
"items_amount": 168.99,4
"packages": [5
{6
"id": "1",7
"dimensions": {8
"height": 19,9
"length": 15,10
"unit": "inch",11
"width": 1512
},13
"insured_amount": 33.22,14
"type": null,15
"weight": 32,16
"weight_unit": "pound"17
}18
],19
"pickup_date": "2020-07-06T18:47:04.629+0000",20
"service_level": null,21
"ship_from": {22
"city": "St George",23
"country": "US",24
"postal_code": "84770",25
"state_code": "UT"26
},27
"ship_to": {28
"city": "Campinas",29
"country": "BR",30
"postal_code": "75828-000",31
"state_code": "SP",32
"type": "residential"33
}34
}
申請運費報價
探索運費報價請求中的關鍵/值對。為已在 Zonos 中配置的各種運輸商申請國際運費報價。