库存水平更新
事件分组 | 事件标识 |
---|---|
inventory_levels | inventory_levels/update |
库存水平更新事件,即库存数量发生变更
请求头
- X-Shopline-Topic string required事件操作标识Example:
orders/edited
- X-Shopline-Hmac-Sha256 string required签名Example:
XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM=
- X-Shopline-Shop-Domain string required店铺域名Example:
shophub.myshopline.com
- X-Shopline-Shop-Id string required店铺idExample:
1610418123456
- X-Shopline-Merchant-Id string required商户IDExample:
2000001234
- X-Shopline-API-Version string required版本号Example:
v20210901
- X-Shopline-Webhook-Id string required消息IDExample:
b54557e48a5fbf7d70bcd043
请求体
- available integer可用库存值Example:
10
- committed integer已经分配给订单,尚未发货的数量Example:
10
- inventory_item_id string库存对象IDExample:
5703943240925324252
- location_id string地点IDExample:
5421704248135526901
- onhand integer地点真实拥有的数量Example:
10
- unavailable integer已经预留,不可用于销售的数量Example:
10
- updated_at string更新时间Example:
2022-12-06T15:13:50+08:00
- variant_id string变体IDExample:
18057039432358082693350282
响应
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK
关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述。
这篇文章对你有帮助吗?