事件分组事件标识
appsapps/installed_uninstalled
在店铺安装/卸载应用时,给应用的开发者发送对应的事件通知
请求头
  • 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
请求体
  • appkey string
    app唯一标识
  • country_code string
    店铺所在的国家/地区代码
    Example: cn
  • created_at string
    本次订阅消息生成时间,yyyy-MM-dd'T'HH:mm
    .SSSXXX 格式的店铺时区时间
    Example: 2022-06-16T06:20:25.388+00:00
  • email string
    商店 ToB 端的联系人邮箱(非客服邮箱)
    Example: 12345678@gmail.com
  • handle string
    店铺hadle:域名中「.mysholine.com」前面的字符串
    Example: shopline
  • has_extension boolean
    店铺是否有使用扩展代码块
    Example: true
  • merchant_id string
    商户id
    Example: 2000001234
  • name string
    店铺的名称
    Example: 店铺名称
  • operate string
    标明当前的操作是安装还是卸载;取值包括:「INSTALL」(安装)和「UNINSTALL」(卸载)
    Example: UNINSTALL
  • store_id string
    店铺id
    Example: 1610418123456
  • timestamp long
    本次订阅消息生成时间的时间戳
  • timezone string
    店铺所在的时区
响应
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK
关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述
这篇文章对你有帮助吗?

Error loading component.

Error loading component.