Receive and process Stripe webhook events
Receive and process Stripe webhook events.
Verifies the Stripe signature (HMAC-SHA256 + replay protection via
timestamp tolerance), then dispatches to the appropriate handler via
stripe_service.dispatch_event. Returns 200 to acknowledge receipt
so Stripe doesn’t retry handler failures.
NOTE: This route and POST /api/v1/billing/webhook share the same
dispatcher and behave identically. Configure exactly ONE of them as
your Stripe webhook URL; the other is preserved for compatibility.
Authorizations
Enter your API key (e.g. dai_sk_test_key_001)
Body
Stripe webhook event envelope.
https://stripe.com/docs/api/events/object — abbreviated to the fields DecimalAI actually inspects.
Response
Successful Response