---
title: "Create Checkout"
method: POST
path: "/v1/organizations/billing/checkout"
tags: ["Organization Billing"]
---

# Create Checkout

`POST /v1/organizations/billing/checkout`

Create a Stripe Checkout Session for a one-time credit purchase.

Allows organization admins to purchase credit packages via Stripe Checkout.
After successful payment, credits are automatically added to the organization.

**Available Packages:**
- `starter`: 10,000 credits — $10
- `growth`: 50,000 credits — $40
- `scale`: 200,000 credits — $120

**Requirements:**
- Admin permission

**Example:**
```python
response = await client.post(
    "/v1/organizations/billing/checkout",
    json={"package": "growth"}
)
# Redirect user to response["checkout_url"]
```

## Request body

- CreateCheckoutRequest — Request to create a Stripe Checkout Session for credit purchase.
  - `package` string, required — Credit package to purchase: starter, growth, or scale
  - `success_url` string, nullable — Redirect URL after successful payment
  - `cancel_url` string, nullable — Redirect URL if checkout is cancelled

## Response `200`

Successful Response

- CreateCheckoutResponse — Response with Stripe Checkout Session URL.
  - `checkout_url` string, required — Stripe-hosted checkout page URL
  - `session_id` string, required — Stripe Checkout Session ID

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Validation Error
- `500` — Internal Server Error

---

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