Skip to main content
POST
Create a billing checkout session

Autorizações

Authorization
string
header
obrigatório

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

Cabeçalhos

Idempotency-Key
string

Corpo

application/json
productType
enum<string>
obrigatório
Opções disponíveis:
subscription,
topup
quantity
integer
obrigatório
Intervalo necessário: x <= 9007199254740991
platform
enum<string>
padrão:api
obrigatório
Opções disponíveis:
web,
desktop,
desktop_v3,
cli,
sdk,
api
cycle
enum<string>
Opções disponíveis:
monthly,
yearly

Resposta

200 - application/json

Checkout session

url
string<uri>
obrigatório
sessionId
string
obrigatório
checkoutId
string
obrigatório
provider
enum<string>
obrigatório
Opções disponíveis:
stripe,
lemon_squeezy,
freekassa