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

# Create Checkout

`POST /api/billing/create-checkout-session`

## Request

- Base URL: `https://api.thebetterhire.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.thebetterhire.ai/api/billing/create-checkout-session`
- Auth: HTTP bearer

Create a Stripe Checkout session or modify an existing subscription.

If the organization already has an active subscription, modify it in-place
(preventing duplicate subscriptions). Otherwise, create a new checkout session.
Only admins can initiate checkout.

## Request body

- CheckoutSessionRequest
  - `price_id` string, required
  - `success_url` string, required
  - `cancel_url` string, required

## Response `200`

Successful Response

- CheckoutSessionResponse
  - `session_id` string, required
  - `checkout_url` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/thebetterhire/apis/interanalysis-b2b-api.md) · [All operations](https://skmtc.dev/thebetterhire/apis/interanalysis-b2b-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thebetterhire/apis/interanalysis-b2b-api/revisions/c8ad03e900ea?raw)
