文档
测试

根据商品编码查询库存

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

请求参数

参数名
类型
描述
必填
skucode
String
商品编码
必填

响应参数

参数名
类型
描述
必填
code
int
状态码 示例:0
必填
message
string
信息 示例:
必填
data
Array
返回数据
必填
tenantid
string
商户ID 示例:0210000602
必填
storetype
string
门店/仓库/供应商(1,2,3) 示例:3 示例:3
必填
storeid
string
门店/仓库/供应商ID 示例:3 示例:80710
必填
skucode
string
商品编码 示例:7410383010000
必填
salestock
int
实际库存 示例:0
必填
reservestock
int
预占库存 示例:0
必填
incometaxrate
bigdecimal
税率
必填
freighttemplate
Long
运费模板ID
必填
taxtype
Integer
税费类型 (1, "完税"), (2, "保税"), (3, "直邮");
必填
supplyprice
bigdecimal
供货价
必填
traceid
string
链路ID 示例:45f6f0ffe1b44ad8
必填
now
int
时间 示例:1643016537763
必填

说明 / 示例

==可用库存 = 实际库存 - 预占库存== 请求参数:{"storetype":"3","storeid":"80710", "skucode":"7410383010000"} 响应参数:{ { "code":0, "message":"", "data": [ { "tenantid": "0210000602", "storetype": "2", "storeid": "11968", "skucode": "3348901453202", "salestock": 431, "reservestock": 16 }, { "tenantid": "0210000602", "storetype": "2", "storeid": "13954", "skucode": "3348901453202", "salestock": 2, "reservestock": 0 }, { "tenantid": "0210000602", "storetype": "2", "storeid": "15172", "skucode": "3348901453202", "salestock": 1, "reservestock": 0 }, { "tenantid": "0210000602", "storetype": "2", "storeid": "16710", "skucode": "3348901453202", "salestock": 89995, "reservestock": 4 }, { "tenantid": "0210000602", "storetype": "2", "storeid": "18426", "skucode": "3348901453202", "salestock": 10, "reservestock": 0 } ] "traceid":"45f6f0ffe1b44ad8", "now":1643016537763 }