Skip to content

Stripe webhook

POST
/billing/webhook
curl --request POST \
--url https://api.sloose.com/billing/webhook \
--header 'Content-Type: application/json' \
--header 'Stripe-Signature: example' \
--data '{}'

Stripe calls this; you should not. The signature is verified against STRIPE_WEBHOOK_SECRET over the raw request body, and each event is processed once, keyed on its event id, so a redelivery is harmless.

A handler that fails answers 500 on purpose, so Stripe retries. Everything else is acknowledged.

Stripe-Signature
required

Stripe’s signature over the raw body.

string

Stripe’s signature over the raw body.

The raw Stripe event, signed with the Stripe-Signature header.

Media typeapplication/json

A Stripe event.

object
Examplegenerated
{}

Acknowledged.

Missing or invalid signature.

A handler failed. Answered deliberately so Stripe retries.

No webhook secret is configured on this deployment.