事件分组事件标识
app_memberSystem_shoppingCreditapp_memberSystem_shoppingCredit/challenged
当客户当前购物金变更时,告知监听方进行对应客户的购物金信息更新处理。
请求头
  • 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
请求体
  • buyer_id string
    客户id
    Example: 2404721679
  • current_balance long
    变更后购物金余额。 精确到小数点后两位,比如$10.00会返回1000。
    Example: 1000
  • store_credits_code string
    购物金卡号
    Example: 2404721679455
  • store_credits_expiry_date long
    购物金到期时间
    Example: 1721829526566
  • store_credits_update_reason string
    购物金变更原因类型。 refund: 退款 transfer: 转账 reward: 奖励 compensation: 补偿 other: 其他
    Example: refund
  • store_id string
    店铺id
    Example: 1718263946864
  • update_type string
    购物金更新类型。 DECREASE: 购物金减少 INCREASE: 购物金增加
    Example: INCREASE
  • update_value long
    本次更新的购物金金额的绝对值。 精确到小数点后两位,比如$10.00会返回1000。
    Example: 1000
  • updated_at long
    更新时间
    Example: 1721829526566
响应
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK
关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述
这篇文章对你有帮助吗?