Stripe Webhook

Handle Stripe webhook events for billing

This endpoint handles:

  • checkout.session.completed: Customer completed checkout, create billing period
  • invoice.paid: Invoice was paid successfully
  • invoice.payment_failed: Payment failed
  • customer.subscription.updated: Subscription status changed
  • customer.subscription.deleted: Subscription was cancelled

Args: request: FastAPI request object (for raw body access) db: Database session

Returns: Success acknowledgment

post/api/webhooks/stripe

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.