主题更新
事件分组 | 事件标识 |
---|---|
themes | themes/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
请求体
- create_at string主题创建时间(ISO 8601)Example:
2022-07-19T13:12:26+0800
- id string主题idExample:
619f3dd6f7742b5a41db32b1
- name string主题名称Example:
Arise
- original_theme_id string官方主题模板id,若主题不是来源于官方主题,则返回nullExample:
612f228e9286d074924cf9ad
- role string主题状态。有效枚举值包含: ● published:主题已发布,客户可以查看 ● unpublished:主题待发布,客户不可查看 ● development:开发状态主题,用于开发Example:
published
- store_id string店铺idExample:
11234567891
- theme_type_version string主题版本标识Example:
2.1
- update_at string主题最近更新时间(ISO 8601)Example:
2022-07-19T13:12:26+0800
响应
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK
关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述。
这篇文章对你有帮助吗?