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

# Create Stripe Checkout Session

`POST /billing/checkout`

## Request

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

Legacy subscription checkout — discontinued.

New subscription sales ended with the move to one-time credit packs
(2026-08-09 decision). Existing subscribers are unaffected: the Stripe
webhook and customer portal continue to manage their plans. New
purchases go through POST /billing/credits/checkout.

## Headers

- `X-API-Key` string, nullable

## Request body

- CheckoutRequest: Request body for creating a Stripe Checkout Session.
  - `tier` 'pro' | 'team', required
  - `billing_period` 'monthly' | 'annual'
  - `success_url` string, required
  - `cancel_url` string, required

## Response `200`

Successful Response

- ApiResponseCheckoutResponse
  - `data` CheckoutResponse: Response body after creating a Stripe Checkout Session.
    - `checkout_url` string, required
    - `session_id` string, required
  - `error` ErrorDetail: Structured error information for API error responses. Attributes: code: Machine-readable error code (e.g. "JOB_NOT_FOUND"). message: Human-readable error description. details: Optional additional context for debugging.
    - `code` string, required
    - `message` string, required
    - `details` object, nullable
  - `meta` object, nullable

## Other responses

- `401`: Unauthorized — missing or invalid API key/JWT.
- `422`: Validation Error

---

[API](https://skmtc.dev/whoisgeni/apis/whoisgenius.md) · [All operations](https://skmtc.dev/whoisgeni/apis/whoisgenius/llms.txt) · [OpenAPI document](https://skmtc.dev/whoisgeni/apis/whoisgenius/revisions/707f1c34f6b3?raw)
