Triggered when a new subscription is successfully created. This webhook can include details about the customer, subscription plan, and start date. Businesses use it to activate services, onboard new subscribers, or send welcome emails, ensuring a smooth and engaging start to the subscription journey.
Example of Request Payload Object (subscription_created)
Copy {
"id": "d6862a8e-884e-4429-908e-c659b96aac3b",
"type": "subscription_created",
"testMode": true,
"data": {
"user": {
"id": "bc589721-695f-4f80-afa0-36711193258a",
"email": "test@fungies.io",
"object": "user",
"username": null,
"internalId": null
},
"items": [],
"lastPayment": {
"id": "1a36e115-c3a5-4904-ab3d-0f9e1719664a",
"fee": 0,
"tax": 0,
"type": "subscription_initial",
"value": 0,
"number": "z26yYXQWFMoFsOBa",
"object": "payment",
"status": "PAID",
"userId": "bc589721-695f-4f80-afa0-36711193258a",
"orderId": "1a36e115-c3a5-4904-ab3d-0f9e1719664a",
"currency": "USD",
"createdAt": 1732373176477,
"orderNumber": "z26yYXQWFMoFsOBa",
"currencyDecimals": 2
},
"subscription": {
"id": "z26yYXQWFMoFsOBa",
"object": "subscription",
"userId": "bc589721-695f-4f80-afa0-36711193258a",
"orderId": "1a36e115-c3a5-4904-ab3d-0f9e1719664a",
"createdAt": 1731938713000,
"canceledAt": null,
"orderNumber": "z26yYXQWFMoFsOBa",
"lastPaymentId": "1a36e115-c3a5-4904-ab3d-0f9e1719664a",
"lastPaymentNumber": "z26yYXQWFMoFsOBa",
"currentIntervalEnd": 1734530713000,
"cancelAtIntervalEnd": false,
"currentIntervalStart": 1731938713000
}
},
"idempotencyKey": "d6862a8e-884e-4429-908e-c659b96aac3b"
}