---
title: "Create a Stripe Checkout session for credits or subscription"
method: POST
path: "/api/v1/billing/topups/checkout-session"
tags: ["Billing"]
---

# Create a Stripe Checkout session for credits or subscription

`POST /api/v1/billing/topups/checkout-session`

## Request

- Base URL: `https://api.esheria.ai`
- URL: `https://api.esheria.ai/api/v1/billing/topups/checkout-session`
- Auth: API key in header `x-api-key`

## Headers

- `idempotency-key` string, required

## Request body

- BillingCheckoutSessionRequest
  - `sku_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `401`: Unauthorized
- `402`: Credits exhausted
- `409`: Conflict
- `422`: Validation error
- `503`: Billing or dependency unavailable

---

[API](https://skmtc.dev/esheria/apis/esheria-regulatory-api.md) · [All operations](https://skmtc.dev/esheria/apis/esheria-regulatory-api/llms.txt) · [OpenAPI document](https://skmtc.dev/esheria/apis/esheria-regulatory-api/revisions/33e5de529f65?raw)
