Event GroupEvent Identification
app_memberSystem_paidMembershipapp_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 required
    The unique identifier for the event.
    Example: orders/edited
  • X-Shopline-Hmac-Sha256 string required
    The 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 required
    The store domain.
    Example: example.myshopline.com
  • X-Shopline-Shop-Id string required
    The store ID.
    Example: 1610418123456
  • X-Shopline-Merchant-Id string required
    The merchant ID.
    Example: 2000001234
  • X-Shopline-API-Version string required
    The API version.
    Example: v20250601
  • X-Shopline-Webhook-Id string required
    The ID of this Webhook event.
    Example: b54557e48a5fbf7d70bcd043
Request Body
  • buyer_id string
    Customer id
    Example: 2404721679
  • level_code string
    The code of current paid membership of the customer.
    Example: MLC6568224957444662294
  • level_code_before string
    The 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 long
    The expiry time of current paid membership of the customer.
    Example: 1769270399000
  • level_name string
    The name of current paid membership of the customer. Up to 25 characters.
    Example: LEVEL_2
  • level_name_before string
    The 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 long
    The start time of current paid membership of the customer.
    Example: 1721750465000
  • remark string
    Remarks
    Example: remark
  • store_id string
    store ID
    Example: 1718263946864
  • updated_source string
    Update source
    MANUALLY_UPDATE: manual adjustment by the merchant
    CANCELLED: membership cancellation
    EXPIRY: membership expiry
    PAID: member paid to become a member
    SWITCH: membership mechanism switch
    Example: SWITCH
  • updated_type string
    Update type
    INITIATION: Become a customer of your store
    DOWNGRADE: Member downgrade
    UPGRADE: Member upgrade
    UPDATE: Level update
    Example: UPDATE
Status Codes
After receiving a webhook notification from SHOPLINE, you must respond with the following format:
HTTP/1.1 200 OK
For more information about how to subscribe to webhooks and webhook response rules, refer to Webhook overview.
Was this article helpful to you?