Skip to main content
POST
Creates a Dodo checkout session. After the payment succeeds, the credits are added to the workspace. Open the returned checkout_url in a browser to pay. For credit top-ups, the credits are fixed at checkout using the plan rate. See Plans, Credits & Top-ups.
Only the workspace owner can call this endpoint. It is protected by the billing:manage permission.

Request

Headers

string
required
Bearer token (JWT or API key)
string
required
application/json

Body

number
required
Amount in USD. For credit top-ups, must be between 10 and 1000.
string
credits (default), wallet (alias for credits), or dialer. credits is available only on Creator and Pro. dialer adds to the Dialer balance, is not plan-gated, and skips the $10–$1,000 range.
string
Optional coupon. It lowers the price you pay. It does not change the credits.

Response

200 OK:
string
Dodo checkout URL to complete payment
integer | null
Credits this top-up buys at the plan rate. null for dialer.
number | null
Plan rate used for the quote. null for dialer.
number
Amount entered
number
Amount charged at checkout, after any coupon discount
number
Amount credited to the wallet
string
Always USD

Errors