Overview
Thesubscription.cancelled webhook is triggered when a subscription is cancelled in your Metrifox account. This event is sent when a subscription is immediately cancelled (not scheduled for future cancellation).
When It’s Triggered
This event is sent immediately after a subscription is successfully cancelled, which can happen when:- A customer cancels their subscription immediately
- A subscription is cancelled through the API
- A subscription is cancelled manually in the dashboard
- A subscription is cancelled due to payment failure or other reasons
For subscriptions scheduled to cancel at the end of the billing period, see the
subscription.cancel_scheduled event instead.Payload Structure
Data Fields
Thedata.subscription object contains the subscription record with cancellation details:
id: Internal subscription IDsubscription_key: Unique subscription identifiercustomer_id: ID of the customer who owned the subscriptioncustomer_key: Customer keyplan_id: ID of the plan that was cancelledplan_name: Name of the cancelled planstatus: Subscription status (will be “cancelled”)billing_interval: Billing frequencycancelled_at: Timestamp when the subscription was cancelledcurrent_period_start: Start date of the current billing periodcurrent_period_end: End date of the current billing periodtenant_id: The tenant ID this subscription belongs tocreated_at: Original timestamp when the subscription was createdupdated_at: Timestamp when the subscription was cancelled- Additional subscription-specific fields
Example Use Cases
- Deactivate features in your application for the customer
- Send cancellation confirmation emails
- Update user access levels
- Trigger retention workflows
- Update analytics and reporting
- Sync cancellation data to your CRM

