A pricing page may have three tiers. Your software rarely stays that simple. An enterprise customer negotiates an extra integration; a trial receives advanced reporting for 14 days; a legacy contract retains an older quota; and a customer upgrades halfway through a billing cycle. If product teams implement each exception as a new conditional in application code, pricing flexibility eventually becomes an engineering liability.
A SaaS feature entitlement architecture separates what an account has purchased or been granted from the code that delivers the capability. It provides one governed answer to questions such as: Can this organization export data? How many workspaces may it create? When does its trial end? What happens if payment fails? It also gives finance, sales, support and engineering a common language for commercial access.
Why plan-name checks fail
Consider an application that evaluates “if plan == enterprise” in its API, front end, background jobs and mobile app. That looks expedient until the enterprise tier changes, a professional-tier customer purchases an add-on, or a contract includes a negotiated limit. Each location may interpret the same plan differently. The result can be inconsistent interfaces, accidental access, rejected requests, billing disputes and risky deployments whenever pricing changes.
The underlying problem is coupling. A commercial package is a collection of entitlements, not an application-wide identity. An organization on the same named plan as another organization may have different contractual allowances. Design for those differences explicitly instead of encoding them as exceptions to a plan-name switch.
Five concepts that must stay distinct
A plan is a commercial bundle, such as Growth or Enterprise. A feature is a product capability, such as API access, SSO or advanced analytics. An entitlement is the account’s effective permission or allowance for that capability. A subscription is the commercial lifecycle record: active, trialing, canceled, past due and so on. Authorization is the separate decision about whether a particular user can act on a resource.
A tenant may be entitled to data export, while only its administrators are authorized to export. A feature flag may control a beta rollout, while the paid entitlement controls whether the customer is eligible at all. These are separate decisions. Treating an entitlement as a UI flag, or a billing status as a user role, creates security and support problems.

A practical reference architecture
Start with a catalog of stable feature keys: analytics.advanced, integrations.api, exports.scheduled and users.seats, for example. Each key should have a description, owner, value type and enforcement policy. Prefer immutable identifiers over marketing labels; names on the pricing page can change without breaking application checks.
Maintain versioned plan definitions that map each plan to capabilities and limits. Add subscription records for each tenant, with effective dates and provider references. Store add-ons, promotional grants and enterprise overrides as explicit records, including their source, approver, start date, end date and reason. Finally, resolve these inputs into an effective entitlement view that applications can query.
The resolution engine needs a documented precedence policy. For example, an explicit contractual override may take precedence over the current plan allowance; a purchased add-on may increase a numeric quota; a trial grant may expire independently of the subscription. There is no universally correct precedence order. Define one with product, finance and legal stakeholders, then test it with real contract scenarios.

A useful minimal data model includes:
- Feature catalog: feature_key, type, description, enforcement_mode, owner.
- Plan version: plan_id, version, effective_from, effective_to.
- Plan grant: plan_version, feature_key, enabled_or_limit.
- Tenant subscription: tenant_id, plan_version, status, period dates, billing reference.
- Adjustment: tenant_id, feature_key, grant_or_limit, source, priority, effective dates, approver.
- Entitlement snapshot: tenant_id, feature_key, resolved value, resolution version, evaluated_at.
Keep the commercial source of truth and the resolved access view distinguishable. A snapshot is useful for low-latency reads, but it should be reproducible from source records and should not become an unexplained second billing database.
Boolean, numeric and metered entitlements
Not every feature is an on/off switch. Boolean entitlements answer whether SSO is enabled. Numeric entitlements limit seats, projects or connected accounts. Metered entitlements allocate usage over a defined window, such as API calls per month. Some entitlements specify retention duration, concurrency, geographic availability or service level.
Define each limit’s unit and reset rule. “10,000 requests” is incomplete without specifying whether it is per organization, per API token, per calendar month or per billing cycle. Specify whether limits are hard, soft or overage-billable. A soft limit may permit a grace period with warnings; a hard limit must be enforced reliably at the appropriate backend boundary.
For concurrency-sensitive quotas, an entitlement lookup alone is insufficient. Two simultaneous requests can each observe one remaining seat and both succeed. Use transactional reservations, atomic counters or another concurrency-safe mechanism for resource creation and metered usage. Reconcile usage with authoritative events and provide customer-visible consumption figures where practical.
How requests should be enforced
A common access flow is: authenticate the actor; resolve tenant context; check user authorization; evaluate the tenant’s effective entitlement; enforce any quota atomically; execute the operation; and record the decision or usage event when needed. Backend enforcement is mandatory for paid capabilities. Frontend hiding improves usability but does not provide security.
A shared entitlement service can expose an API such as evaluate(tenant, feature, context) and return allowed, limit, current_usage, reason_code and valid_until. It should not reveal confidential commercial details to ordinary end users. Services may use a local SDK or bounded cache for performance, but all implementations should follow the same contract and semantics.
Decide deliberately between fail-open and fail-closed behavior. If the entitlement service is unavailable, granting premium exports by default may create financial or data risk; blocking a core workflow may cause a customer outage. Categorize features by risk, define a short-lived last-known-good policy where appropriate, and document maximum cache age. Log stale decisions and alert operators.

Billing integration is not entitlement enforcement
Payment platforms emit events for subscription changes, invoices, renewals, cancellations and failed payments. Those events should update commercial state, not be treated as unquestionable instructions to grant access. Verify webhook signatures, handle retries and out-of-order delivery, use idempotency keys, and periodically reconcile subscription records against the billing provider.
A webhook may arrive late or be duplicated. A refund does not necessarily mean immediate removal of every capability. A cancellation may remain effective through the paid period. Enterprise contracts may be invoiced outside the self-service billing system. Capture these policies in a subscription state machine, with explicit grace periods and effective dates, rather than relying on a single active/inactive boolean.

