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

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

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

## Request

- Base URL: `https://api.atlas-compiler.com`
- URL: `https://api.atlas-compiler.com/v1/workspaces/{workspaceId}/billing/checkout/reconcile`
- 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
  - `intentId` string: Atlas checkout intent ID
  - `paymentId` string: Provider payment ID
  - `sessionId` string: Provider checkout session ID

## Response `200`

Success

- object
  - `boostCode` string: The topup boost pack code (e.g. 5k)
  - `planCode` string, required: The resulting plan code (e.g. pro)
  - `planVersion` integer, required: The plan version
  - `reconciled` boolean, required: Whether reconciliation succeeded and entitlement was confirmed
  - `status` 'active' | 'pending' | 'failed' | 'canceled' | 'past_due' | 'succeeded' | 'paid', required: Current status of the subscription or payment
  - `topupCredits` integer: Number of credits granted if topup
  - `type` 'subscription' | 'topup': The type of checkout purchase

## 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)
