---
title: "Create Checkout Session"
method: POST
path: "/api/billing/checkout"
tags: ["billing"]
---

# Create Checkout Session

`POST /api/billing/checkout`

## Request

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

Start a subscription. Works signed in or anonymous.

Signed-in callers get their existing Stripe customer reused so upgrades land
on the same customer record; anonymous callers (marketing pages) enter their
email at Checkout and are linked by the webhook afterwards.

## Request body

- CheckoutRequest
  - `plan` string, required
  - `billing` string
  - `currency` string, nullable
  - `ref_code` string, nullable
  - `email` string, nullable
  - `success_path` string, nullable
  - `cancel_path` string, nullable
  - `attribution` object, nullable
  - `tos_accepted_at` string, nullable
  - `blocks` integer
  - `funnel_domain` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getle/apis/lead-generator-pro-api.md) · [All operations](https://skmtc.dev/getle/apis/lead-generator-pro-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getle/apis/lead-generator-pro-api/revisions/041155e6d905?raw)
