API
查询验货/目的仓
更新时间: 2019-10-16 20:15:19 访问次数:11612

接口说明

根据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、查询验货仓

  1. {
  2. "action": "winit.pms.getWarehouseList",
  3. "app_key": "rebecca",
  4. "client_id":"ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2",
  5. "client_sign":"350A738AA3D6AD9BA5DECB9CC55A5A91",
  6. "data": {
  7. "winitProductCode": "OW01010382",
  8. "warehouseType":"INSJ",
  9. "inspectionWarehouseCode":"",
  10. "orderType":"DI"
  11. },
  12. "format": "json",
  13. "language": "zh_CN",
  14. "platform": "OWNERERP",
  15. "sign": "3B66CE917E06C113052571A64044AE86",
  16. "sign_method": "md5",
  17. "timestamp": "2016-09-09 10:41:03",
  18. "version": "1.0"
  19. }

2、查询目的仓

  1. {
  2. "action": "winit.pms.getWarehouseList",
  3. "app_key": "rebecca",
  4. "client_id":"ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2",
  5. "client_sign":"3EC24D4ADE8AF1F90A7FA57CF25D0FC4",
  6. "data": {
  7. "winitProductCode": "OW01010382",
  8. "warehouseType":"DEST",
  9. "inspectionWarehouseCode":"",
  10. "orderType":"DI",
  11. "inspectionWarehouseCode":"SH0001"
  12. },
  13. "format": "json",
  14. "language": "zh_CN",
  15. "platform": "OWNERERP",
  16. "sign": "816DB402A66809C5EB2B23D44C9B91B4",
  17. "sign_method": "md5",
  18. "timestamp": "2016-09-09 10:41:03",
  19. "version": "1.0"
  20. }

返回出参

返回参数说明:正确的返回编码code:0及结果data,错误的返回错误码及错误信息msg。

名称 类型 必传 说明 示例
warehouseCode String(20) Y 仓库Code SZ0001
warehouseName String(50) Y 仓库名称 ShenZhen Warehouse
countryCode String(50) Y 国家编码 CN

返回示例

  1. {
  2. "code": "0",
  3. "msg": "操作成功",
  4. "data": {"warehouseList": [
  5. {
  6. "countryCode": "CN",
  7. "warehouseName": "ShenZhen Warehouse",
  8. "warehouseCode": "SZ0001"
  9. },
  10. {
  11. "countryCode": "CN",
  12. "warehouseName": "ShangHai Warehouse",
  13. "warehouseCode": "SH0001"
  14. },
  15. {
  16. "countryCode": "CN",
  17. "warehouseName": "GuangZhou Warehouse",
  18. "warehouseCode": "GZ0001"
  19. },
  20. {
  21. "countryCode": "CN",
  22. "warehouseName": "NingBo Warehouse",
  23. "warehouseCode": "NB0001"
  24. },
  25. {
  26. "countryCode": "CN",
  27. "warehouseName": "QingDao Warehouse",
  28. "warehouseCode": "QD0001"
  29. },
  30. {
  31. "countryCode": "HK",
  32. "warehouseName": "HK Warehouse",
  33. "warehouseCode": "HK0001"
  34. }
  35. ]}
  36. }