---
title: "Create Hosted Checkout"
method: POST
path: "/v1/credit-purchases/checkout"
---

# Create Hosted Checkout

`POST /v1/credit-purchases/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/v1/credit-purchases/checkout`
- Auth: HTTP bearer

## Headers

- `Idempotency-Key` string, nullable

## Request body

- CheckoutCreateRequest
  - `pack_id` string, required
  - `max_price_cents` integer, required
  - `return_path` string, nullable

## Response `200`

Successful Response

- object

## 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)
