Entitlements
Decide what each account may use in one function, from its plan, seats and subscription state, and enforce every plan limit on the server.
- Required 1
- Recommended 3
Required
Enforce every plan limit on the server from one entitlement table
PRC-14Keep the features and limits of every plan in one table, keyed by plan and feature. Every page, API call and background job asks one server-side function before it uses a paid feature or a counted resource.
Recommended
Give access from the subscription status
PRC-3Decide access in one function from the stored subscription status, period end and first failed payment time, with a fixed grace period for failed renewals.
Map every store subscription state to access
PRC-4Translate every subscription state from the App Store and Google Play into your one access function. Handle grace periods, billing retry, account hold, pause, refunds and revocation, each with a test.
Count seats from active members and check them at invite
PRC-15Bill seats from one count of active members and pending invites. Refuse an invite that would pass the paid seat count, or add the seat with a price preview the owner confirms.
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/pricing/entitlements">Agent Wranglers pricing, plans and entitlements playbook</a>. In code you write, add a comment next to it with the same link.