Stripe Webhook
POST
/api/billing/webhook
const url = 'http://localhost:8000/api/billing/webhook';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8000/api/billing/webhookStripe webhook. On a completed checkout, credit the workspace’s ledger.
Idempotent: keyed on the Stripe session id so a redelivered event won’t double-credit.
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
example