Skip to main content
POST
Create a checkout

Authorizations

Authorization
string
header
required

Organization access token or OAuth access token. Scopes: products:read (List products and prices); checkouts:read (Read checkout sessions); checkouts:write (Create checkout sessions); customers:read (Read customers); customers:write (Create and update customers); orders:read (Read orders); subscriptions:read (Read subscriptions); subscriptions:write (Cancel and resume subscriptions); license_keys:read (Read license keys and activations); customer_sessions:write (Mint customer portal sessions); events:write (Ingest usage events); meters:read (Read meters); balance:read (Read customer credit balances); credits:write (Transfer prepaid credits between customers); seats:read (Read seat assignments); seats:write (Assign and revoke seats).

Scopes

checkouts:write

Body

application/json
product_id
string
required
price_id
string

Defaults to the product's first active price.

currency
string

Picks the product's price in this currency.

seats
integer
Required range: x >= 1
amount
integer

Pay-what-you-want amount in minor units.

discount_id
string | null
allow_discount_codes
boolean
affiliate_code
string
customer_email
string<email> | null
customer_name
string | null
external_customer_id
string | null

Your own user id; becomes the customer's external_id.

success_url
string<uri> | null
metadata
object

Up to 20 flat keys. Echoed in webhooks.

Response

Success

id
string
required
url
string
required

Send the buyer here.

status
string
expires_at
string<date-time>
success_url
string | null
metadata
object

Up to 20 flat keys. Echoed in webhooks.