库存变化明细查询
1、功能名称:库存变化明细查询
2、功能描述:库存变化明细查询
3、请求地址:https://ssl.glitzcloud.com/agent/v1/skus/inventory/changeDetail
测试地址:http://gztest.glitzcloud.com/agent/v1/skus/inventory/changeDetail
4、请求方式:POST
5、请求参数
| 名称 | 类型 | 必填 | 示例值 | 描述 |
|---|---|---|---|---|
| store_name | String | 是 | The Warehouse USA | 仓库名称 |
| time_from | string | 是 | 1487606400 | 开始时间时间戳 |
| time_to | string | 否 | 1487616400 | 结束时间时间戳 |
| product_sn | string | 否 | 6926783201318 | 产品sku |
| type | string | 否 | 4 | 类型(1:入库;2:出库;3:退换货;4:换标;5:库存调整;6:工单拣货;) |
6、请求示例
{
"apikey": "d661bb3e8171163e06045f",
"store_name": "TWUSA-Dallas",
"secretkey": "d661bb7581163e06045f",
"sign": "ed077c20ef733049fb529e5f7a125605",
"time_from": "1762358400",
"time_to": "",
"product_sn": "6926783201318",
"type": 4
}
7、返回格式:JSON
8、返回示例:
正确时的返回JSON数据包如下:
{
"status": 200,
"reqMsg": "ok",
"result": [
{
"product_sn": "6926783201318",
"good_qty": "-63",
"bad_qty": "0",
"type": "4",
"source_sn": "13123123",
"add_time": "1762373636"
},
{
"product_sn": "6926783201318",
"good_qty": "-12",
"bad_qty": "0",
"type": "4",
"source_sn": "123123123",
"add_time": "1762376085"
}
]
}
错误时的返回JSON数据包如下:
{
"status": 2590,
"reqMsg": "Time field.",
"result": []
}
9、返回参数说明:
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| product_sn | String | SKY7061 | 产品编号SKU |
| good_qty | String | -10 | 合格产品库存变化 |
| bad_qty | String | 20 | 不合格产品库存变化 |
| type | Integer | 1 | 类型(1:入库;2:出库;3:退换货;4:换标;5:库存调整;6:工单拣货;) |
| source_sn | string | CS618826625 | 关联业务单号 |
| add_time | string | 1762376085 | 发生时间 |