事件分组事件标识
pagepage/update
当自定义页面被更新时触发。
请求头
  • X-Shopline-Topic string required
    事件的唯一标识。
    例子: orders/edited
  • X-Shopline-Hmac-Sha256 string required
    该请求的签名。收到请求后,你需要对该签名进行 验签 以验证数据的真实性和完整性。
    例子: XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM=
  • X-Shopline-Shop-Domain string required
    店铺的域名。
    例子: example.myshopline.com
  • X-Shopline-Shop-Id string required
    店铺 ID。
    例子: 1610418123456
  • X-Shopline-Merchant-Id string required
    商家 ID。
    例子: 2000001234
  • X-Shopline-API-Version string required
    API 版本号。
    例子: v20250601
  • X-Shopline-Webhook-Id string required
    该 Webhook 事件的 ID。
    例子: b54557e48a5fbf7d70bcd043
请求体
  • author string
    自定义页面的创建者 ID 或名称。
    例子: Alvin
  • body_html string
    自定义页的正文内容,包含 HTML 标签。
    例子: <p>We love to hear from you.</p>
  • created_at string
    自定义页面的创建时间。格式:yyyy-MM-dd HH:mm:ss.SSS
    例子: 2023-09-11 16:49:35.120
  • handle string
    自定义页面的语义化标识符。
    例子: contact_us
  • id string
    自定义页面的唯一标识 ID。
    例子: 4570533223805409322
  • published_at string
    自定义页面的发布时间。格式:yyyy-MM-dd HH:mm:ss.SSS
    例子: 2023-09-11 16:49:35.120
  • published_status boolean
    自定义页面是否发布。
    • true:已发布
    • false:未发布
  • shop_id string
    店铺的唯一标识 ID。
    例子: 1607433620673
  • template_name string
    自定义页面使用的模版名称。
    例子: templates/page.contact.json
  • template_type string
    自定义页面使用的模版类型。模版类型包含:
    • 0:默认主题模板。
    • 1:公共模版,所有主题均可使用。
    • 2:通过应用定义的主题模版,仅对当前主题生效 。
  • title string
    自定义页面的标题。
    例子: Custom page
  • updated_at string
    自定义页面的更新时间。格式:yyyy-MM-dd HH:mm:ss.SSS
    例子: 2023-09-11 16:49:35.120
状态码
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK
关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述
这篇文章对你有帮助吗?