Skip to main content
POST
Create a billing checkout session

授权

Authorization
string
header
必填

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

请求头

Idempotency-Key
string

请求体

application/json
productType
enum<string>
必填
可用选项:
subscription,
topup
quantity
integer
必填
必填范围: x <= 9007199254740991
platform
enum<string>
默认值:api
必填
可用选项:
web,
desktop,
desktop_v3,
cli,
sdk,
api
cycle
enum<string>
可用选项:
monthly,
yearly

响应

200 - application/json

Checkout session

url
string<uri>
必填
sessionId
string
必填
checkoutId
string
必填
provider
enum<string>
必填
可用选项:
stripe,
lemon_squeezy,
freekassa