库存预留操作
1、功能名称:库存预留操作
2、功能描述:库存预留操作
3、请求地址:https://ssl.glitzcloud.com/agent/v1/skus/inventory/block
测试地址:http://gztest.glitzcloud.com/agent/v1/skus/inventory/block
4、请求方式:POST
5、请求参数
名称 | 类型 | 必填 | 示例值 | 描述 |
---|---|---|---|---|
store_name | String | 是 | The Warehouse USA | 仓库名称 |
product_sn | String | 是 | 83780007 | 仓库名称 |
type | String | 是 | 1 | 类型:1.增加block 2.减少block |
qty | Int | 是 | 1 | 数量 |
expireded_time | string | 是 | 2019-06-26 | 过期时间 |
6、请求示例
array( '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', );
7、返回格式:JSON
8、返回示例:
正确时的返回JSON数据包如下:
{"status":200,"reqMsg":"ok","result":['product_sn'=>"",'available_num'=>0]}
错误时的返回JSON数据包如下:
{"status":"2590","reqMsg":"Time field.","result":['product_sn'=>"",'available_num'=>0]}
9、返回参数说明:
参数 | 类型 | 示例值 | 描述 |
---|