Business: SSO, audit log and priority support. Not on Free or Pro.Put premium features like SSO and an audit log on the plans that pay for them, and gate access with one
check. A boolean feature is on for every plan that lists it, with no count to track and no cost per use.
The catalog
What check returns
Check whenever you need to know, such as before showing the SSO settings page:Response
allowed: false, your cue to show the upgrade, with reason: "feature_not_in_plan" and plan: { "id": "pro", "name": "Pro", "status": "active" }, and a customer with no plan gets reason: "no_plan".
Rules
- A boolean item takes
featureIdalone, with noincludedorunlimited. - Tracking is optional. A
trackon a boolean feature records a usage event and charges nothing, so track only if you want usage history. It takes noquantity. - Follows the plan. The flag is on for as long as the customer’s current plan lists it. On an upgrade it turns on with the new plan; on a downgrade or cancellation it turns off when the plan ends.
- Check without
reserve. A boolean feature answerscheckdirectly;reserveon it returns400 reserve_not_supported. - Listing it is a new version. Adding or removing a boolean item publishes a new plan version, so current subscribers keep the features they bought.
Related
- Limits: a count instead of on or off.
- Metered allowances: a number of uses per period.
- Check and track: the order of refusals.