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

# Create Stripe checkout session

`POST /api/billing/checkout`

## Request

- Base URL: `https://plith.ai`
- URL: `https://plith.ai/api/billing/checkout`
- Auth: none required

Creates a Stripe Checkout session for a credit pack purchase. No API key required — pass org_id in the body. Redirect the user to the returned URL to complete payment. Available packs: $10 = 10,000 credits, $25 = 25,000 credits, $100 = 100,000 credits.

## Request body

- object
  - `org_id` string, uuid, required: The org to credit after payment.
  - `pack` 10 | 25 | 100, required: Dollar amount of the pack to purchase.

## Response `200`

Stripe Checkout session created

- object
  - `url` string, uri: Stripe Checkout URL. Redirect the user here to complete payment.

## Other responses

- `400`: Missing org_id or invalid pack value
- `503`: Billing not configured (Stripe keys missing)

---

[API](https://skmtc.dev/plith/apis/plith-api.md) · [All operations](https://skmtc.dev/plith/apis/plith-api/llms.txt) · [OpenAPI document](https://skmtc.dev/plith/apis/plith-api/revisions/4a03164b0d75?raw)
