Webhooks
Handle events from external services.
Stripe Webhooks
Your platform receives Stripe events at POST /webhook/stripe. The endpoint is
included when your project has Stripe keys and at least one product.
It acts on these events:
| Event | What your platform does |
|---|---|
customer.subscription.created | Records the subscription for the user who checked out |
customer.created, customer.updated | Links the Stripe customer to the user with the same email |
customer.deleted | Removes the Stripe customer from that user |
Each event is processed once, so when Stripe sends the same event again, it's ignored. When a customer event doesn't match any user, the webhook answers with an error so Stripe retries it later.
Setting Up Webhooks
- In Stripe Dashboard, go to Developers > Webhooks
- Add an endpoint:
https://your-domain.com/webhook/stripe - Select the events listed above