---
title: "Handle Create Checkout Session"
method: POST
path: "/stripe/create-checkout-session"
---

# Handle Create Checkout Session

`POST /stripe/create-checkout-session`

## Request

- Base URL: `https://api.phonely.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.phonely.ai/stripe/create-checkout-session`
- Auth: none declared. Required headers: `authorization`

## Headers

- `authorization` string, required

## Request body

- CheckoutSessionRequest
  - `plan` string, required
  - `frequency` string, required
  - `gclid` string, nullable

## Response `200`

Successful Response

- CheckoutResponse
  - `data` object, nullable
  - `error` ErrorResponse
    - `code` string, required
    - `message` string, required
    - `details` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/phonely/apis/phonely-api.md) - [All operations](https://skmtc.dev/phonely/apis/phonely-api/llms.txt) - [OpenAPI document](https://skmtc.dev/phonely/apis/phonely-api/revisions/9bfd5599d479?raw)
