---
title: "POST /v1/workspaces/{workspaceId}/billing/checkout"
method: POST
path: "/v1/workspaces/{workspaceId}/billing/checkout"
tags: ["Billing"]
---

# POST /v1/workspaces/{workspaceId}/billing/checkout

`POST /v1/workspaces/{workspaceId}/billing/checkout`

## Request

- Base URL: `https://api.atlas-compiler.com`
- URL: `https://api.atlas-compiler.com/v1/workspaces/{workspaceId}/billing/checkout`
- Auth: HTTP bearer

## Path parameters

- `workspaceId` string, required

## Headers

- `idempotency-key` string, required: Deduplicates only after current authentication and authorization succeed. Demotion or revocation can make replay unavailable.

## Request body

- object
  - `billingCycle` 'monthly' | 'annual'
  - `customerName` string
  - `planCode` string, required

## Response `200`

Success

- object
  - `url` string, uri, required

## Other responses

- `400`: RFC 9457 problem.
- `401`: RFC 9457 problem.
- `403`: RFC 9457 problem.
- `404`: RFC 9457 problem.
- `409`: RFC 9457 problem.
- `500`: RFC 9457 problem.
- `503`: RFC 9457 problem.

---

[API](https://skmtc.dev/atlas-compiler/apis/atlas-backend-api.md) · [All operations](https://skmtc.dev/atlas-compiler/apis/atlas-backend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/atlas-compiler/apis/atlas-backend-api/revisions/a43b60619cdf?raw)
