礼品卡更新
事件分组 | 事件标识 |
---|---|
app_memberSystem_giftCard | app_memberSystem_giftCard/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店铺idExample:
1610418123456
- X-Shopline-Merchant-Id string required商户IDExample:
2000001234
- X-Shopline-API-Version string required版本号Example:
v20210901
- X-Shopline-Webhook-Id string required消息IDExample:
b54557e48a5fbf7d70bcd043
请求体
- buyer_id string客户idExample:
2404721679
- current_balance long变更后礼品卡余额。 精确到小数点后两位,比如$10.00会返回1000。Example:
1000
- gift_card_code string礼品卡卡号Example:
240acd
- gift_card_expiry_date long礼品卡到期时间,毫秒级时间戳Example:
1721829526566
- gift_card_original_value long礼品卡面额, 精确到小数点后两位,比如$10.00会返回1000。Example:
10000
- scene_type string场景类型:SELF_PURCHASE:为自己购买,OTHERS_SEND:他人赠送, PURCHASE_PAYMENT:结算时使用礼品卡, RETURN_INCREASE:退款时原路退回,CARD_DIABLED:礼品卡被禁用Example:
SELF_PURCHASE
- store_id string店铺idExample:
1718263946864
- update_type string礼品卡更新类型。 DECREASE: 礼品卡减少 INCREASE: 礼品卡增加Example:
DECREASE
- update_value long本次更新的礼品卡金额的绝对值。 精确到小数点后两位,比如$10.00会返回1000。Example:
1000
- updated_at long更新时间Example:
1721829526566
响应
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK
关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述。
这篇文章对你有帮助吗?