Documentation Index
Fetch the complete documentation index at: https://docs.metrifox.com/llms.txt
Use this file to discover all available pages before exploring further.
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 IDstatus: Subscription status (e.g., “active”, “cancelled”, “past_due”)ends_at: Subscription end timestamp (if scheduled to end)plan_id: ID of the plan associated with this subscriptionmetadata: Custom metadata objectorder_id: Order ID that created the subscriptionpaused_at: Pause timestamp (if paused)renews_at: Next renewal timestampstarts_at: Subscription start timestamptenant_id: The tenant ID this subscription belongs tocreated_at: Timestamp when the subscription was createdupdated_at: Timestamp when the subscription was last updatedcustomer_id: ID of the customer who owns the subscriptioncustomer_key: Your external customer identifiercancelled_at: Cancellation timestamp (if cancelled)converted_at: Conversion timestamp (if converted)currency_code: Currency code (e.g., “USD”, “NGN”)trial_end_date: Trial end timestamp (if applicable)price_option_id: Price option IDbilling_interval: Billing interval (e.g., “monthly”)renew_date_anchor: Renewal day of month anchorsubscription_number: Subscription numberbilling_interval_value: Billing interval value
data.subscription_items
id: Subscription item IDquantity: Quantity for the itemsource_id: Source record IDcreated_at: Timestamp when the item was createdupdated_at: Timestamp when the item was last updatedsource_type: Source record typeprice_option_id: Price option IDsubscription_id: Subscription ID the item belongs to
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

