注册
  1. 库存类接口
  2. 库存查询

1)由平台提供,开发者可查询库存信息

2URL地址:https://public.zjuhe.cn/api/stock_inquiry

3)请求参数

变量名

必填

类型

说明

code

String(128)

专属编码(例:Zj20190924125636,平台方提供开发者访问的标识码

APPID

String(128)

公众号ID(例:wx68727as88872t97),微信公众号专属标识

page

Int(10)

返回数据分页页码(例:1,即前1到15的订单数据

merchant

String(128)

商户名

terminal_id

String(15)

设备ID(例:869270048847410

region_name

String(128)

场地名称(例:富力盈力)

goods_name

String(128)

品名称例:雪碧

aisle_number

Int(10)

货道编号(例:10)

4)举例如下:


$ date =[

 code => ‘Zj20190924125636,

 APPID => ‘wx68727as88872t97,

 page => 1,

    ‘merchant =>'智聚合',

 terminal_id => ‘869270048847410,

 region_name => ‘富力盈力,

 goods_name=>雪碧,

 aisle_number=>10

];

$result = get_http_content(' https://public.zjuhe.cn/api/ stock_inquiry, 'POST',$date);

5)返回结果

变量名

必填

类型

示例值


code

String(128)

专属编码(例:Zj20190924125636,平台方提供开发者访问的标识码

     region_name

String(128)

场地名称(例:富力盈力)


terminal_id

String(15)

设备ID(例:869270048847410


aisle_number

Int(10)

货道编号(例:10)


goods_id

Int(10)

商品id(例:1188)


goods_name

String(128)

品名称例:雪碧


replenishment_time

Int(10)

最近补货时间(例:1573013337)


replenishment_after_number

Int(10)

最近补货后得储货量(例:10)


maxstorage

Int(10)

最大储货量(例:12)


surplus

Int(10)

剩余储货量(例:8)


state

Int(2)

货道状态(0:正常, 1:废弃)


示例:

    {"code":200,"msg":"查询成功","data":[{"region_name":"富力盈力","terminal_id":"869270048847410","aisle_number":10,"goods_id":1520,"goods_name":"雪碧","replenishment_time":1584696507,"replenishment_after_number":4,"surplus":4,"state":0,"maxstorage":4,"code":"Zj20190924125636"},{"region_name":"富力盈力","terminal_id":"869270048847410","aisle_number":10,"goods_id":1520,"goods_name":"雪碧","replenishment_time":1584103350,"replenishment_after_number":4,"surplus":4,"state":0,"maxstorage":4,"code":"Zj20190924125636"}]}