Skip to main content
POST
Create a billing checkout session

Ủy quyền

Authorization
string
header
bắt buộc

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

Tiêu đề

Idempotency-Key
string

Nội dung

application/json
productType
enum<string>
bắt buộc
Tùy chọn có sẵn:
subscription,
topup
quantity
integer
bắt buộc
Phạm vi bắt buộc: x <= 9007199254740991
platform
enum<string>
mặc định:api
bắt buộc
Tùy chọn có sẵn:
web,
desktop,
desktop_v3,
cli,
sdk,
api
cycle
enum<string>
Tùy chọn có sẵn:
monthly,
yearly

Phản hồi

200 - application/json

Checkout session

url
string<uri>
bắt buộc
sessionId
string
bắt buộc
checkoutId
string
bắt buộc
provider
enum<string>
bắt buộc
Tùy chọn có sẵn:
stripe,
lemon_squeezy,
freekassa