Skip to main content
POST
Create Checkout Session

Headers

x-api-key
string
required

Body

application/json
plan_id
string<uuid>
required
success_url
string
required
cancel_url
string
required
customer_email
string<email> | null
customer_name
string | null
metadata
Metadata · object | null

Response

Successful Response

id
string<uuid>
required
code
string
required
checkout_url
string
required
status
enum<string>
required
Available options:
PENDING,
COMPLETED,
EXPIRED,
CANCELLED
expires_at
string<date-time>
required
plan_id
string<uuid>
required
created_at
string<date-time>
required