मुख्य सामग्री पर जाएं
POST
/
billing
/
checkout
Create a billing checkout session
curl --request POST \
  --url https://api.youka.io/api/v1/billing/checkout \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "productType": "subscription",
  "quantity": 123,
  "platform": "api",
  "cycle": "monthly"
}
'
{
  "url": "<string>",
  "sessionId": "<string>"
}

प्राधिकरण

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,
cli,
sdk,
api
cycle
enum<string>
उपलब्ध विकल्प:
monthly,
yearly

प्रतिक्रिया

200 - application/json

Checkout session

url
string<uri>
आवश्यक
sessionId
string
आवश्यक