查询验货/目的仓
更新时间: 2024-11-08 16:21:46 访问次数:12637
接口说明
根据WINIT产品查询可选验货仓和目的仓列表。
1.查询验货仓,使用产品编码进行查询
2.查询目的仓,需要使用验货仓跟产品编码一起查询
接口名称
winit.pms.getWarehouseList
请求说明
请求内容 | 说明 |
---|---|
URL | https://openapi.winit.com.cn/openapi/service |
接口测试 | https://sandboxopenapi.winit.com.cn/openapi/service |
验证方法 | Token,md5 |
格式 | json |
字符编码 | UTF-8 |
http请求方式 | http |
请求数限制 | 默认每分钟1000,1000有需要可申请加大。 |
请求入参
名称 | 类型 | 必填 | 说明 | 示例 |
---|---|---|---|---|
winitProductCode | String(50) | Y | Winit产品编码 | OW01010382 |
warehouseType | String(50) | Y | 验货仓:INSJ 目的仓:DEST |
INSJ |
orderType | String(50) | Y | 订单类型编码 SD:标准海外仓入库 DW:直发海外验入库 DI:直发自验入库 |
SD |
inspectionWarehouseCode | String(50) | O | 验货仓编码 当warehouseType=DEST时,必填 直发自验入库-非Winit承运时,入参CSIW01:客户自验仓 |
SH0001 |
请求示例
1、查询验货仓
{
"action": "winit.pms.getWarehouseList",
"app_key": "rebecca",
"client_id":"ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2",
"client_sign":"350A738AA3D6AD9BA5DECB9CC55A5A91",
"data": {
"winitProductCode": "OW01010382",
"warehouseType":"INSJ",
"inspectionWarehouseCode":"",
"orderType":"DI"
},
"format": "json",
"language": "zh_CN",
"platform": "OWNERERP",
"sign": "3B66CE917E06C113052571A64044AE86",
"sign_method": "md5",
"timestamp": "2016-09-09 10:41:03",
"version": "1.0"
}
2、查询目的仓
{
"action": "winit.pms.getWarehouseList",
"app_key": "rebecca",
"client_id":"ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2",
"client_sign":"3EC24D4ADE8AF1F90A7FA57CF25D0FC4",
"data": {
"winitProductCode": "OW01010382",
"warehouseType":"DEST",
"inspectionWarehouseCode":"",
"orderType":"DI",
"inspectionWarehouseCode":"SH0001"
},
"format": "json",
"language": "zh_CN",
"platform": "OWNERERP",
"sign": "816DB402A66809C5EB2B23D44C9B91B4",
"sign_method": "md5",
"timestamp": "2016-09-09 10:41:03",
"version": "1.0"
}
返回出参
返回参数说明:正确的返回编码code:0及结果data,错误的返回错误码及错误信息msg。
名称 | 类型 | 必传 | 说明 | 示例 |
---|---|---|---|---|
warehouseCode | String(20) | Y | 仓库Code | SZ0001 |
warehouseName | String(50) | Y | 仓库名称 | ShenZhen Warehouse |
countryCode | String(50) | Y | 国家编码 | CN |
返回示例
{
"code": "0",
"msg": "操作成功",
"data": {"warehouseList": [
{
"countryCode": "CN",
"warehouseName": "ShenZhen Warehouse",
"warehouseCode": "SZ0001"
},
{
"countryCode": "CN",
"warehouseName": "ShangHai Warehouse",
"warehouseCode": "SH0001"
},
{
"countryCode": "CN",
"warehouseName": "GuangZhou Warehouse",
"warehouseCode": "GZ0001"
},
{
"countryCode": "CN",
"warehouseName": "NingBo Warehouse",
"warehouseCode": "NB0001"
},
{
"countryCode": "CN",
"warehouseName": "QingDao Warehouse",
"warehouseCode": "QD0001"
},
{
"countryCode": "HK",
"warehouseName": "HK Warehouse",
"warehouseCode": "HK0001"
}
]}
}
关键词