> 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.

# Orders and contracts

> Keep your catalog separate from the deals you sign, record each negotiated term in the right place, and change a running deal without rewriting its history.

Paid separates **what you sell** from **what each customer agreed to**. Your catalog of products, prices, rate cards and plans is the same for everyone and bills no one. An [order](/orders-and-billing/orders) is a deal with one customer: which prices they pay, from when to when, and on what terms. Nothing is billed until an order puts it on a customer and you activate it.

Understand orders and contracts to:

* **Model a deal** from your catalog, with its negotiated terms alongside it.
* **Decide where each term lives**: a discount, a minimum, a prepayment or a custom rate.
* **Change a running deal** safely, and always be able to explain a past invoice.

## Catalog and deals

|            | Catalog                                                                                                              | Deal                                                                                                                                                                                                  |
| ---------- | -------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Objects    | [Products](/catalog/products), [prices](/catalog/prices), [rate cards](/catalog/rate-cards), [plans](/catalog/plans) | [Orders](/orders-and-billing/orders), [negotiated pricing](/core-concepts/introduction-to-pricing#how-one-line-is-priced), [commits](/orders-and-billing/commits), [seats](/orders-and-billing/seats) |
| Belongs to | Your account                                                                                                         | One customer                                                                                                                                                                                          |
| Bills      | Nothing on its own                                                                                                   | What its lines, negotiated pricing and commits say, every billing cycle                                                                                                                               |
| Changes by | Creating new prices or rate card versions                                                                            | [Amendments](/orders-and-billing/amending-orders)                                                                                                                                                     |

An order holds **lines**, each pointing at a price or rate card, and sets the term (`startsAt` to the exclusive `endsAt`) and the `billingCycle`. Self-serve products usually build orders from a plan in one step. Sales-led deals usually put prices on the order directly, with the negotiated terms sent alongside.

## Where a negotiated term lives

| The deal says                                         | Record it as                                                                                                                                    | Applies                                                          |
| ----------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| "15% off the platform fee"                            | A percentage `discount` in the order's [negotiated pricing](/core-concepts/introduction-to-pricing#how-one-line-is-priced), targeting the price | To this order, for the dates you set                             |
| "\$0.30 a page instead of \$0.40"                     | A `contractedPrice` in the order's negotiated pricing                                                                                           | Without creating a price just for this customer                  |
| "Spend at least \$120,000 this year"                  | An `invoicedMinimum` [commit](/orders-and-billing/commits)                                                                                      | A true-up line when spend falls short                            |
| "Pay \$50,000 upfront and draw it down"               | A `prepaid` commit, or [credits](/core-concepts/money-and-credits#prepaying-and-committing)                                                     | Usage draws the prepayment down before anything else is invoiced |
| "25 seats, up to 50"                                  | A seat price with `quantity` and `quantityLimits` on the order line                                                                             | Each billing cycle                                               |
| "Invoices to the parent company, Net 45, on PO-88213" | `billTo`, `paymentTerms` and `purchaseOrderNumber` on the order                                                                                 | Every invoice the order produces                                 |

Negotiated pricing and commits sent with the order are created with it, so they exist before its first invoice.

## History is never rewritten

Every amount on every invoice can be traced back to what produced it, because nothing that billed is ever edited in place:

* **Prices don't change.** To change a rate, you create a new price, or a new [rate card](/catalog/rate-cards) version. Each order line keeps the rate card version it pinned until a migration moves it to the new one.
* **Meters don't change** what they measure. To bill something else, you create a new meter.
* **An active order changes only through an amendment.** You preview the exact proration first, then apply exactly what you previewed. Ended lines stay on the order.
* **Issued invoices don't change.** Usage that arrives late is added to the next invoice as an adjustment.

Labels are the exception. You can update a `name` or `displayName` at any time, and the new label applies to invoices issued afterwards.

## The life of an order

| `status`     | What happens                                                         |
| ------------ | -------------------------------------------------------------------- |
| `draft`      | Editable, and bills nothing. Build and check the deal here.          |
| `activating` | Activated, and waiting for billing to confirm.                       |
| `active`     | Billing on its cycle. It changes only through amendments.            |
| `paused`     | Not invoicing. Usage is still recorded and invoiced when it resumes. |
| `ended`      | Past its `endsAt`, after a final invoice for its last cycle's usage. |

A customer can have several active orders, but no two can price the same meter over the same dates, so no usage is ever billed twice.

## How it bills

A Lucerne subscriber on the Base plan, at \$8.00 a month, upgrades to Pro, at \$20.00 a month, on 16 November. The order is amended with a `changePlan` change, prorated by day. November has 30 days, and 16 to 30 November is 15 days including the day of the change:

| Step              | Value                             |
| ----------------- | --------------------------------- |
| Base fee credited | −800¢ × 15 ÷ 30 = −400¢           |
| Pro fee charged   | 2,000¢ × 15 ÷ 30 = 1,000¢         |
| Net proration     | 1,000¢ − 400¢ = 600¢ = **\$6.00** |

The Base lines stay on the order, ended on 16 November, so the order still shows what the subscriber was billed before the change.

## Related

* [Orders](/orders-and-billing/orders)
* [Amend an order](/orders-and-billing/amending-orders)
* [Commits](/orders-and-billing/commits)
* [Introduction to pricing](/core-concepts/introduction-to-pricing)
* [Orders API reference](../api-reference/billing/orders/create)