事件分组事件标识
order_attributionorder_attribution/create
订单消息在转化信息计算完成后发出。请注意,在少数情况下,由于数据量较大或网络延迟等原因,SHOPLINE 对订单转化归因信息可能进行重新计算,重新计算完成后,订单会再次进行推送。
请求头
  • 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
请求体
  • actionType string
    事件类型,目前仅支持:create
    Example: create
  • firstInteractRefererUrl string
    用户在下单成功前30天内的首个互动来源url。用户从不同的站外平台,或者通过点击不同的广告进入您的商店,都将产生一个互动。
    Example: www.facebook.com
  • firstInteractSource string
    用户在下单成功前30天内的首个互动来源渠道名称。
    Example: Direct
  • firstInteractTime string
    用户在下单成功前30天内的产生首个互动的时间(以东八区记录的时间)。
    Example: 2023-05-23T20:53:25.199
  • firstInteractUrl string
    用户在下单成功前30天内的产生首个互动的落地页url。
    Example: www.facebook.com
  • isOffline string
    是否为离线数据
    Example: false
  • key string
    消息分发key
    Example: 21059478554517401789150705
  • lastInteractRefererUrl string
    用户在下单成功前30天内的最后一个互动来源url。用户从不同的站外平台,或者通过点击不同的广告进入您的商店,都将产生一个互动。
    Example: www.facebook.com
  • lastInteractSource string
    用户在下单成功前30天内的最后一个互动来源渠道名称。
    Example: Direct
  • lastInteractTime string
    用户在下单成功前30天内的产生最后一个互动的时间(以东八区记录的时间)。
    Example: 2023-05-23T20:53:25.199
  • lastInteractUrl string
    用户在下单成功前30天内的产生最后一个互动的落地页url。
    Example: www.facebook.com
  • orderSeq string
    订单id
    Example: 21059478554517401789150705
  • storeId string
    店铺id
    Example: 1637826610248
响应
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK
关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述
这篇文章对你有帮助吗?