---
title: "Create Checkout"
method: POST
path: "/checkout"
---

# Create Checkout

`POST /checkout`

## Request

- Base URL: `https://api.segly.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.segly.io/checkout`
- Auth: none declared

Create Stripe Checkout session for one-time credit purchase.

## Headers

- `authorization` string, nullable

## Request body

- CheckoutRequest: Create checkout session for selected pack.
  - `pack_id` string, required
  - `return_path` string, nullable
  - `checkout_attempt_id` string, uuid, nullable
  - `analytics_consent_version` 'v1', nullable

## Response `200`

Successful Response

- CheckoutResponse: Checkout session details.
  - `session_id` string, required
  - `checkout_url` string, required

## Other responses

- `422`: Validation Error

---

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