Skip to main content
POST
Create a billing checkout session

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string

Body

application/json
productType
enum<string>
required
Available options:
subscription,
topup
quantity
integer
required
Required range: x <= 9007199254740991
platform
enum<string>
default:api
required
Available options:
web,
desktop,
desktop_v3,
cli,
sdk,
api
cycle
enum<string>
Available options:
monthly,
yearly

Response

200 - application/json

Checkout session

url
string<uri>
required
sessionId
string
required
checkoutId
string
required
provider
enum<string>
required
Available options:
stripe,
lemon_squeezy,
freekassa