Billing

Create a billing checkout session

Changed on
post/billing/checkout

Request

  • Base URL
    https://api.youka.io/api/v1
  • URL
    https://api.youka.io/api/v1/billing/checkout
  • Auth
    HTTP bearer

Headers

Idempotency-Keystring

Request body

productType'subscription' | 'topup' required
cycle'monthly' | 'yearly'
quantityinteger required
platform'web' | 'desktop' | 'desktop_v3' | 'cli' | 'sdk' | 'api' required

Response

Checkout session

urlstring uri required
sessionIdstring required
checkoutIdstring required
provider'stripe' | 'lemon_squeezy' | 'freekassa' | 'paddle' required

Changes

    • info

      added the new desktop_v3 enum value to the request property

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status