全部库存查询
1、功能名称:全部库存查询
2、功能描述:全部库存查询
3、请求地址:https://ssl.glitzcloud.com/agent/v1/skus/inventory/queryAll
测试地址:http://gztest.glitzcloud.com/agent/v1/skus/inventory/queryAll
4、请求方式:POST
5、请求参数
名称 | 类型 | 必填 | 示例值 | 描述 |
---|---|---|---|---|
store_name | String | 是 | The Warehouse USA | 仓库名称 |
page | integer | 否 | 2 | 页码,默认1 |
page_count | integer | 否 | 100 | 每页数量,默认100,最大1000 |
6、请求示例
array( 'format'=>'json', 'apikey'=>'85082f5f62a811e684f500163e06045f', 'sign'=>'656d6fbe6b7dec6c2e77ffe27f04bd6d', 'store_name' => 'The Warehouse USA', 'page' => 1, 'page_count' => 100, );
7、返回格式:JSON
8、返回示例:
正确时的返回JSON数据包如下:
{ "status": 200, "reqMsg": "ok", "result": [ { "id": 1, "product_sn": "6971255304219", "stock_num": 0, "freeze_num": 0, "disabled_num": 0, "block_num": 0, "inbound_diff_num": 0, "unputaway_num": 0, "available_num": 0 }, { "id": 2, "product_sn": "6971255302178", "stock_num": "0", "freeze_num": "0", "disabled_num": "0", "block_num": "0", "inbound_diff_num": "0", "unputaway_num": 0, "available_num": 0 } ] }
错误时的返回JSON数据包如下:
{ "status": 8011, "reqMsg": "The upper limit for a single query is 1000 SKU." }
9、返回参数说明:
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
product_sn | String | SKY7061 | 产品编号SKU |
stock_num | Integer | 100 | 总库存 |
freeze_num | Integer | 20 | 冻结库存 |
disabled_num | Integer | 30 | 问题库存 |
block_num | Integer | 1 | 预留库存 |
unputaway_num | Integer | 1 | 待上架库存 |
available_num | Integer | 1 | 可用库存 |