Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Stripe Webhook

POST
/api/v1/webhooks/stripe
curl --request POST \
--url https://example.com/api/v1/webhooks/stripe

Handle Stripe webhook events with idempotency.

Two-phase flow: run the handler FIRST, then persist the WebhookEvent row on success. If the handler fails, rollback the session (so no event row persists) and return 500 — Stripe will retry and the handler will re-run on the next delivery.

Successful Response

Media type application/json
Response Stripe Webhook Api V1 Webhooks Stripe Post
object
key
additional properties
string
Example generated
{
"additionalProperty": "example"
}