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:

EventWhat your platform does
customer.subscription.createdRecords the subscription for the user who checked out
customer.created, customer.updatedLinks the Stripe customer to the user with the same email
customer.deletedRemoves 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

  1. In Stripe Dashboard, go to Developers > Webhooks
  2. Add an endpoint: https://your-domain.com/webhook/stripe
  3. Select the events listed above