> ## Documentation Index
> Fetch the complete documentation index at: https://docs.integrateledger.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Per-seat pricing

> Charge per seat, with free seats included, billed in advance and prorated automatically as the team grows or shrinks.

> **Team:** $49 a month with 3 seats included, then $10 a seat.

Charge per seat, with seats included free and every change prorated, while your app only tracks who joins and leaves.

A [held feature](https://docs.integrateledger.com/pricing/limits.md) such as seats can carry a price per unit held. The plan then bills each period for the seats the customer holds, beside its own price, and Stripe prorates a change within the period. Your integration is the same as for a limit: track an add when a member joins and a remove when one leaves.

## The catalog

```ts ledger.config.ts theme={"system"}
import { defineCatalog, feature, plan } from "integrateledger-cli";

export default defineCatalog({
	features: [feature({ id: "seats", name: "Seats", type: "held" })],
	plans: [
		plan({
			id: "team",
			name: "Team",
			monthlyCredits: 0,
			priceCents: 4900,
			items: [
				{
					featureId: "seats",
					unlimited: true,
					price: { model: "per_unit", unitAmountCents: 1000, includedQuantity: 3 },
				},
			],
		}),
	],
	creditPacks: [],
});
```

```json ledger.catalog.json theme={"system"}
{
  "schemaVersion": 1,
  "features": [{ "id": "seats", "name": "Seats", "type": "held" }],
  "plans": [
    { "id": "team", "name": "Team", "monthlyCredits": 0, "priceCents": 4900,
      "items": [{ "featureId": "seats", "unlimited": true,
        "price": { "model": "per_unit", "unitAmountCents": 1000, "includedQuantity": 3 } }] }
  ],
  "addOns": []
}
```

* `price.model` is `per_unit`: billed per unit held, in advance, at the plan's billing interval. To bill what was held over the month instead, in arrears, use [`measured`](https://docs.integrateledger.com/pricing/storage).
* `unitAmountCents` is the price per seat per billing interval: a month on a monthly plan, a year on an [annual](https://docs.integrateledger.com/pricing/annual.md) one. For prices that change with the count, use `tiers` instead ([Tiered pricing](https://docs.integrateledger.com/pricing/tiers.md)).
* `includedQuantity` is how many seats are free (default 0).
* `included` (or `unlimited: true`) is still the most seats the customer may hold. `included: 20` caps the team at 20; an add past it is refused with `limit_reached`.

A $0 plan with only a seat price ("$12 a seat, no base fee") bills through Stripe like any paid plan, rather than as a [free plan](https://docs.integrateledger.com/pricing/free-plans.md).

## Changing the count

Seats are a held count: `track` with `quantity: 1` adds one, `quantity: -1` removes one, and `count` sets it outright. [Limits](https://docs.integrateledger.com/pricing/limits.md#add-remove-and-set-the-count) has the calls. The new count is usable at once. Ledger then moves the Stripe subscription's seat item to it from its own queue, so `track` never waits on Stripe. The change is prorated from the moment it was made, however late Stripe hears of it.

`price.proration` decides what a change bills:

| | Default | Other |
| - | - | - |
| `onIncrease` | `next_invoice`: the unused share of the period for the new seat, on the next invoice | `charge_now`: invoiced and charged at once. `none`: billed from the next period |
| `onDecrease` | `next_invoice`: the unused share credited on the next invoice | `none`: no credit; the next period bills the lower count |

```json theme={"system"}
"price": { "model": "per_unit", "unitAmountCents": 1000, "includedQuantity": 3,
  "proration": { "onIncrease": "charge_now", "onDecrease": "none" } }
```

Adding a seat and removing it again in the same period with the defaults nets to about zero.

## What check, track and the customer API return

`check` and `track` answer as for any [held feature](https://docs.integrateledger.com/pricing/limits.md#what-check-and-track-return): `balance.used` is the seats held. `GET /v1/customers?customerId=` adds a `billing` object to a priced held feature:

```json Response theme={"system"}
{
  "featureId": "seats",
  "type": "held",
  "unlimited": true,
  "balance": { "included": null, "used": 5, "remaining": null, "overageAllowed": false, "resetsAt": null },
  "billing": { "unitAmountCents": 1000, "includedQuantity": 3, "quantity": 5, "billedQuantity": 2, "nextChargeCents": 1000 }
}
```

* `quantity` is the count held, and `billedQuantity` how many are billed past the free ones.
* `nextChargeCents` is what one more seat adds to each period's bill: 0 while it's still free. Show it on an "Add member" button.
* `unitAmountCents` is `null` when tiers price the seats.

## Rules

* **Seat prices go on held items.** A held item's `price` takes `unitAmountCents` or `tiers`, one of the two; metered, credits and boolean items take no `price`.
* **On the invoice.** Each invoice has the plan's own line and the seat lines for the count. Free seats are a $0 first band of the seat's Stripe Price, so 5 seats with 3 free show as two lines, 3 at $0 and 2 at \$10. Prorations appear as their own lines. [Invoices and Stripe](https://docs.integrateledger.com/concepts/invoices-and-stripe.md) shows them.
* **Upgrades** carry the count to the new plan's seat price, billed in full on the upgrade invoice with the new plan.
* **Immediate downgrades** move the seats to the cheaper plan's seat price, at the same count.
* **Downgrade a seat plan immediately.** A period-end downgrade of a plan with seats returns `400 seat_plan_downgrade_now_only`. To switch at the period end, cancel at the period end and attach the cheaper plan. [Upgrades and downgrades](https://docs.integrateledger.com/billing/upgrades-and-downgrades.md) has the rest.
* **Seat prices recur.** They go on monthly and annual plans; a one-off plan refuses them (`one_off_plan_cannot_bill_later`).
* **A price change is a new version.** Changing the seat price publishes a new [plan version](https://docs.integrateledger.com/billing/plan-versions.md).

## Related

* [Tiered pricing](https://docs.integrateledger.com/pricing/tiers.md): seat prices that fall with volume.
* [Limits](https://docs.integrateledger.com/pricing/limits.md): a held count without a price.
* [Annual plans](https://docs.integrateledger.com/pricing/annual.md): seats priced per year.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.