---
title: "Preview a plan change"
method: POST
path: "/billing/plan/preview"
tags: ["Billing"]
---

# Preview a plan change

`POST /billing/plan/preview`

## Request

- Base URL: `https://api.cactal.ai/v1`
- URL: `https://api.cactal.ai/v1/billing/plan/preview`
- Auth: HTTP bearer

Projects the price of switching to the `pro` plan (`monthly` or `annual`) without charging anything. `aiCreditTier` selects the monthly AI credit allowance (default 1,000). Website capacity is computed from existing custom-domain sites and cannot be chosen here. Rejected while billing is past due. Requires the organization owner.

## Request body

- object
  - `plan` 'pro', required
  - `interval` 'monthly' | 'annual', required
  - `organizationId` string, required
  - `aiCreditTier` 1000 | 2000 | 4000 | 8000 | 12000 | 20000 | 30000 | 40000 | 50000 | 75000 | 100000
  - `successUrl` string
  - `idempotencyKey` string

## Response `200`

Price projection for the plan change.

- object: Read-only price projection. Nothing is charged or changed.
  - `total` number, nullable, required: Total amount due now; `null` when the provider does not return one.
  - `currency` string, nullable, required: ISO currency code, e.g. `usd`.
  - `lineItems` object[], required: Itemized charges that make up the total.
    - `title` string: Line item title.
    - `description` string: Line item detail text.
    - `amount` number: Line item amount.
    - `quantity` number: Line item quantity.

## Other responses

- `400`: Validation failed. The response `message` names the first invalid field.
- `401`: Missing, invalid, expired, or revoked API key.
- `403`: The authenticated principal lacks the required capability.
- `404`: The resource does not exist or is outside the principal’s access scope.
- `429`: Rate limit exceeded. Retry after the number of seconds in the `Retry-After` header.

---

[API](https://skmtc.dev/cactal/apis/cactal-api.md) · [All operations](https://skmtc.dev/cactal/apis/cactal-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cactal/apis/cactal-api/revisions/9cd0fb5eacdd?raw)
