{
"id": "event_xxxxx",
"object": "event",
"created": 1754819711382,
"type": "subscription.activated",
"data": {
"object": {
"subscriptionId": "sub_xxxxx",
"merchantReference": "sub_ref_10001",
"customerId": "cus_xxxxx",
"productId": "prd_xxxxx",
"priceId": "price_xxxxx",
"priceSnapshotId": "pricesns_xxxxx",
"createTime": 1754819711382,
"quantity": 1,
"paymentMethodType": "card",
"paymentInstrumentId": "pi_xxxxx",
"status": "active",
"billing": "charge_automatically",
"currency": "USD",
"currentPeriodStart": 1754819711382,
"currentPeriodEnd": 1757498111382,
"recurringInvoiceItem": {
"invoiceItemId": "ii_xxxxx",
"amount": "19.99",
"currency": "USD",
"description": "Pro Plan monthly subscription",
"periodStart": 1754819711382,
"periodEnd": 1757498111382,
"proration": false,
"price": {
"productId": "prd_xxxxx",
"productName": "Pro Plan",
"priceId": "price_xxxxx",
"priceSnapshotId": "pricesns_xxxxx",
"unitAmount": "19.99",
"quantity": 1,
"recurring": {
"interval": "month",
"pricingModel": "flat_rate",
"trialPeriodDays": 0
}
}
},
"sessionId": "sess_xxxxx",
"metadata": {
"plan": "pro"
}
}
}
}Webhooks
subscription
Subscription lifecycle and update notifications. subscription.paused and subscription.resumed mark actual status changes. subscription.updated.pause_schedule_set and subscription.updated.pause_schedule_revoked report schedule changes.
WEBHOOK
subscription
{
"id": "event_xxxxx",
"object": "event",
"created": 1754819711382,
"type": "subscription.activated",
"data": {
"object": {
"subscriptionId": "sub_xxxxx",
"merchantReference": "sub_ref_10001",
"customerId": "cus_xxxxx",
"productId": "prd_xxxxx",
"priceId": "price_xxxxx",
"priceSnapshotId": "pricesns_xxxxx",
"createTime": 1754819711382,
"quantity": 1,
"paymentMethodType": "card",
"paymentInstrumentId": "pi_xxxxx",
"status": "active",
"billing": "charge_automatically",
"currency": "USD",
"currentPeriodStart": 1754819711382,
"currentPeriodEnd": 1757498111382,
"recurringInvoiceItem": {
"invoiceItemId": "ii_xxxxx",
"amount": "19.99",
"currency": "USD",
"description": "Pro Plan monthly subscription",
"periodStart": 1754819711382,
"periodEnd": 1757498111382,
"proration": false,
"price": {
"productId": "prd_xxxxx",
"productName": "Pro Plan",
"priceId": "price_xxxxx",
"priceSnapshotId": "pricesns_xxxxx",
"unitAmount": "19.99",
"quantity": 1,
"recurring": {
"interval": "month",
"pricingModel": "flat_rate",
"trialPeriodDays": 0
}
}
},
"sessionId": "sess_xxxxx",
"metadata": {
"plan": "pro"
}
}
}
}Headers
Body
application/json
Subscription event payload in json
Type of event that occurred
Available options:
subscription.created, subscription.trialing, subscription.activated, subscription.incomplete_expired, subscription.past_due, subscription.cancelled, subscription.updated.plan_changed, subscription.updated.plan_change_canceled, subscription.updated.renewed, subscription.updated.cancel_at_period_end_set, subscription.updated.cancel_at_period_end_revoked, subscription.paused, subscription.resumed, subscription.updated.pause_schedule_set, subscription.updated.pause_schedule_revoked Example:
"subscription.activated"
Response
200
Return a 200 status to indicate that the data was received successfully