帮助中心

3101-外部自提

2022-01-20

接口编号 3101

接口说明

外部库存,自提接口

不可用于秒杀活动。如果对方接口无锁库存功能,会出现超卖情况

请求说明

  • HTTP请求方式:POST

  • 请求数据格式:application/x-www-form-urlencoded

  • 请求路径:第三方提供

请求参数

字段类型为空描述
ShopCodesList<string>
门店
SkusList<string>商品条码


返回参数

字段类型为空描述
ShopCodestring门店
Skustring商品条码
Quantityint库存数
Freezeint锁定数量(可0)
Surplusint剩余可用库存数


业务返回结果(json对象)

[{
"ShopCode":"string",
"Sku":"string",
"Quantity":0,
"Freeze":0,
"Surplus":1
},
{
"ShopCode":"string",
"Sku":"string",
"Quantity":0,
"Freeze":0,
"Surplus":2
}]

系统级返回结果示例(json)

{
 "Status": true,
 "StatusCode": 200,
 "Msg": "成功",
 "Timestamp": "20150622093101",
 "Sign": "6ECC9BF07C69E80F6D8552FF7B2E7A8FCA2CC80E",
 "Data": 见业务返回结果示例,
}



1967