事件分组事件标识
app_memberSystem_paidMembershipapp_memberSystem_paidMembership/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
  • level_code string
    该客户变更后所在的付费会员编码
    Example: MLC6568224957444662294
  • level_code_before string
    该客户变更前所在的付费会员编码。如果为非会员,返回null
    Example: MLC6568224957444662292
  • level_expiry_time long
    该客户变更后所在的付费会员会员到期时间
    Example: 1769270399000
  • level_name string
    该客户变更后所在的付费会员名称。最多25个字符
    Example: LEVEL_2
  • level_name_before string
    该客户变更前所在的付费会员名称。最多25个字符。如果为非会员,返回null
    Example: LEVEL_1
  • level_updated_time long
    该客户变更后所在的付费会员会员开始生效时间
    Example: 1721750465000
  • remark string
    备注
    Example: remark
  • store_id string
    店铺id
    Example: 1718263946864
  • updated_source string
    变更来源
    MANUALLY_UPDATE: 商家手动调整
    CANCELLED: 会员取消
    EXPIRY: 会员到期
    PAID: 会员付费
    SWITCH: 会员切换
    Example: SWITCH
  • updated_type string
    变更类型
    INITIATION: 成为您店铺的客户
    DOWNGRADE: 会员降级
    UPGRADE: 会员升级
    UPDATE: 等级更新
    Example: UPDATE
响应
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK
关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述
这篇文章对你有帮助吗?