预估LMA订单费用
更新时间: 2021-08-21 21:34:17 访问次数:2968
接口说明
根据包裹的尺寸预估LMA订单的费用
请求说明
URL | https://openapi.winit.com.cn/openapi/service |
接口测试 | https://sandboxopenapi.winit.com.cn/openapi/service |
接口名 | lma.shipment.calDeliveryFee |
版本 | 1.0 |
验证方法 | Token,md5 |
格式 | json |
字符编码 | UTF-8 |
http请求方式 | http |
请求数限制 | 默认每分钟1000,有需要可申请加大。 |
请求入参
名称 | 类型 | 必填 | 说明 | 示例 |
---|---|---|---|---|
country | String(128) | Y | 国家编码 |
|
region | String(128) | N | 州编码 |
|
city | String(128) | Y | 城市 |
|
pickupAddressCode | String(128) | Y | 虚拟仓编码 |
|
winitProductCode | String(128) | Y | winitPSC编码 |
|
zipCode | String(128) | Y | 邮编 |
|
parcelList包裹列表 | ||||
length | decimal(16,2) | Y | 包裹长度 CM |
|
width | decimal(16,2) | Y | 包裹宽度 CM |
|
height | decimal(16,2) | Y | 包裹高度 CM |
|
weight | decimal(16,4) | Y | 包裹重量 KG |
请求示例
{ "action": "lma.shipment.calDeliveryFee", "app_key": "rebecca", "client_id": "ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2", "client_sign": "B31F1EE6C595ED630C64DE00B076A46C", "data": { "city": "LA", "country": "US", "region": "CA", "zipCode": "90001", "parcelList": [ { "height": "13", "length": "15", "weight": "0.1", "width": "12" } ], "pickupAddressCode": "LMAUS0001", "winitProductCode": "OSF710014" }, "format": "json", "language": "zh_CN", "platform": "OWNERERP", "sign": "489B48350B9B6B646203378F8FDC17E0", "sign_method": "md5", "timestamp": "2019-05-29 09:42:11", "version": "1.0" }
返回出参
名称 | 类型 | 必填 | 说明 | 示例 |
---|---|---|---|---|
winitProductCode | winitPSC编码 |
|||
winitProductName |
winitPSC名称 |
|||
currency |
币种 |
|||
totalAmount |
总金额 |
|||
chargeList费用明细列表 |
||||
chargeName |
费用名称 |
|||
amount |
费用金额 |
|||
parcelList包裹信息 |
||||
length |
长 CM |
|||
width |
宽 CM |
|||
height |
高 CM |
|||
weight |
重量 KG |
|||
volume |
体积 CBM |
返回示例
{ "code": "0", "msg": "操作成功", "data": { "chargeList": [ { "amount": 6.72, "currency": "USD", "chargeName": "最后一公里派送费" }, { "amount": 0.44, "currency": "USD", "chargeName": "燃油附加费" } ], "totalAmount": 7.16, "winitProductName": "UPS - Ground Service-LMA917", "winitProductCode": "OSF710014", "currency": "USD", "parcelList": [ { "volume": 0.00234, "length": 15, "width": 12, "weight": 0.1, "height": 13 } ] } }
关键词