Overview
Thesubscription.created webhook is triggered when a new subscription is created for a customer in your Metrifox account.
When It’s Triggered
This event is sent immediately after a subscription is successfully created, which can happen when:- A customer purchases a plan that creates a subscription
- A subscription is created through the API
- A subscription is manually assigned to a customer
- A scheduled subscription becomes active
Payload Structure
Data Fields
The payload includes:data.subscription
id: Internal subscription IDsubscription_key: Unique subscription identifiercustomer_id: ID of the customer who owns the subscriptioncustomer_key: Customer keyplan_id: ID of the plan associated with this subscriptionplan_name: Name of the planstatus: Subscription status (e.g., “active”, “cancelled”, “past_due”)billing_interval: Billing frequency (e.g., “monthly”, “yearly”)current_period_start: Start date of current billing periodcurrent_period_end: End date of current billing periodtenant_id: The tenant ID this subscription belongs tocreated_at: Timestamp when the subscription was createdupdated_at: Timestamp when the subscription was last updated- Additional subscription-specific fields
data.subscription_items (optional)
Array of subscription items/features included in the subscription.
Example Use Cases
- Activate features in your application for the customer
- Send subscription confirmation emails
- Sync subscription data to your CRM
- Trigger onboarding workflows for new subscribers
- Update user access levels

