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 on a held item takes
tiersinstead of oneunitAmountCents. See Seat tiers. -
Overage: a plan’s credit overage, or a metered item’s, takes
overageTiersinstead of one rate, priced on the period’s total. See 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.
Seat tiers
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.
[{ "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, socheck and track answer as for any limit. 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.
Response
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.
Overage tiers
Overage can be priced in bands of the period’s total instead of one rate. PutoverageTiers 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:
included and overageUnitAmountCents:
- 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 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 itcreditCostTiers, graduated bands of uses, each with its own creditCost:
ledger.catalog.json
Rules
Seat tier rules
- Send
unitAmountCentsortiers, one of the two.tiersModegoes withtiers. - 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), eachupToabove the one before (tiers_not_ascending), and the lastupTo: 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.
Overage tier rules
- Bands count billing units. Each
upTocountsoverageBillingUnits(default 1), inclusive. - Bands ascend and end unbounded, as for seat tiers (
tiers_empty,tiers_not_ascending,tiers_last_must_be_unbounded). overageUnitAmountCentsis the first band’s rate. Send it equal to the first band’sunitAmountCents; the catalog refuses a mismatch.overageTiersModegoes withoverageTiers.- A change is a new version. New tiers publish a new plan version; current subscribers keep the tiers they signed up on.
Credit cost tier rules
- Credits features only. Metered, held, boolean and AI features refuse
creditCostTiers. creditCostis the first band’s cost. Send it equal to the first band’screditCost.- Bands ascend and end unbounded, as for seat tiers. Each
upTocounts uses in the period, inclusive. - Graduated. Each use is charged at the band it falls in.
Related
- Per-seat pricing: one price per seat, proration and plan changes.
- Limits: adding and removing seats.
- Overage: caps, billing and the rules overage tiers build on.