查询供应链物品接口
POST
/open/v1/supplyChain/warehouse/findSku(下行接口)第三方合作方调用此接口,查询供应链物品
请求参数
Body 参数application/json
brandId
integer
必需
commercialId
integer
必需
shopId
integer
必需
客如云门店ID,(如果是品牌,请传-1),默认-1
start
integer
偏移量
limit
integer
单页条数
typeName
string
商品类别
wmType
integer
可选
库存类型: 1:预制商品, 2:现制品, 3:外购商品, 4:原料, 5:半成品,不传获取全部, 不传获取全部
skuCode
string
商品编码
skuName
string
商品名称
isDisable
integer
可选
商品状态:0启用;1停用
isDelete
integer
可选
商品状态:0正常;1删除
示例
{
"brandId": 5200,
"commercialId": -1,
"shopId": -1,
"start": 0,
"limit": 1
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
返回编码,详见错误码
message
string
返回信息
messageUuid
string
消息uuid
result
object
可选
返回响应数据,详见SupplyChainPageResponse
data
array [object {19}]
物品列表
num
integer
必需
total
integer
总条数
private
integer
本次请求返回条数
示例
{
"code": 0,
"message": "成功[OK]",
"messageUuid": "f3947f2883e74b81bea5e45ace25456d",
"result": {
"data": [
{
"id": 364099009814576100,
"shopId": 810094162,
"shopName": "体验区测试品牌01store品牌1门店1",
"typeCode": "MST190",
"typeName": "饮用水(同步)",
"skuCode": "SKU1660",
"skuName": "测试AA",
"wmType": 0,
"barcode": "",
"properties": [],
"balancePrice": 10,
"purchasePrice": 10,
"skuUnits": [
{
"id": 364099009885879300,
"unitName": "听",
"skuConvert": 1,
"unitSmall": 1,
"unitPurchase": 1,
"unitStander": 1
}
],
"skuLots": [
{
"id": 364099198727438340,
"warehouseId": 37844913051684860,
"warehouseCode": "WH001",
"storageId": -1,
"storageCode": "默认存储区",
"binId": -1,
"binCode": "默认库位",
"lotId": -1,
"qty": 99,
"price": 10,
"amount": 990,
"creatorId": 37931932893321220,
"creatorName": "123",
"createTime": "2020-06-01 17:20:13.0",
"updaterId": 37931932893321220,
"updaterName": "123",
"updateTime": "2020-08-28 14:41:06.0"
}
],
"isDisable": 0,
"isDelete": 0,
"createTime": 1591003168000,
"updateTime": 1600774000000,
"guaranteePeriod": 0
}
],
"num": 1,
"total": 658
}
}
修改于 3 年前