---
title: "Stripe Webhook"
method: POST
path: "/api/webhooks/stripe"
---

# Stripe Webhook

`POST /api/webhooks/stripe`

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

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/latted/apis/motion-graphics-designer-api.md) · [All operations](https://skmtc.dev/latted/apis/motion-graphics-designer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/latted/motion-graphics-designer-api/revisions/36d149b525df/schema)
