---
title: "Create a billing checkout session"
method: POST
path: "/billing/checkout"
tags: ["Billing"]
---

# Create a billing checkout session

`POST /billing/checkout`

## Headers

- `Idempotency-Key` string

## Request body

- BillingCheckoutRequest
  - `productType` 'subscription' | 'topup', required
  - `cycle` 'monthly' | 'yearly'
  - `quantity` integer, required
  - `platform` 'web' | 'desktop' | 'cli' | 'sdk' | 'api', required

## Response `200`

Checkout session

- BillingCheckoutResponse
  - `url` string, uri, required
  - `sessionId` string, required

---

[API](https://skmtc.net/youka/apis/youka-rest-api.md) · [All operations](https://skmtc.net/youka/apis/youka-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/youka/youka-rest-api/versions/4695792173d5/schema)
