---
title: "Start a hosted checkout for Pro"
method: POST
path: "/api/billing/checkout"
tags: ["billing"]
---

# Start a hosted checkout for Pro

`POST /api/billing/checkout`

## Request

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

Mint a checkout URL for an account that does not already have one.

## Request body

- CheckoutRequest: Which tier the browser is asking to buy; a body-less POST buys Pro.
  - `plan` 'pro'

## Response `200`

Successful Response

- CheckoutSessionView: Where to send the browser. Holding it grants nothing (W-D10 v2).
  - `checkout_url` string, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `409`: Conflict
- `422`: Validation Error
- `503`: Service Unavailable

---

[API](https://skmtc.dev/nerdit/apis/nerdit-cloud-web.md) · [All operations](https://skmtc.dev/nerdit/apis/nerdit-cloud-web/llms.txt) · [OpenAPI document](https://skmtc.dev/nerdit/apis/nerdit-cloud-web/revisions/06e3b44b58be?raw)
