Cancel In-Flight Checkout
Releases the Redis lock created by `POST /billing/checkout`, allowing a new checkout to be started. Session-authenticated only.
Internal session cookie for local development.
In: cookie
Response Body
application/json
application/json
curl -X POST "https://example.com/api/v1/billing/checkout/cancel"{ "success": true, "message": "string", "data": { "success": true }}Create Subscription Checkout SessionPOST
Creates a hosted Dodo Payments checkout session for a subscription product. `productKey` and `interval` are validated against a fixed whitelist (the product catalog) before being handed off to Dodo — arbitrary product/interval combinations are rejected with `400`. A Redis lock prevents starting a second checkout while one is already in flight. Session-authenticated only; blocked for non-admins in production during the current rollout phase.
Create Billing Portal SessionPOST
Creates a Dodo Payments customer portal URL for managing an existing subscription. Session-authenticated only; blocked for non-admins in production during the current rollout phase.