Description
Get the product info (count / status ...) in each warehouse.
...
描述
从各仓库获取相应商品库存数据
路径
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 User-AgentAuthorization: Mozilla 5.0 Host: http://qa.etowertech.com/WallTech etotest8xkIIphLnbkjRACNj4P:pc9H97D-_b2_TSCVvNj81A X-WallTech-Date: ThuTue, 0602 Aug 20202022 06:3643:2437 GMT Authorization: WallTech testLvs2jdug2qIoRsJyuxs:VaWNgikNP0NGcoxVCeWYid50MYQ= |
...
Field
...
Data Type
...
Length
...
Mandatory
...
Description
...
skuList
...
字段
| 字段名 | 数据类型 | 最大长度 | 必填性 | 描述 |
|---|---|---|---|---|
skuList | array | O | SKU编码集合 | |
| warehouseCodeList | array | O | 仓库编码集合 | |
| pageNum | int | O | 页码,默认为0 | |
| pageSize | int | O | 页数,默认为100 |
返回字段
字段名 | 数据类型 | 最大长度 | 必填性 | 描述 |
|---|---|---|---|---|
skuList | ||||
shipperName | 发货人名称 | |||
sku | 商品编码 | |||
skuNameEn | 商品英文名 | |||
skuNameLocal | 商品中文名 | |||
warehouseInventoryDTOList | 仓库库存信息 | |||
availableInventory | 可用库存 | |||
incomingInventory | 待入库库存 | |||
outgoingInventory | 待出库库存 | |||
overseasWarehouseCode | 仓库代码 | |||
overseasWarehouseName | 仓库名称 | |||
unsellableInventory | 不可用库存 | |||
code | 编码内容 | |||
errors | 报错 | |||
message | 返回信息 | |||
messageId | 信息编码 | |||
success | 成功响应 | |||
warnList | 废弃字段 |
Request Sample
...
| endRow | int | 结束索引位置 | ||
| hasNextPage | bool | 是否有下一页 | ||
| hasPreviousPage | bool | 是否有上一页 | ||
| isFirstPage | bool | 是否是第一页 | ||
| isLastPage | bool | 是否是最后一页 | ||
| nextPage | int | 下一页页码 | ||
| pageNum | int | 页码 | ||
| pageSize | int | 每页长度 | ||
| pages | int | 总页数 | ||
| size | int | |||
| startRow | int | 开始索引位置 | ||
| total | int | 总条数 |
样例:1
| 代码块 |
|---|
{ "pageNum": 0, "pageSize": 100, "skuList": [ "C721005" ], "warehouseCodeList": [ "AWE001", "202206160010" ] } |
...
CATESTWH12"
]
} |
查询结果为空:
| 代码块 |
|---|
{
"code": "0",
"data": {
"endRow": 0,
"hasNextPage": false,
"hasPreviousPage": true,
"isFirstPage": false,
"isLastPage": true,
"list": [],
"navigateFirstPage": 0,
"navigateLastPage": 0,
"navigatePages": 8,
"navigatepageNums": [],
"nextPage": 0,
"pageNum": 2,
"pageSize": 5,
"pages": 0,
"prePage": 0,
"size": 0,
"startRow": 0,
"total": "0"
},
"errors": "",
"message": "",
"messageId": "",
"success": true,
"warnList": ""
} |
样例2:
| 代码块 |
|---|
{
"pageNum": 0,
"pageSize": 100,
"skuList": [
],
"warehouseCodeList": [
]
} |
查询到数据:
| 代码块 |
|---|
{
"code": "0",
"data": {
"endRow": 10,
"hasNextPage": true,
"hasPreviousPage": true,
"isFirstPage": false,
"isLastPage": false,
"list": [
{
"shipperName": "xz小张12",
"sku": "202206160010C721005",
"skuNameEn": "C721005",
": "note bookskuNameLocal": "C721005",
"warehouseInventoryDTOList": [
{
"availableInventory": 990,
"incomingInventory": 1,
"outgoingInventory": 7,
"overseasWarehouseCode": "CATESTWH",
"overseasWarehouseName": "易仓测试(专用)",
"unsellableInventory": ""
}
]
},
{
"shipperName": "小张1",
"sku": "230911001",
"skuNameEn": "testen",
"skuNameLocal": "记事本testcn",
"warehouseInventoryDTOList": [
{
"availableInventory": 0222,
"incomingInventory": 6200,
"outgoingInventory": 0,
"overseasWarehouseCode": "mghcCATESTWH",
"overseasWarehouseName": "美国货仓易仓测试(专用)",
"unsellableInventory": ""
}
]
},
{
"shipperName": "小张1",
"sku": "230908003",
"skuNameEn": "testen",
"skuNameLocal": "testcn",
"warehouseInventoryDTOList": [
{
"availableInventory": 2610,
"incomingInventory": 5800,
"outgoingInventory": 50,
"overseasWarehouseCode": "elsckCATESTWH",
"overseasWarehouseName": "俄罗斯仓库易仓测试(专用)",
"unsellableInventory": ""
}
]
},
{
"shipperName": "xz小张1",
"sku": "AWE0011694416554",
"skuNameEn": "bagtesten",
"skuNameLocal": "背包testcn",
"warehouseInventoryDTOList": [
{
"availableInventory": 7512,
"incomingInventory": 0,
"outgoingInventory": 200,
"overseasWarehouseCode": "USEACATESTWH",
"overseasWarehouseName": "谷仓易仓测试(专用)",
"unsellableInventory": 0""
}
]
},
{
"shipperName": "小张1",
"sku": "1694428131",
"skuNameEn": "testen",
]"skuNameLocal": "testcn",
"errors "warehouseInventoryDTOList": [
{
"availableInventory": 12,
"message": "", "incomingInventory": 0,
"outgoingInventory": 0,
"messageId "overseasWarehouseCode": "CATESTWH",
"successoverseasWarehouseName": true,"易仓测试(专用)",
"warnListunsellableInventory": ""
}
]
} |
| 代码块 |
{ } ], "navigateFirstPage": 1, "codenavigateLastPage": 8, "0" "navigatePages": 8, "datanavigatepageNums": [ 1, 2, 3, 4, 5, 6, 7, 8 ], "nextPage": 3, "pageNum": 2, "pageSize": 5, "pages": 27, "prePage": 1, "size": 5, "startRow": 6, "total": "135" }, "errors": "", "message": "", "messageId": "", "success": true, "warnList": "" } |
...