Entitlement

Also called plan limits

Definition

What a customer's plan allows them to use: how many seats and projects, and which features. The app checks entitlements before letting anyone go past them.

On this page

Entitlements turn a plan's promises into rules the product enforces.

What they cover

  • Limits, such as how many seats (people) or projects an account can have.
  • Features, such as API access or the audit log, that only some plans include.

In the starter

Each plan's entitlements live in one file, packages/contracts/src/billing.ts, which both the server and the app read. Seats and projects are numbers, where no number means no limit, and features are a list. In the example plans, Free has 1 seat and 3 projects, Pro has 5 seats, 25 projects and API access, and Team adds priority support and the audit log, billed per seat.

The server checks entitlements on every request that needs them, so a limit can't be skipped by changing the page. When a plan changes, Stripe tells the app and the new entitlements apply.

Filed underPricing

Sam Rivera

Founder

Sam builds and runs the product, and answers the questions customers ask before they buy. Ten years of shipping subscription software, most of it the unglamorous parts: billing, sign-in and the pages that sell.