membership/pending_cancellation

This webhook is sent when a customer requests to cancel their paid membership and the shop's cancellation policy is set to "end of period" (not immediate).

Event Type

membership/pending_cancellation

Webhook Payload

{  
  "id": 7343536570439,  
  "email": "[email protected]",  
  "first_name": "John",  
  "last_name": "Doe",  
  "dob": "06-30",  
  "dob_last_updated_at": "2024-01-15T10:30:00Z",  
  "accepts_marketing": false,  
  "orders_count": 0,  
  "verified_email": false,  
  "total_spent": 0,  
  "shopify_tags": [],  
  "loyalty_status": "member",  
  "loyalty_status_last_changed_at": "2024-01-15T10:30:00Z",  
  "points_tally": 56348,  
  "credits_tally": "0.0",  
  "referral_url": "https://shop.com/ref/ABC123",  
  "referral_code": "ABC123",  
  "vip_tier": {  
    "id": 1,  
    "name": "Gold",  
    "threshold": 10000,  
    "perks": [],  
    "created_at": "2024-01-01T00:00:00.000Z",  
    "updated_at": "2024-01-01T00:00:00.000Z"  
  },  
  "points_expire_at": "December 31, 2024",  
  "remote_updated_at": "2024-01-15T10:30:00Z",  
  "event_type": "membership/pending_cancellation",  
  "event_attributes": {  
    "customer_id": 7343536570439,  
    "pending_cancellation_at": "2024-01-15T10:30:00Z"  
  }  
}

 

Payload Fields

FieldTypeDescription
idIntegerCustomer ID (Shopify remote ID)
emailStringCustomer email address
first_nameStringCustomer's first name
last_nameStringCustomer's last name
dobDate or nullCustomer's date of birth, if provided
dob_last_updated_atDateTime or nullTimestamp of when the date of birth was last updated
accepts_marketingBooleanShopify email subscriber status (true if opted in)
orders_countIntegerTotal number of orders placed
verified_emailBooleanWhether the customer's email address is verified
total_spentFloatTotal amount the customer has spent
shopify_tagsArray of stringsList of Shopify tags associated with the customer
loyalty_statusStringCurrent loyalty program status (e.g. member, guest)
loyalty_status_last_changed_atDateTime or nullTimestamp of the last loyalty status change
points_tallyIntegerCurrent points balance
credits_tallyFloatCurrent credits balance
referral_urlStringCustomer's unique referral URL
referral_codeStringCustomer's unique referral code
vip_tierObject or nullCustomer's current VIP tier, if applicable
vip_tier.idIntegerVIP tier ID
vip_tier.nameStringVIP tier name
vip_tier.thresholdIntegerPoints threshold for the tier
vip_tier.perksArrayList of perks associated with the tier
vip_tier.created_atDateTimeTier creation timestamp
vip_tier.updated_atDateTimeTier last updated timestamp
points_expire_atString or nullDate when the customer's points expire
remote_updated_atDateTimeTimestamp of the last update from Shopify
event_typeStringAlways membership/pending_cancellation for this webhook
event_attributesObjectEvent-specific data for the pending cancellation
event_attributes.customer_idIntegerCustomer ID associated with the cancellation request
event_attributes.pending_cancellation_atDateTimeTimestamp when the pending cancellation request was queued