Passer au contenu principal
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>"
}

Autorisations

Authorization
string
header
requis

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

En-têtes

Idempotency-Key
string

Corps

application/json
productType
enum<string>
requis
Options disponibles:
subscription,
topup
quantity
integer
requis
Plage requise: x <= 9007199254740991
platform
enum<string>
défaut:api
requis
Options disponibles:
web,
desktop,
cli,
sdk,
api
cycle
enum<string>
Options disponibles:
monthly,
yearly

Réponse

200 - application/json

Checkout session

url
string<uri>
requis
sessionId
string
requis