Trials, add-ons and enterprise exceptions
Trials should be modeled as expiring grants with a clear start, end and conversion policy. Do not rely on scheduled cleanup alone: the evaluation engine must check expiry at decision time. Add-ons should have their own effective periods and quantities. For enterprise exceptions, store the signed commercial basis and approval history, not an undocumented “special_customer” branch.
Design the downgrade experience before launch. If a customer moves from 20 projects to a tier allowing five, will existing projects become read-only, remain accessible but block new creation, or be archived? If a trial of advanced analytics expires, what happens to saved reports and scheduled jobs? Product, customer success and finance should agree on these behaviors. Surprising deletion or sudden loss of critical data is rarely a good default.
Governance and operational controls
Treat entitlements as a controlled product configuration system. Require peer review for catalog and resolution-policy changes; limit who can issue manual grants; log actor, reason, old value and new value; and set expiry on temporary exceptions. Provide a support console with read-only explanations of why a tenant received a particular decision, plus narrowly scoped adjustment workflows.
Monitor decision latency, evaluation errors, stale-cache rates, failed billing reconciliations, override counts, expired-but-active grants and denied operations by feature. Track revenue-related leakage cautiously: a mismatch between billed and entitled accounts is a signal for investigation, not automatically proven lost revenue. Ensure audit logs do not expose payment details or sensitive customer data unnecessarily.
Version changes are especially important. A plan’s commercial meaning should not silently change for existing contracts when the pricing team updates a landing page. Pin subscriptions to plan versions or define an explicit migration policy with customer communication and effective dates. Test entitlement snapshots before and after migrations.
A four-week implementation pilot
Week 1
Inventory every plan check in APIs, workers, web and mobile clients. Build a feature catalog, identify high-risk paid operations and collect representative pricing, trial and enterprise scenarios. Establish owners for the product policy and billing mappings.
Week 2
Implement a versioned catalog, entitlement resolver and read-only decision endpoint. Import a small sample of tenant contracts. Run the resolver in shadow mode beside existing logic and compare decisions without changing access.
Week 3
Integrate one high-value capability end to end. Enforce it on the server, instrument decision logs, test upgrades, downgrades, expired trials, concurrent quota usage, webhook duplication and service outages. Build a support-facing explanation view.
Week 4
Review mismatches with product and finance, set reliability targets, document exception approvals and plan the staged migration of remaining features. Roll out by tenant cohort with monitoring and rollback controls. Do not migrate every scattered check in a single release.
What executives should ask before approving the design
- Can product managers change a plan bundle without a full application release?
- Can support explain a customer’s access without reading code?
- Can finance reconcile invoices with granted capabilities?
- Can security prove that UI controls are not the only enforcement layer?
- Can engineering reproduce a historical entitlement decision?
- Can the system survive a billing webhook delay without losing or improperly granting access?
Useful acceptance measures include percentage of paid features with server-side enforcement, decision consistency across services, time to implement a new tier, unexplained entitlement mismatches, expired overrides, quota accuracy and mean time to resolve access disputes. Set baselines before claiming improvements.

Build versus buy
A managed entitlement platform may accelerate catalog administration, SDK integration and audit workflows. A custom service may be appropriate when contracts, usage policies or infrastructure constraints are unusual. Evaluate both against your billing system, tenancy model, authorization framework, expected request volume, audit requirements, deployment controls and exit strategy. The hard part is often defining consistent commercial policy, not writing the lookup endpoint.
For teams building tailored SaaS platforms, Actiknow’s custom web application and integration services provide a relevant starting point for discussing the architecture, billing interfaces and operational workflows that surround entitlement management.
Frequently asked questions
1. Are feature entitlements the same as feature flags?
No. Entitlements represent durable customer access or allowances; feature flags commonly manage rollout or experimentation. A flag system can support entitlements if it provides the necessary persistence, auditability and policy controls.
2. Should the application check the billing provider on every request?
Usually not. Maintain synchronized commercial state and evaluate a low-latency local or centralized entitlement view. Reconcile regularly with the billing provider.
3. Can the frontend enforce pricing tiers?
It can guide the interface, but backend enforcement is required for protected capabilities, API access and quotas.
4. How should enterprise contract exceptions be handled?
Use dated, approved adjustments with a clear precedence policy and audit trail rather than tenant-specific branches in code.
5. What happens when a trial expires?
The resolver should stop applying its grant at the specified time. The product must define how existing data, jobs and configurations behave after expiry.
6. How do we avoid quota race conditions?
Use atomic reservations or transactional usage updates where concurrent requests can consume the same allowance.
7. What if the entitlement service goes down?
Apply a documented risk-based fallback, such as bounded last-known-good decisions for selected capabilities, with monitoring and expiry.
Yes. Account-level eligibility does not mean every user within the account may perform the action.
9. How should we test a pricing change?
Use versioned plan fixtures, contract scenarios, shadow comparisons, downgrade tests and controlled tenant rollouts.
10. When should a SaaS company centralize entitlements?
Before plan exceptions and add-ons become difficult to reason about. Repeated plan-name checks across multiple services are a strong warning sign.
Conclusion
Pricing flexibility should be a product capability, not a recurring engineering emergency. A governed entitlement catalog, explicit precedence rules, secure backend enforcement, reliable billing synchronization and auditable exceptions allow SaaS businesses to evolve commercial offerings without turning every pricing change into a codebase-wide rewrite.
If your product is approaching that complexity, discuss the requirements with Actiknow through its contact page. Start with an inventory of current plan checks, contract exceptions and the highest-risk capabilities before choosing a platform or committing to a rewrite.

