库存管理
库存预留操作
预留或释放库存。
生产环境
https://ssl.glitzcloud.com/agent/v1/skus/inventory/block测试环境
http://gztest.glitzcloud.com/agent/v1/skus/inventory/block说明
1、功能名称:库存预留操作
2、功能描述:库存预留操作
请参阅鉴权签名说明。
请求参数
| 名称 | 类型 | 必填 | 示例值 | 描述 |
|---|---|---|---|---|
| store_name | String | 是 | The Warehouse USA | 仓库名称 |
| product_sn | String | 是 | 83780007 | 仓库名称 |
| type | String | 是 | 1 | 类型:1.增加block 2.减少block |
| qty | Integer | 是 | 1 | 数量 |
| expireded_time | String | 是 | 2019-06-26 | 过期时间 |
示例
请求示例
{
"format": "json",
"apikey": "85082f5f62a811e684f500163e06045f",
"randoms": 1234,
"sign": "656d6fbe6b7dec6c2e77ffe27f04bd6d",
"store_name": "The Warehouse USA",
"type": 1,
"qty": 1,
"product_sn": "83780007",
"expireded_time": "2019-06-29"
}返回示例
{"status":200,"reqMsg":"ok","result":['product_sn'=>"",'available_num'=>0]}示例 3
{"status":"2590","reqMsg":"Time field.","result":['product_sn'=>"",'available_num'=>0]}