描述
从各仓库获取相应商品库存数据
路径
HTTP Verb | URL |
|---|---|
| POST | /api/supplier-service/v1/b2b/inventory |
请求头样例
POST /api/supplier-service/v1/b2b/inventory HTTP/1.1 Host: http://cfs-qa.etowertech.com/ Content-Type: application/json Accept: application/json Authorization:WallTech etotest8xkIIphLnbkjRACNj4P:pc9H97D-_b2_TSCVvNj81A X-WallTech-Date:Tue, 02 Aug 2022 06:43:37 GMT
字段
| 字段名 | 数据类型 | 最大长度 | 必填性 | 描述 |
|---|---|---|---|---|
skuList | ||||
请求样例
{
"skuList": [
"Red wine box"
]
}
返回样例
字段名 | 数据类型 | 最大长度 | 必填性 | 描述 |
|---|---|---|---|---|
skuList | ||||
shipperName | 发货人名称 | |||
sku | 商品编码 | |||
skuNameEn | 商品英文名 | |||
skuNameLocal | 商品中文名 | |||
warehouseInventoryDTOList | 仓库库存信息 | |||
availableInventory | 可用库存 | |||
incomingInventory | 待入库库存 | |||
outgoingInventory | 待出库库存 | |||
overseasWarehouseCode | 仓库代码 | |||
overseasWarehouseName | 仓库名称 | |||
unsellableInventory | 不可用库存 | |||
code | 编码内容 | |||
errors | 报错 | |||
message | 返回信息 | |||
messageId | 信息编码 | |||
success | 成功响应 | |||
warnList | 废弃字段 |
{
"code": "0",
"data": [
{
"shipperName": "xz",
"sku": "Red wine box",
"skuNameEn": "Red wine box",
"skuNameLocal": "红酒盒子",
"warehouseInventoryDTOList": [
{
"availableInventory": 10779,
"incomingInventory": 7470,
"outgoingInventory": 321,
"overseasWarehouseCode": "CATESTWH",
"overseasWarehouseName": "易仓测试(专用)",
"unsellableInventory": ""
}
]
}
],
"errors": "",
"message": "",
"messageId": "",
"success": true,
"warnList": ""
}
{
"code": "0",
"data": [],
"errors": "",
"message": "",
"messageId": "",
"success": true,
"warnList": ""
}