---
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-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/e43028aaffe3/schema)
