查询派送方式
更新时间: 2024-06-07 10:19:12 访问次数:17278
接口说明
本接口可通过海外仓ID来查询该仓库对应的派送方式。
接口名称
queryDeliveryWay
请求说明
请求内容 | 说明 |
---|---|
URL | https://openapi.winit.com.cn/openapi/service |
接口测试 | https://sandboxopenapi.winit.com.cn/openapi/service |
验证方法 | Token,md5 |
格式 | json |
字符编码 | UTF-8 |
http请求方式 | http |
请求数限制 | 默认每分钟1000,1000有需要可申请加大。 |
请求入参
名称 | 类型 | 必填 | 说明 | 示例 |
---|---|---|---|---|
warehouseID | String(10) | Y | 海外仓ID 由万邑通定义的仓库ID,每个仓库有唯一一个对应的ID。 通过接口queryWarehouse得到出参:warehouseID |
请求示例
{
"action":"queryDeliveryWay",
"app_key":"rebecca",
"client_id":"ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2",
"client_sign":"B022B0256BFFFCD6B6324B509227DEFE",
"data":{
"warehouseID":"1000008"
},
"format":"json",
"language":"zh_CN",
"platform":"OWNERERP",
"sign":"EDDEADA930940E71E79005948944BFC1",
"sign_method":"md5",
"timestamp":"2015-06-16 00:19:26",
"version":"1.0"
}
返回出参
返回参数说明:正确的返回编码code:0及结果data,错误的返回错误码及错误信息msg。
名称 | 类型 | 必填 | 说明 | 示例 |
---|---|---|---|---|
winitProductCode | String(80) | Y | 派送方式代码 | |
deliveryWay | String(255) | Y | 派送方式名称 | |
deliveryID | String() | Y | 派送方式ID | |
deliveryType | String() | Y | 派送类型: MAIN:主派送方式 SUB:子派送方式 |
|
mainWinitProductCode | String() | O | 主派送方式代码 当deliveryType为SUB时,必填 |
|
isMandoorplateNumbers | String(1) | O | 派送方式是否门牌号必填 | |
warehouseID | String(10) | Y | 海外仓仓库ID | |
isCombinedService | String(1) | Y | 是否组合服务(Y:是、N:否) 当返回“Y”此派送方式无法确定唯一的carrier(组合服务需按WINIT提供的平台派送商platformCarrier上传跟踪号) 当返回“N”此派送方式可以确定唯一的carrier |
Y |
VASList | Array | N | 增值服务列表 | |
serviceCode | String() | N | 增值服务编码 | |
serviceCodeType | String() | N | 增值服务类型 DEFAULT:派送方式默认自带的增值服务 OPTIONAL:可供选择的增值服务(下单时需额外传增值服务编码) |
|
VASList.attrList | Array | N | 增值服务信息明细列表 | |
attrUnit | String() | N | 增值费用计费单位 | |
minValue | String() | N | 最小值 | |
attrCode | String() | N | 增值服务属性code ISA:投保金额 投保金额ISA的最小值:0.01,最大是10000 |
|
maxValue | String() | N | 最大值 |
返回示例
{
"code": "0",
"msg": "操作成功",
"data": [
{
"mainWinitProductCode": null,
"deliveryID": 1000007765,
"isMandoorplateNumbers": "N",
"isCombinedService": "Y",
"warehouseID": 1030045,
"deliveryType": "MAIN",
"deliveryWay": "Winit Fulfillment Plus-Standard (2-5 Business Days)-US",
"winitProductCode": "OSF811007765",
"warehouseCode": "USKY3"
},
{
"mainWinitProductCode": null,
"deliveryID": 1000368,
"isMandoorplateNumbers": "N",
"isCombinedService": "N",
"warehouseID": 1000008,
"deliveryType": "MAIN",
"deliveryWay": "Test Last-mile Service(线下尾程派送服务)",
"winitProductCode": "OSF820193"
},
{
"mainWinitProductCode": null,
"deliveryID": 202201458,
"isMandoorplateNumbers": "N",
"isCombinedService": "N",
"warehouseID": 1000008,
"deliveryType": "MAIN",
"deliveryWay": "VAS-FedEx - Ground (Standard 1-5 Business Days)-USWC",
"winitProductCode": "OSF811006458",
"VASList": [
{
"serviceCodeType": "OPTIONAL",
"serviceCode": "OSF777778",
"attrList": [
{
"attrUnit": "CNY",
"minValue": 1,
"attrCode": "ISA",
"maxValue": 10000
}
]
}
]
},
{
"mainWinitProductCode": null,
"deliveryID": 1000006517,
"isMandoorplateNumbers": "N",
"isCombinedService": "N",
"warehouseID": 1000008,
"deliveryType": "MAIN",
"deliveryWay": "VAS - Self pick up service(palletzation)-FBA",
"winitProductCode": "OSF821006517"
},
{
"mainWinitProductCode": null,
"deliveryID": 1000006628,
"isMandoorplateNumbers": "N",
"isCombinedService": "N",
"warehouseID": 1000008,
"deliveryType": "MAIN",
"deliveryWay": "UPS - 3 Day Select Residential Sign (Express 3 Business Days)-USWC-测试",
"winitProductCode": "OSF811006628",
"VASList": [
{
"serviceCodeType": "OPTIONAL",
"serviceCode": "OSF777778",
"attrList": [
{
"attrUnit": "CNY",
"minValue": 1,
"attrCode": "ISA",
"maxValue": 10000
}
]
}
]
}
]
}
关键词