TTWUSA APIV2

库存管理

库存预留操作

预留或释放库存。

POST
生产环境https://ssl.glitzcloud.com/agent/v1/skus/inventory/block
测试环境http://gztest.glitzcloud.com/agent/v1/skus/inventory/block

说明

1、功能名称:库存预留操作

2、功能描述:库存预留操作

鉴权说明

请参阅鉴权签名说明。

请求参数

名称类型必填示例值描述
store_nameStringThe Warehouse USA仓库名称
product_snString83780007仓库名称
typeString1类型:1.增加block 2.减少block
qtyInteger1数量
expireded_timeString2019-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]}