Skip to main content
POST
Create checkout session

Body

application/json

POST /v1/billing/checkout

plan
string
required

Target plan: 'pro', 'studio', or 'enterprise', optionally versioned (e.g. 'pro_v1')

Pattern: ^(pro|studio|enterprise)(_v[0-9]+)?$
success_url
string
required

URL to redirect to after successful checkout

Minimum string length: 1
cancel_url
string
required

URL to redirect to if the user cancels checkout

Minimum string length: 1

Response

Checkout session created

Stripe checkout session result.

checkout_url
string
required

Redirect URL for the checkout page

session_id
string
required

Checkout session ID