dodopayments.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.
Customers
create
customers.create
Create a Dodo customer
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | — |
email | string | Yes | — |
phone_number | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
name | string | No | — |
email | string | No | — |
phone_number | string | No | — |
created_at | string | No | — |
get
customers.get
Fetch a Dodo customer by ID
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
name | string | No | — |
email | string | No | — |
phone_number | string | No | — |
created_at | string | No | — |
Payments
create
payments.create
Create a Dodo payment
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
amount | number | Yes | — |
currency | string | Yes | — |
customer_id | string | No | — |
payment_method | string | No | — |
metadata | object | No | — |
metadata full type
metadata full type
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
amount | number | Yes | — |
currency | string | Yes | — |
status | string | Yes | — |
customer_id | string | No | — |
subscription_id | string | No | — |
billing | object | No | — |
payment_link | string | No | — |
created_at | string | No | — |
billing full type
billing full type
get
payments.get
Fetch a Dodo payment by ID
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
amount | number | Yes | — |
currency | string | Yes | — |
status | string | Yes | — |
customer_id | string | No | — |
subscription_id | string | No | — |
billing | object | No | — |
payment_link | string | No | — |
created_at | string | No | — |
billing full type
billing full type
list
payments.list
List Dodo payments
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
limit | number | No | — |
starting_after | string | No | — |
ending_before | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
data | object[] | Yes | — |
has_more | boolean | No | — |
data full type
data full type
Refunds
create
refunds.create
Create a refund for a Dodo payment
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
payment_id | string | Yes | — |
amount | number | No | — |
reason | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
payment_id | string | Yes | — |
amount | number | Yes | — |
status | string | Yes | — |
reason | string | No | — |
created_at | string | No | — |
Subscriptions
cancel
subscriptions.cancel
Cancel a Dodo subscription
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
customer_id | string | Yes | — |
plan_id | string | No | — |
status | string | Yes | — |
billing_cycle | object | No | — |
created_at | string | No | — |
billing_cycle full type
billing_cycle full type
create
subscriptions.create
Create a Dodo subscription
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | string | Yes | — |
plan_id | string | Yes | — |
quantity | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
customer_id | string | Yes | — |
plan_id | string | No | — |
status | string | Yes | — |
billing_cycle | object | No | — |
created_at | string | No | — |
billing_cycle full type
billing_cycle full type
get
subscriptions.get
Fetch a Dodo subscription by ID
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
customer_id | string | Yes | — |
plan_id | string | No | — |
status | string | Yes | — |
billing_cycle | object | No | — |
created_at | string | No | — |
billing_cycle full type
billing_cycle full type