Stripe

Stripe Webhook

Handle Stripe webhooks for metered billing.

Events handled:

  • invoice.created: Report usage to Stripe before invoice finalization
  • invoice.paid: Record successful payment
  • invoice.payment_failed: Handle failed payment
  • customer.subscription.created: New subscription
  • customer.subscription.deleted: Subscription cancelled
post/api/stripe/webhook

Headers

Stripe-Signaturestring nullable

Response

Successful Response

{"stackTrail":"paths:/api/stripe/webhook:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes