Skip to main content
POST
Create a billing checkout session

Autorisations

Authorization
string
header
requis

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

En-têtes

Idempotency-Key
string

Corps

application/json
productType
enum<string>
requis
Options disponibles:
subscription,
topup
quantity
integer
requis
Plage requise: x <= 9007199254740991
platform
enum<string>
défaut:api
requis
Options disponibles:
web,
desktop,
desktop_v3,
cli,
sdk,
api
cycle
enum<string>
Options disponibles:
monthly,
yearly

Réponse

200 - application/json

Checkout session

url
string<uri>
requis
sessionId
string
requis
checkoutId
string
requis
provider
enum<string>
requis
Options disponibles:
stripe,
lemon_squeezy,
freekassa