为在商店设置中配置的各种运输提供商请求国际配送费率。
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"
请求配送费率
请求配送费率
探索配送费率请求中的键值对。为在商店设置中配置的各种运输提供商请求国际配送费率。
属性
请求主体中的 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"}}这个页面有帮助吗?