Gift card update
| Event Group | Event Identification |
|---|---|
| app_memberSystem_giftCard | app_memberSystem_giftCard/challenged |
When the client changes the current gift card , inform the monitor to make a gift card information update for the customer .
Request Headers
- X-Shopline-Topic string requiredThe unique identifier for the event.Example:
orders/edited - X-Shopline-Hmac-Sha256 string requiredThe signature of the request. Upon receiving the request, you must verify the signature to confirm the authenticity and integrity of the data.Example:
XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM= - X-Shopline-Shop-Domain string requiredThe store domain.Example:
example.myshopline.com - X-Shopline-Shop-Id string requiredThe store ID.Example:
1610418123456 - X-Shopline-Merchant-Id string requiredThe merchant ID.Example:
2000001234 - X-Shopline-API-Version string requiredThe API version.Example:
v20250601 - X-Shopline-Webhook-Id string requiredThe ID of this Webhook event.Example:
b54557e48a5fbf7d70bcd043
Request Body
- buyer_id stringCustomer idExample:
2404721679 - current_balance longThe balance of gift card after the change. Accurate to two decimal places, for example, $10.00 will return 1000.Example:
1000 - gift_card_code stringGift card codeExample:
240acd - gift_card_expiry_date longGift card expiration timeExample:
1721829526566 - gift_card_original_value longThe original value of gift cardExample:
10000 - scene_type stringGift card update scenario type. SELF_PURCHASE: Purchase for the customers themselves. OTHERS_SEND: Gift from others PURCHASE_PAYMENT: Customers use gift cards to pay for shopping. RETURN_INCREASE: When the merchant refunds an order, the amount used is added back to the gift card. CARD_DIABLED: The gift card is disabled.Example:
SELF_PURCHASE - store_id stringstore IDExample:
1718263946864 - update_type stringGift card update type. DECREASE: Gift card decrease INCREASE: Gift card increaseExample:
DECREASE - update_value longThe absolute value of the gift card amount for this update. Accurate to two decimal places, for example, $10.00 will return 1000.Example:
1000 - updated_at longUpdate timeExample:
1721829526566
Status Codes
After receiving a webhook notification from SHOPLINE, you must respond with the following format:
HTTP/1.1 200 OKFor more information about how to subscribe to webhooks and webhook response rules, refer to Webhook overview.
Was this article helpful to you?