Zum Hauptinhalt springen
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>"
}

Autorisierungen

Authorization
string
header
erforderlich

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

Header

Idempotency-Key
string

Body

application/json
productType
enum<string>
erforderlich
Verfügbare Optionen:
subscription,
topup
quantity
integer
erforderlich
Erforderlicher Bereich: x <= 9007199254740991
platform
enum<string>
Standard:api
erforderlich
Verfügbare Optionen:
web,
desktop,
cli,
sdk,
api
cycle
enum<string>
Verfügbare Optionen:
monthly,
yearly

Antwort

200 - application/json

Checkout session

url
string<uri>
erforderlich
sessionId
string
erforderlich