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

# Create Checkout

`POST /api/billing/checkout`

## Request body

- CheckoutRequest
  - `plan` string, required
  - `deal_code` string, nullable

## Response `200`

Successful Response

- CheckoutResponse
  - `checkout_url` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-18** `64da737bcc9e` — 1 breaking, 1 warning
  - added the pattern `^[A-Za-z0-9_-]+$` to the request property `deal_code/anyOf[subschema #1]/`
  - changed the pattern of the request property `plan` from `^(hobby|team|team_annual)$` to `^team$`
- **2026-08-16** `44d8ea826f48` — 1 warning, 1 info
  - changed the pattern of the request property `plan` from `^(hobby|team)$` to `^(hobby|team|team_annual)$`
  - removed the pattern `^[A-Za-z0-9_-]+$` from the request property `deal_code/anyOf[subschema #1]/`
- **2026-08-13** `d80008a9efc6` — 1 breaking, 1 warning
  - added the pattern `^[A-Za-z0-9_-]+$` to the request property `deal_code/anyOf[subschema #1]/`
  - changed the pattern of the request property `plan` from `^(hobby|team|team_annual)$` to `^(hobby|team)$`
- **2026-08-12** `8540ec6c1778` — 1 warning, 1 info
  - changed the pattern of the request property `plan` from `^(hobby|team)$` to `^(hobby|team|team_annual)$`
  - removed the pattern `^[A-Za-z0-9_-]+$` from the request property `deal_code/anyOf[subschema #1]/`
- **2026-08-06** `a2c84c9154da` — 1 breaking, 1 warning
  - added the pattern `^[A-Za-z0-9_-]+$` to the request property `deal_code/anyOf[subschema #1]/`
  - changed the pattern of the request property `plan` from `^(hobby|team|team_annual)$` to `^(hobby|team)$`

[Change history](https://skmtc.dev/codag/apis/infra-logs-templater/changes/api/billing/checkout/post.md)

---

[API](https://skmtc.dev/codag/apis/infra-logs-templater.md) · [All operations](https://skmtc.dev/codag/apis/infra-logs-templater/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/codag/infra-logs-templater/revisions/a4b69f6d2450/schema)
