Webhook - Subscription Cancellation Event
You may use webhook integrations to be notified in real-time of certain events that happen in your Zylvie store.
You specify your webhook URLs under Workflows > Add Workflow.
The "subscription cancellation" event is when a cancels their subscription to a subscription product.
Example event payload
{
"event": "cancel",
"data": {
"subscription_id": "sub_1OoXxPF18w81dttLN6XyvuBl",
"created_at": "2025-02-27T21:12:59Z",
"cancel_at": "2025-02-27T03:28:06Z",
"canceled_at": "2025-02-24T06:32:53Z",
"trial_end": "2025-03-22T21:12:59Z",
"trial_start": "2025-02-27T21:12:59Z",
"currency": "usd",
"amount": 99.99,
"interval": "month",
"interval_count": 1,
"stripe_price_id": "price_1OkfZsF18w81dttL2OgdOtEj",
"status": "active",
"product": {
"id": "R54wJ68y",
"title": "Life Coaching (Basic Tier)",
"pricing_model": "subscription",
"is_variant": false,
"tags": [
"tag1",
"tag2",
"tag3"
]
},
"buyer": {
"name": "Stavros Flatley",
"email": "stavros@greek.com",
"permission_to_send_emails": true,
"phone": "+353850163326",
"line1": "349 Navan Road",
"line2": "Ashtown",
"postal_code": "D07 R2C3",
"city": "Dublin 7",
"state": "County Dublin",
"country": "IE",
"payment_method_type": "card",
"card_brand": "visa",
"card_last4": "0005"
},
"coupon": {
"code": "20OFF",
"type": "percentage",
"amount": 20.0
},
"subscription": {
"subscription_id": "sub_1OrpLHF18w81dttLspLSOjcE",
"created_at": "2025-03-23T03:12:35Z",
"currency": "usd",
"amount": 24.95,
"interval": "month",
"interval_count": 1,
"status": "active",
"product": {
"id": "R54wJ68y",
"title": "Life Coaching (Basic Tier)",
"pricing_model": "subscription",
"is_variant": false,
"tags": [
"tag1",
"tag2",
"tag3"
]
}
},
"custom_fields": [
{
"name": "Tax identification number",
"value": "TIN-5252445767"
}
],
"referrer": {
"email": "john.cena@zlappo.com"
}
}
}