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

# Tiered pricing

> Give volume discounts on seats and overage, with graduated or volume bands where the unit price falls as customers grow.

> **Team:** first 5 seats free, $8 a seat for seats 6–20, $6 a seat after that.
>
> **Scale:** 10,000 credits a month, then 3 cents a credit for the next 4,000 and 2 cents after.
>
> **Images:** 2 credits each for the first 1,000 of the month, 1 credit after that.

Reward your biggest customers with prices that fall as they grow. Tiers price a count in bands, each with its own rate, and Ledger tiers three things:

* **Seats**: a [seat price](https://docs.integrateledger.com/pricing/per-seat.md) on a held item takes `tiers` instead of one `unitAmountCents`. See [Seat tiers](#seat-tiers).

* **Overage**: a plan's credit overage, or a metered item's, takes `overageTiers` instead of one rate, priced on the period's total. See [Overage tiers](#overage-tiers).

* **Credit cost per action**: a credits feature takes `creditCostTiers`, so each use costs fewer credits the more the customer uses it in a period. See [Credit cost tiers](#credit-cost-tiers).

Seat and overage tiers use the same bands and the same two modes, [graduated or volume](#graduated-or-volume).

## Seat tiers

```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: 0,
			items: [
				{
					featureId: "seats",
					unlimited: true,
					price: {
						model: "per_unit",
						tiersMode: "graduated",
						tiers: [
							{ upTo: 5, unitAmountCents: 0 },
							{ upTo: 20, unitAmountCents: 800 },
							{ upTo: null, unitAmountCents: 600 },
						],
					},
				},
			],
		}),
	],
	creditPacks: [],
});
```

```json ledger.catalog.json theme={"system"}
{
  "schemaVersion": 1,
  "features": [{ "id": "seats", "name": "Seats", "type": "held" }],
  "plans": [
    { "id": "team", "name": "Team", "monthlyCredits": 0, "priceCents": 0,
      "items": [{ "featureId": "seats", "unlimited": true,
        "price": { "model": "per_unit", "tiersMode": "graduated",
          "tiers": [
            { "upTo": 5, "unitAmountCents": 0 },
            { "upTo": 20, "unitAmountCents": 800 },
            { "upTo": null, "unitAmountCents": 600 }
          ] } }] }
  ],
  "addOns": []
}
```

Each tier's `upTo` is the band's last seat, inclusive. Tiers are ascending, and the last one has `upTo: null`, with no limit.

### Graduated or volume

`tiersMode` (seats) and `overageTiersMode` (overage) decide how a count is priced:

* **`graduated`** (the default): each band's seats at its own rate. 25 seats on the plan above cost 5 × $0 + 15 × $8 + 5 × $6 = $150 a month.
* **`volume`**: every seat at the rate of the band the count reaches. With the same tiers, 25 seats cost 25 × $6 = $150, and 20 seats cost 20 × $8 = $160.

Volume pricing can make a bigger team cheaper than a smaller one. With `[{ "upTo": 10, "unitAmountCents": 500 }, { "upTo": null, "unitAmountCents": 480 }]`, 11 seats cost $52.80 and 10 cost $50.00, so removing the 11th seat moves every seat back to the 1–10 rate.

### What the customer API returns

Seats are a held count, so `check` and `track` answer as for any [limit](https://docs.integrateledger.com/pricing/limits.md#what-check-and-track-return). `GET /v1/customers?customerId=` shows the seat `billing`, with `unitAmountCents: null` because tiers price the seats. `nextChargeCents` follows the tiers: what one more seat adds to each period's bill at the current count.

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

`billedQuantity` counts every seat held, since tiers have no `includedQuantity`; the free ones are the \$0 first band.

Stripe prices the seat item with the same tiers. On the invoice, a graduated seat item shows one line per band reached. Proration and plan changes work as for any [seat price](https://docs.integrateledger.com/pricing/per-seat.md#changing-the-count).

## Overage tiers

[Overage](https://docs.integrateledger.com/pricing/overage.md) can be priced in bands of the period's total instead of one rate. Put `overageTiers` on the plan for credit overage, or on a metered item for its units, with `overageTiersMode` `graduated` (the default) or `volume`. This Scale plan bills 3 cents a credit for the first 4,000 credits of overage each month and 2 cents after:

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

export default defineCatalog({
	features: [
		feature({ id: "generate_image", name: "Generate an image", creditCost: 1 }),
	],
	plans: [
		plan({
			id: "scale",
			name: "Scale",
			monthlyCredits: 10000,
			priceCents: 9900,
			overageUnitAmountCents: 3,
			overageTiersMode: "graduated",
			overageTiers: [
				{ upTo: 4000, unitAmountCents: 3 },
				{ upTo: null, unitAmountCents: 2 },
			],
		}),
	],
	creditPacks: [],
});
```

```json ledger.catalog.json theme={"system"}
{
  "schemaVersion": 1,
  "features": [
    { "id": "generate_image", "name": "Generate an image", "creditCost": 1 }
  ],
  "plans": [
    { "id": "scale", "name": "Scale", "monthlyCredits": 10000, "priceCents": 9900,
      "overageUnitAmountCents": 3, "overageTiersMode": "graduated",
      "overageTiers": [
        { "upTo": 4000, "unitAmountCents": 3 },
        { "upTo": null, "unitAmountCents": 2 }
      ] }
  ],
  "addOns": []
}
```

A metered item takes the same two fields beside its `included` and `overageUnitAmountCents`:

```json theme={"system"}
{ "featureId": "messages", "included": 500, "overageUnitAmountCents": 2,
  "overageTiers": [
    { "upTo": 1000, "unitAmountCents": 2 },
    { "upTo": null, "unitAmountCents": 1 }
  ] }
```

The bands price the period's whole overage, not each use:

* **Graduated** bills each band at its own rate, plus the flat fee of every band reached. 4,500 credits of overage on Scale cost 4,000 × 3 + 500 × 2 = \$130.
* **Volume** bills every unit at the rate of the band the total reaches, plus that band's flat fee. With the same bands, 4,500 credits cost 4,500 × 2 = \$90, so reaching a cheaper band lowers the period's total.

`check` and `track` answer as for any overage: `overageCredits` counts the period's credit overage and `overageRemainingCents` what's left under the cap at the tiered prices. The cap counts the period's cost at the band rates, so it holds at the rate each use is really billed at.

A band can take `flatAmountCents`, billed once in the period the total reaches that band. The renewal invoice bills one line per band reached, such as "Scale – overage, 4,500 credits (units 1–4,000)" and "(units 4,001 and up)", and a band's flat fee on its own line. A customer's [override](https://docs.integrateledger.com/customers/overrides.md) rate replaces the tiers with its one negotiated rate.

## Credit cost tiers

A credits feature's cost per use can fall with the customer's use count this period. Give it `creditCostTiers`, graduated bands of uses, each with its own `creditCost`:

```json ledger.catalog.json theme={"system"}
{ "id": "generate_image", "name": "Generate an image", "creditCost": 2,
  "creditCostTiers": [{ "upTo": 1000, "creditCost": 2 }, { "upTo": null, "creditCost": 1 }] }
```

Each use is charged at its own band, so the 1,001st image of the month costs 1 credit. The count starts again each allowance period, and check, track and reservations all price at the band each use reaches. [Credits](https://docs.integrateledger.com/pricing/credits.md#cheaper-at-volume) has the details.

## Rules

### Seat tier rules

* **Send `unitAmountCents` or `tiers`, one of the two.** `tiersMode` goes with `tiers`.
* **Free seats are a \$0 first band.** Use the first band rather than `includedQuantity`, which tiers refuse.
* **Bands ascend and end unbounded.** Send at least one band (`tiers_empty`), each `upTo` above the one before (`tiers_not_ascending`), and the last `upTo: null` (`tiers_last_must_be_unbounded`).
* **Seat bands price per seat.** Put a base fee in the plan's `priceCents`.
* **A change is a new version.** Changing the tiers or the mode publishes a new [plan version](https://docs.integrateledger.com/billing/plan-versions.md).

### Overage tier rules

* **Bands count billing units.** Each `upTo` counts `overageBillingUnits` (default 1), inclusive.
* **Bands ascend and end unbounded, as for seat tiers** (`tiers_empty`, `tiers_not_ascending`, `tiers_last_must_be_unbounded`).
* **`overageUnitAmountCents` is the first band's rate.** Send it equal to the first band's `unitAmountCents`; the catalog refuses a mismatch.
* **`overageTiersMode` goes with `overageTiers`.**
* **A change is a new version.** New tiers publish a new [plan version](https://docs.integrateledger.com/billing/plan-versions.md); current subscribers keep the tiers they signed up on.

### Credit cost tier rules

* **Credits features only.** Metered, held, boolean and AI features refuse `creditCostTiers`.
* **`creditCost` is the first band's cost.** Send it equal to the first band's `creditCost`.
* **Bands ascend and end unbounded, as for seat tiers.** Each `upTo` counts uses in the period, inclusive.
* **Graduated.** Each use is charged at the band it falls in.

## Related

* [Per-seat pricing](https://docs.integrateledger.com/pricing/per-seat.md): one price per seat, proration and plan changes.
* [Limits](https://docs.integrateledger.com/pricing/limits.md): adding and removing seats.
* [Overage](https://docs.integrateledger.com/pricing/overage.md): caps, billing and the rules overage tiers build on.


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