> This page is for version Preview (default).
> For other versions, use one of these documentation indexes:
> - Preview (default): https://docs.preview.paid.ai/preview/llms.txt
> - Current: https://docs.preview.paid.ai/current/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.preview.paid.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.preview.paid.ai/_mcp/server.

# Plans

> Package prices and rate cards into named plans, rank them on an upgrade path, and create or change a customer's order in one step.

A **plan** is a named set of prices and rate cards sold together, such as "Base" and "Pro". You rank plans on an upgrade path, create an order from a plan in one step, and move a customer to another plan with one amendment. A plan only references prices and rate cards, never copies them, so a plan, the orders built from it and your catalog can't drift apart.

Use a plan to:

* **Offer self-serve packages** that customers choose between, ranked on an [upgrade path](#rank-plans-on-an-upgrade-path).
* **Create orders in one step** by sending `plan` instead of `lines` when you [create an order](/orders-and-billing/orders).
* **Move customers up or down** with a `changePlan` [amendment](/orders-and-billing/amending-orders), previewed with its exact cost.

Sales-led businesses can skip plans and put prices on orders directly.

Plans are in the `plans=v1` private beta: send `Paid-Beta: plans=v1` with each request.

## How a plan works

1. **Lines reference your catalog.** Each line is a [price](/catalog/prices), with an optional default quantity, or a [rate card](/catalog/rate-cards). Lines can come from several products.
2. **An upgrade path ranks plans.** Plans in the same `group` are ordered by `position`, 1 lowest.
3. **An order built from a plan gets ordinary lines.** Paid adds the plan's lines to the order and records the plan and its `version`.
4. **A plan change swaps the plan's lines.** Lines on both plans keep running; the rest end or start.

## Create a plan

Lucerne sells a chat app on monthly plans. Its Base plan charges \$8.00 a month through a recurring price, `prc_2Tg7Mx`, and charges for output tokens through a usage price, `prc_8Lw4Tz`. Both prices already exist on its chat app product.

#### API

[Create a plan](../api-reference/catalog/plans/create) with its lines and its place on the upgrade path:

**`POST /v1/plans`**

```json title="POST /v1/plans"
{
  "externalId": "base_monthly",
  "name": "Base",
  "description": "Chat with everyday models, billed monthly.",
  "displayName": "Lucerne Base",
  "lines": [
    { "type": "price", "price": { "price": "prc_2Tg7Mx" } },
    { "type": "price", "price": { "price": "prc_8Lw4Tz" } }
  ],
  "upgradePath": { "group": "lucerne_monthly", "position": 1 },
  "default": true
}
```

**`Response`**

```json title="Response"
{
  "id": "plan_3Kd8Wn",
  "object": "plan",
  "livemode": false,
  "externalId": "base_monthly",
  "name": "Base",
  "description": "Chat with everyday models, billed monthly.",
  "displayName": "Lucerne Base",
  "lines": [
    { "type": "price", "price": { "price": "prc_2Tg7Mx", "quantity": null } },
    { "type": "price", "price": { "price": "prc_8Lw4Tz", "quantity": null } }
  ],
  "products": ["prod_6Ch4Tr"],
  "currencies": ["usd"],
  "upgradePath": { "group": "lucerne_monthly", "position": 1 },
  "default": true,
  "version": 1,
  "legacy": null,
  "metadata": {},
  "createdAt": "2026-11-01T09:00:00Z",
  "updatedAt": "2026-11-01T09:00:00Z",
  "archivedAt": null
}
```

#### Dashboard

> **Draft**
>
> These steps describe the planned v1 dashboard and will change before release.

1. Go to **Configure > Plans** and click **Create plan**.
2. Enter the **Name** (`Base`), an **External ID** and the **Display name**.
3. Under **Lines**, add the monthly fee and the output token price.
4. Under **Upgrade path**, choose or create the group `lucerne_monthly`, set the position to 1, and mark the plan as the default.
5. Click **Create plan**.

Every line must be active, and the lines must share at least one currency. The response adds what Paid works out from the lines:

| Field        | What it tells you                                                                                                              |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------ |
| `products`   | The products the plan's lines belong to.                                                                                       |
| `currencies` | The currencies every line is offered in. An order from the plan must be in one of them.                                        |
| `version`    | Goes up by one each time `lines` change. Orders record the version they were built from.                                       |
| `legacy`     | Set only on a plan converted from the legacy API that couldn't be mapped to v1 prices. Such a plan can't be used on v1 orders. |

### Quantities and labels

A price line's `quantity` is the default for a price with a unit, such as 5 seats, within the price's quantity limits. An order can change it. Leave it out for a flat fee or a usage price.

`displayName` is used only when the plan has exactly one recurring price, as Base does: that line prints "Lucerne Base" on invoices, unless the order line has its own label. With several recurring prices, each line keeps its price's label, so the plan's name isn't printed twice. Usage and rate card lines always keep their own label.

## Rank plans on an upgrade path

`upgradePath` places a plan in a `group` at a `position`, starting at 1. Positions are unique within a group. Lucerne creates its Pro plan, \$20.00 a month through `prc_5Vb3Nk` with the same output token price, in the same group at position 2:

**`POST /v1/plans`**

```json title="POST /v1/plans"
{
  "externalId": "pro_monthly",
  "name": "Pro",
  "displayName": "Lucerne Pro",
  "lines": [
    { "type": "price", "price": { "price": "prc_5Vb3Nk" } },
    { "type": "price", "price": { "price": "prc_8Lw4Tz" } }
  ],
  "upgradePath": { "group": "lucerne_monthly", "position": 2 }
}
```

`default: true` marks the plan offered first in its group, such as the one preselected in checkout. It needs an `upgradePath`, and replaces the group's previous default. Use separate groups for separate ladders, such as monthly and annual plans.

[List plans](../api-reference/catalog/plans/list) with `group=lucerne_monthly` to get them in order of `position`.

## Sell a plan

[Create an order](/orders-and-billing/orders) with `plan` instead of `lines`:

**`POST /v1/orders`**

```json title="POST /v1/orders"
{
  "customer": "cus_3Mt8Qe",
  "startsAt": "2026-11-01T00:00:00Z",
  "plan": { "plan": "base_monthly" }
}
```

Paid adds the plan's lines to the order and records `plan` and `version` on it. `plan.quantities` replaces a line's default quantity, keyed by price. Any `lines` you send as well are added beside the plan's, and a plan change never touches them.

## Change a customer's plan

[Preview an amendment](/orders-and-billing/amending-orders) with a `changePlan` change. It ends every line that came from the current plan and adds the new plan's lines:

**`POST /v1/orders/ord_7Rw2Kd/amendments/preview`**

```json title="POST /v1/orders/ord_7Rw2Kd/amendments/preview"
{
  "expectedVersion": 1,
  "changes": [
    { "type": "changePlan", "changePlan": { "plan": "pro_monthly" } }
  ],
  "proration": "prorate"
}
```

* A price or rate card on both plans keeps its line, so its usage and seats are untouched.
* `quantities` sets the new lines' quantities, keyed by price. With `carryQuantities`, `true` by default, a new line whose price has the same unit as an ended one, such as seats, keeps its quantity.
* The preview's `direction` says whether the move is an `upgrade`, `downgrade` or `lateral`, from the plans' positions. Plans on different upgrade paths are `lateral`.

The change takes effect when you apply the preview. Usage before then bills at the old plan's prices, and usage after it at the new plan's.

## How it bills

A Lucerne subscriber on Base, billed monthly from 1 November, upgrades to Pro on 16 November. November has 30 days, and 16 to 30 November is 15 days including the day of the change. With `proration: "prorate"`, the fixed fees are credited and charged by day:

| Step                    | Value                                                                                    |
| ----------------------- | ---------------------------------------------------------------------------------------- |
| Days left in the period | 15 of 30                                                                                 |
| Base fee credited       | −800¢ × 15 ÷ 30 = −400¢                                                                  |
| Pro fee charged         | 2,000¢ × 15 ÷ 30 = 1,000¢                                                                |
| Net proration           | 1,000¢ − 400¢ = 600¢                                                                     |
| Preview                 | `direction: "upgrade"`, net **+\$6.00**                                                  |
| Output token price      | On both plans, so its line keeps running: November's tokens are billed once, on one line |

From December, the subscriber's invoice shows "Lucerne Pro" at \$20.00 a month.

## Change or archive a plan

[Update a plan](../api-reference/catalog/plans/update) with only the fields to change. A change to `lines` creates a new `version`; a change to `displayName` applies to invoices issued afterwards.

[Archive a plan](../api-reference/catalog/plans/archive) to stop selling it. It can't be put on new orders or chosen in a plan change, and running orders keep their lines. An archived plan can't be restored: create a new one instead.

A price can't be archived while an active plan lists it. Update the plan first.

## Related

* [Prices](/catalog/prices)
* [Orders](/orders-and-billing/orders)
* [Amend an order](/orders-and-billing/amending-orders)
* [Plans API reference](../api-reference/catalog/plans/create)