Paid membership updates
| Event Group | Event Identification |
|---|---|
| app_memberSystem_paidMembership | app_memberSystem_paidMembership/challenged |
When the current payment type changes , inform the monitor to process a paid member information update that corresponds to 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 - level_code stringThe code of current paid membership of the customer.Example:
MLC6568224957444662294 - level_code_before stringThe code of paid membership of the customer before update. If the customer was a non-member, the field will be null.Example:
MLC6568224957444662292 - level_expiry_time longThe expiry time of current paid membership of the customer.Example:
1769270399000 - level_name stringThe name of current paid membership of the customer. Up to 25 characters.Example:
LEVEL_2 - level_name_before stringThe name of paid membership of the customer before update. Up to 25 characters. If the customer was a non-member, the field will be null.Example:
LEVEL_1 - level_updated_time longThe start time of current paid membership of the customer.Example:
1721750465000 - remark stringRemarksExample:
remark - store_id stringstore IDExample:
1718263946864 - updated_source stringUpdate sourceMANUALLY_UPDATE: manual adjustment by the merchantCANCELLED: membership cancellationEXPIRY: membership expiryPAID: member paid to become a memberSWITCH: membership mechanism switchExample:
SWITCH - updated_type stringUpdate typeINITIATION: Become a customer of your storeDOWNGRADE: Member downgradeUPGRADE: Member upgradeUPDATE: Level updateExample:
UPDATE
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?