billing
Stripe Webhook
Handle Stripe webhook events.
IMPORTANT: This endpoint must:
- Receive raw body (not parsed JSON)
- Verify the Stripe signature
- Return 200 quickly (within 5-10 seconds)
Events handled:
- checkout.session.completed: User completed payment
- customer.subscription.updated: Plan changed
- customer.subscription.deleted: Subscription canceled
- invoice.payment_failed: Payment failed
post/api/webhooks/stripe
Headers
Stripe-Signaturestring required
Response
Successful Response
{"stackTrail":"paths:/api/webhooks/stripe:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}
Changes
No recorded changes to this endpoint across all 1 revision of this API.