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

验货仓查询,根据WINIT产品查询可选验货仓列表。

接口英文名称

winit.pms.getWarehouseList

使用场景

验货仓查询,支持入库单,根据WINIT产品查询可选验货仓列表。

备注

1.查询验货仓,使用物流渠道进行查询
2.查询目的仓,需要使用验货仓跟物流渠道一起查询

请求说明
URL http://openapi.winit.com.cn/openapi/service
接口测试 http://openapi.sandbox.winit.com.cn/openapi/service
验证方法 Token,md5
格式 json
字符编码 UTF-8
http请求方式 http
请求数限制 默认每分钟1000,有需要可申请加大。
请求入参
名称 类型 必填 说明 示例
winitProductCode String(50) Y Winit产品编码
warehouseType String(50) Y 验货仓:INSJ
目的仓:DEST
orderType String(50) Y 订单类型编码
SD-标准海外仓入库(Winit国内验货且走Winit头程)
DW-直发海外验入库(Winit海外验货,头程仅限卖家直发)
DI-直发国内验入库(Winit国内验货或者卖家自验,头程仅限卖家直发)
inspectionWarehouseCode String(50) N 验货仓编码,当warehouseType=DEST时,必填
请求示例
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"
}

                            
返回出参
名称 类型 必填 说明 示例
warehouseCode String(20) Y 仓库Code
warehouseName String(50) Y 仓库名称
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"
      }
   ]}
}