為已在 Zonos 中配置的各種運輸商申請國際運費報價。
POST | https://api.zonos.com/v1/shipment_rating
https://api.zonos.com/v1/shipment_rating
HEADER zonos-version: 2020-03-04
zonos-version: 2020-03-04
上述標題是此運費報價請求成功完成的必需輸入。
currency
items_amount
packages
hash
packages.id
packages.dimensions
packages.dimensions.height
packages.dimensions.length
packages.dimensions.unit
inch
centimeter
millimeter
null
packages.dimensions.width
packages.insured_amount
packages.type
FEDEX_BOX
packages.weight
packages.weight_unit
pound
ounce
kilogram
pickup_date
YYYY-MM-DDTHH:mm:ss.sss+0000
service_level
standard
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
ship_from.city
ship_from.country
ship_from.postal_code
ship_from.state_code
ship_to
ship_to.city
ship_to.country
ship_to.postal_code
ship_to.state_code
ship_to.type
residential
commercial
{
"currency": "USD",
"items_amount": 168.99,
"packages": [
"id": "1",
"dimensions": {
"height": 19,
"length": 15,
"unit": "inch",
"width": 15
},
"insured_amount": 33.22,
"type": null,
"weight": 32,
"weight_unit": "pound"
}
],
"pickup_date": "2020-07-06T18:47:04.629+0000",
"service_level": null,
"ship_from": {
"city": "St George",
"country": "US",
"postal_code": "84770",
"state_code": "UT"
"ship_to": {
"city": "Campinas",
"country": "BR",
"postal_code": "75828-000",
"state_code": "SP",
"type": "residential"
申請運費報價
申請運費報價
探索運費報價請求中的關鍵/值對。為已在 Zonos 中配置的各種運輸商申請國際運費報價。
屬性
請求正文中的 JSON 鍵/值對
POST |
https://api.zonos.com/v1/shipment_ratingHEADER
zonos-version: 2020-03-04currency必需items_amount必需packages必需hashpackages.id必需packages.dimensions必需hashpackages.dimensions.height必需packages.dimensions.length必需packages.dimensions.unit必需inchcentimetermillimeternull。當為null時,將使用inch。packages.dimensions.width必需packages.insured_amount選填packages.type選填FEDEX_BOXpackages.weight必需packages.weight_unit必需poundouncekilogramnull。當為null時,將使用pound。pickup_date必需YYYY-MM-DDTHH:mm:ss.sss+0000。未傳遞時區信息時假定為 UTC。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必需hashship_from.cityship_from.country必需ship_from.postal_code必需ship_from.state_code必需ship_to必需hashship_to.city必需ship_to.country必需ship_to.postal_code必需ship_to.state_code必需ship_to.type必需residentialcommercial。{"currency": "USD","items_amount": 168.99,"packages": [{"id": "1","dimensions": {"height": 19,"length": 15,"unit": "inch","width": 15},"insured_amount": 33.22,"type": null,"weight": 32,"weight_unit": "pound"}],"pickup_date": "2020-07-06T18:47:04.629+0000","service_level": null,"ship_from": {"city": "St George","country": "US","postal_code": "84770","state_code": "UT"},"ship_to": {"city": "Campinas","country": "BR","postal_code": "75828-000","state_code": "SP","type": "residential"}}這個頁面有幫助嗎?