申請運費報價

探索運費報價請求中的關鍵/值對。

為已在 Zonos 中配置的各種運輸商申請國際運費報價。

屬性 

請求正文中的 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,例如 standardhash 常見示例包括:ups_expressups_express_saverups_expeditedups_economyups_standardups_mail_innovations_economyups_mail_innovations_prioritydhl_expressdhl_ecommerce_parcel_directfedex_priorityfedex_economyusps_first_class_mail_internationalusps_priority_mail_internationallandmark_parcelapc_parcelpoint2point_standardpoint2point_directpoint2point_packetfedex_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": 15
12 },
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}