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

# Create a checkout session

`POST /billing/checkout-session`

Create a hosted Stripe Checkout session for first-time subscribe from the terminal. Requires a user credential with `billing:manage`.

## Request body

- object
  - `organizationId` string — Organization to operate on. Auto-filled from CLI and SDK context when omitted. User tokens must supply it unless the credential's fixed scope resolves it; secret keys may omit it (the key's organization applies).
  - `planSlug` string, required

## Response `200`

OK

- object
  - `sessionId` string, required
  - `checkoutUrl` string, uri, required

---

[API](https://skmtc.dev/sazabi/apis/sazabi-public-api.md) · [All operations](https://skmtc.dev/sazabi/apis/sazabi-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sazabi/sazabi-public-api/revisions/1d12b71c735a/schema)
