店铺套餐状态变更
事件分组 | 事件标识 |
---|---|
subscription | subscription/challenged |
店铺下的套餐状态变更通知
请求头
- 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
请求体
- before_status string变更前的套餐状态Example:
active
- business_parameters map业务参数Example:
[object Object]
- create_time long套餐创建时间Example:
1691130777203
- end_time long套餐结束时间,时间戳(毫秒)
- merchant_id long商家IDExample:
2011061373
- start_time long套餐开始时间,时间戳(毫秒)
- status string套餐状态Example:
active
- store_id long店铺IDExample:
1690967538993
- sub_type string套餐类型Example:
preorder
- subscription_id string套餐IDExample:
SUB6053264297034524673
响应
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK
关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述。
这篇文章对你有帮助吗?