Skip to main content
membership.cancelled
Updated over 2 months ago

This event will be triggered when a membership is cancelled.

Sample Message Content

{2 items
"data":{17 items
"__typename":string"SubscriptionContract"
"billingPolicy":{5 items
"__typename":string"SubscriptionBillingPolicy"
"anchors":[]0 items
"interval":string"MONTH"
"intervalCount":int1
"minCycles":int1
}
"createdAt":string"2024-03-23T11:42:20Z"
"customAttributes":[]0 items
"customer":{6 items
"__typename":string"Customer"
"displayName":string"Jaydeep Virani"
"email":string"jaydeep@appstle.com"
"firstName":string"Jaydeep"
"id":string"gid://shopify/Customer/5580204343339"
"lastName":string"Virani"
}
"customerPaymentMethod":{3 items
"__typename":string"CustomerPaymentMethod"
"id":string"gid://shopify/CustomerPaymentMethod/64cfbbdb189a7e122333cc2de8492a85"
"instrument":{11 items
"__typename":string"CustomerCreditCard"
"billingAddress":{8 items
"__typename":string"CustomerCreditCardBillingAddress"
"address1":string"3 Brewster Road"
"city":string"Newark"
"country":string"United States"
"countryCode":string"US"
"province":string"New Jersey"
"provinceCode":string"NJ"
"zip":string"07114"
}
"brand":string"visa"
"expiresSoon":boolfalse
"expiryMonth":int6
"expiryYear":int2030
"firstDigits":string"424242"
"lastDigits":string"4242"
"maskedNumber":string"•••• •••• •••• 4242"
"name":string"JD"
"revocable":boolfalse
}
}
"deliveryMethod":{3 items
"__typename":string"SubscriptionDeliveryMethodShipping"
"address":{11 items
"__typename":string"SubscriptionMailingAddress"
"address1":string"3 Brewster Road"
"city":string"Newark"
"country":string"United States"
"countryCode":string"US"
"firstName":string"Jaydeep"
"lastName":string"Virani"
"name":string"Jaydeep Virani"
"province":string"New Jersey"
"provinceCode":string"NJ"
"zip":string"07114"
}
"shippingOption":{4 items
"__typename":string"SubscriptionDeliveryMethodShippingOption"
"code":string"Economy"
"presentmentTitle":string"Economy"
"title":string"Economy"
}
}
"deliveryPolicy":{4 items
"__typename":string"SubscriptionDeliveryPolicy"
"anchors":[]0 items
"interval":string"MONTH"
"intervalCount":int1
}
"deliveryPrice":{3 items
"__typename":string"MoneyV2"
"amount":string"0.0"
"currencyCode":string"USD"
}
"discounts":{2 items
"__typename":string"SubscriptionManualDiscountConnection"
"edges":[]0 items
}
"id":string"gid://shopify/SubscriptionContract/8554840107"
"lastPaymentStatus":string"SUCCEEDED"
"lines":{2 items
"__typename":string"SubscriptionLineConnection"
"edges":[1 item
0:{2 items
"__typename":string"SubscriptionLineEdge"
"node":{16 items
"__typename":string"SubscriptionLine"
"currentPrice":{3 items
"__typename":string"MoneyV2"
"amount":string"270.0"
"currencyCode":string"USD"
}
"customAttributes":[]0 items
"discountAllocations":[]0 items
"id":string"gid://shopify/SubscriptionLine/e4399d8b-8e62-46d7-bf18-4016d3b57db9"
"lineDiscountedPrice":{3 items
"__typename":string"MoneyV2"
"amount":string"270.0"
"currencyCode":string"USD"
}
"pricingPolicy":{3 items
"__typename":string"SubscriptionPricingPolicy"
"basePrice":{3 items
"__typename":string"MoneyV2"
"amount":string"300.0"
"currencyCode":string"USD"
}
"cycleDiscounts":[2 items
0:{5 items
"__typename":string"SubscriptionCyclePriceAdjustment"
"adjustmentType":string"PERCENTAGE"
"adjustmentValue":{2 items
"__typename":string"SellingPlanPricingPolicyPercentageValue"
"percentage":int100
}
"afterCycle":int0
"computedPrice":{3 items
"__typename":string"MoneyV2"
"amount":string"0.0"
"currencyCode":string"USD"
}
}
1:{5 items
"__typename":string"SubscriptionCyclePriceAdjustment"
"adjustmentType":string"PERCENTAGE"
"adjustmentValue":{2 items
"__typename":string"SellingPlanPricingPolicyPercentageValue"
"percentage":int10
}
"afterCycle":int1
"computedPrice":{3 items
"__typename":string"MoneyV2"
"amount":string"270.0"
"currencyCode":string"USD"
}
}
]
}
"productId":string"gid://shopify/Product/6795438915627"
"quantity":int1
"sellingPlanId":string"gid://shopify/SellingPlan/881066027"
"sellingPlanName":string"Monthly"
"sku":string""
"taxable":booltrue
"title":string"19" Michelin Primacy MXM4"
"variantId":string"gid://shopify/ProductVariant/39927509483563"
"variantImage":{2 items
"__typename":string"Image"
"transformedSrc":string"https://cdn.shopify.com/s/files/1/0565/2863/3899/products/Michelin_Primacy_MXM4_1024x1024_84ce3948-0975-4f09-8c61-95922b2c07e1.jpg?v=1646988777"
}
}
}
]
}
"nextBillingDate":string"2024-04-30T11:30:01Z"
"originOrder":{4 items
"__typename":string"Order"
"fulfillmentOrders":{2 items
"__typename":string"FulfillmentOrderConnection"
"edges":[1 item
0:{2 items
"__typename":string"FulfillmentOrderEdge"
"node":{4 items
"__typename":string"FulfillmentOrder"
"fulfillAt":string"2024-03-23T11:30:00Z"
"id":string"gid://shopify/FulfillmentOrder/6236644671531"
"status":string"CLOSED"
}
}
]
}
"id":string"gid://shopify/Order/5188801953835"
"name":string"#1206"
}
"status":string"CANCELLED"
"updatedAt":string"2024-04-04T08:38:38Z"
}
"type":string"membership.cancelled"
}
Did this answer your question?