事件分组事件标识
articlearticle/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
请求体
  • author string
    博客文章作者名称
    Example: 3300497415
  • blog_collection_id string
    博客集合ID
    Example: 6183793d3d13eb7215351ed7
  • content_html string
    博客文章内容html
    Example: content
  • created_at string
    博客文章创建时间
    Example: 2021-11-04 09:26:08
  • digest string
    博客文章摘要
    Example: 博客的摘要
  • handle string
    博客文章handle
    Example: /blog
  • id string
    博客文章ID
    Example: 6184e55180b0982aeb720122
  • imageobject
    图片信息
  • alt string
    图片ALT
  • src string
    图片地址
  • published boolean
    博客文章发布状态
    Example: true
  • published_at string
    博客文章发布时间
    Example: 2021-11-04 09:26:08
  • tags string
    博客文章tags
    Example: 1,2,3
  • template_name string
    博客文章模板名称地址
    Example: 一个模板
  • title string
    博客文章标题
    Example: 一个标题
  • updated_at string
    博客文章更新时间
    Example: 2021-11-04 09:26:08
  • user_id string
    博客文章作者ID
    Example: 3300497415
响应
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK
关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述
这篇文章对你有帮助吗?