事件分组事件标识
themesthemes/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
    店铺id
    Example: 1610418123456
  • X-Shopline-Merchant-Id string required
    商户ID
    Example: 2000001234
  • X-Shopline-API-Version string required
    版本号
    Example: v20210901
  • X-Shopline-Webhook-Id string required
    消息ID
    Example: b54557e48a5fbf7d70bcd043
请求体
  • create_at string
    主题创建时间(ISO 8601)
    Example: 2022-07-19T13:12:26+0800
  • id string
    主题id
    Example: 619f3dd6f7742b5a41db32b1
  • name string
    主题名称
    Example: Arise
  • original_theme_id string
    官方主题模板id,若主题不是来源于官方主题,则返回null
    Example: 612f228e9286d074924cf9ad
  • role string
    主题状态。有效枚举值包含: ● published:主题已发布,客户可以查看 ● unpublished:主题待发布,客户不可查看 ● development:开发状态主题,用于开发
    Example: published
  • store_id string
    店铺id
    Example: 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 概述
这篇文章对你有帮助吗?