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
| Name | Type | Required | Description |
|---|---|---|---|
event | payment.failed | Yes | — |
created_at | string | No | — |
data | object | Yes | — |
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Succeeded
payments.succeeded
A Dodo payment succeeded
Payload
| Name | Type | Required | Description |
|---|---|---|---|
event | payment.succeeded | Yes | — |
created_at | string | No | — |
data | object | Yes | — |
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
| Name | Type | Required | Description |
|---|---|---|---|
event | refund.succeeded | Yes | — |
created_at | string | No | — |
data | object | Yes | — |
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
| Name | Type | Required | Description |
|---|---|---|---|
event | subscription.active | Yes | — |
created_at | string | No | — |
data | object | Yes | — |
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
| Name | Type | Required | Description |
|---|---|---|---|
event | subscription.cancelled | Yes | — |
created_at | string | No | — |
data | object | Yes | — |
data full type
data full type
Response data full type
Response data full type
webhookHooks example