文档
测试

库存查询

POST
https://thirdparty-stage.yanglaoban.com/thirdparty/common/mall/stock/querystock

请求参数

参数名
类型
描述
必填
storetype
int
类型 门店/仓库/供应商(1,2,3)
必填
storeid
String
门店/仓库/供应商ID
必填
page
int
页码 示例 1
可选
size
int
每页条数 示例 10
可选

响应参数

参数名
类型
描述
必填
code
int
状态码 示例:0
必填
message
string
信息 示例:
必填
data
object
返回数据
必填
rows
array
数据列表
必填
tenantid
string
商户ID 示例:0210000602
必填
storetype
string
门店/仓库/供应商(1,2,3) 示例:3
必填
storeid
string
门店/仓库/供应商ID 示例:80710
必填
skucode
string
商品编码 示例:7510383010000
必填
salestock
int
实际库存 示例:10
必填
reservestock
int
预占库存 示例:0
必填
supplyprice
bigdecimal
供货价
必填
total
string
总条数 示例:13
必填
page
int
页数 示例:1
必填
size
int
每页条数 示例:3
必填
traceid
string
链路ID 示例:45f6f0ffe1b44ad8
必填
now
date
时间 示例:1643016537763
必填

说明 / 示例

==可用库存 = 实际库存 - 预占库存== 请求参数:{"storetype":"3","storeid":"80710","page":1,"size":3} 响应参数:{ { "rows": [ { "tenantid": "0210000602", "storetype": "3", "storeid": "80710", "skucode": "7510383010000", "salestock": 10, "reservestock": 0 }, { "tenantid": "0210000602", "storetype": "3", "storeid": "80710", "skucode": "7410383010000", "salestock": 0, "reservestock": 0 }, { "tenantid": "0210000602", "storetype": "3", "storeid": "80710", "skucode": "7900364080000", "salestock": 0, "reservestock": 0 } ], "total": "13", "page": 1, "size": 3 }