Overview
Features in FlexPrice define capabilities that can be included in plans and controlled through entitlements. They enable feature flagging, usage limits, and access control based on what customers have purchased.Feature Types
FlexPrice supports three types of features, each serving different use cases:Metered
Track quantitative usage with limits
Boolean
Simple on/off feature flags
Static
Fixed quota or allowance
Metered Features
Metered features track actual consumption and compare it against configured limits.Metered Feature
- Requires
meter_idto link to usage tracking - Supports alert thresholds (e.g., notify at 75% and 90% of limit)
- Units displayed in UI (“1,000 calls” vs “1,000 API Calls”)
- Usage resets based on billing period
- API request limits
- Storage quotas
- Compute hours
- Email sends
- Team member seats (if metered)
Boolean Features
Simple on/off toggles for capabilities.Boolean Feature
- No meter required
- No quantity tracking
- Binary access (enabled/disabled)
- Premium feature access (SSO, advanced analytics)
- Integrations (Salesforce, Slack)
- Priority support
- Custom branding
Static Features
Fixed allowances that don’t track real-time usage.Static Feature
- No real-time tracking via meters
- Fixed quota defined in entitlement
- Manual enforcement (your application checks the limit)
- Project limits
- Workspace counts
- Maximum team size
- Template libraries
Feature Structure
Core Fields
Unique identifier for the feature (max 50 characters)
Display name of the feature (max 255 characters)
Unique human-readable identifier for API lookups (max 255 characters)
Feature type:
metered, boolean, or staticDetailed description of what the feature provides
ID of the meter tracking this feature’s usage (required for
metered type)Singular form of the unit (e.g., “call”, “GB”, “user”)
Plural form of the unit (e.g., “calls”, “GB”, “users”)
Custom key-value pairs for additional feature information
Alert Settings
For metered features, configure usage alerts:Alert Configuration
Percentage of limit to trigger critical alert (0-100)
Whether critical alerts are active
Percentage of limit to trigger informational alert (0-100)
Whether info alerts are active
Alert thresholds trigger notifications when usage reaches the specified percentage. For example, with a 10,000 call limit and 75% threshold, an alert fires at 7,500 calls.
Features and Entitlements
Features define what exists. Entitlements define who has access and how much.- Feature Definition
- Plan Entitlements
- Access Check
Feature Gating Patterns
Hard Limits (Enforce)
Hard Limits (Enforce)
Prevent actions when limit is reached.When to Use:
- Resource limits (storage, API calls)
- Security/compliance constraints
- Infrastructure capacity
Soft Limits (Warn)
Soft Limits (Warn)
Allow usage but notify the customer.When to Use:
- Encouraging upgrades
- Non-critical limits
- Grace periods
Feature Toggle
Feature Toggle
Enable/disable functionality based on plan.When to Use:
- Premium features
- Optional integrations
- UI customization
Tiered Access
Tiered Access
Different plans get different levels of the same feature.When to Use:
- Scaling limits across plans
- Capacity-based pricing
- Freemium models
Alert Workflows
When usage crosses thresholds:Best Practices
Clear Naming
Use names that match your product UI:
- Good: “API Requests”, “Team Members”, “Storage”
- Avoid: “Feature 1”, “Limit A”, “Quota X”
Set Meaningful Units
Define singular and plural forms:Displays as “1 project” or “5 projects” in UI.
Use Metadata
Categorize and tag features:
Configure Alerts Wisely
Set thresholds that give users time to act:
- Info: 75% (“heads up”)
- Critical: 90% (“take action soon”)
- Consider 95% or 100% for final warnings
Boolean Features: Don’t track usage or require meters. Simply check
has_access in entitlements.Example Scenarios
Related Resources
Entitlements
How features are granted to customers
Meters
Track usage for metered features
Plans
Package features into sellable plans
Events
Send usage data for feature tracking