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