Webhook map
paymentsfailed(payments.failed)succeeded(payments.succeeded)
refundssucceeded(refunds.succeeded)
subscriptionsactive(subscriptions.active)cancelled(subscriptions.cancelled)
HTTP handler setup
app/api/webhook/route.ts
Events
Payments
Failed
payments.failed
A Dodo payment failed
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Succeeded
payments.succeeded
A Dodo payment succeeded
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Refunds
Succeeded
refunds.succeeded
A Dodo refund succeeded
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Subscriptions
Active
subscriptions.active
A Dodo subscription became active
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Cancelled
subscriptions.cancelled
A Dodo subscription was cancelled
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example