When integrating entitlements into your application, it’s important to follow a consistent flow to ensure accurate access control and correct usage tracking.
Always begin by verifying the customer’s entitlement before performing any feature-specific logic. This ensures decisions are based on the latest configuration, limits, and usage.
If the customer has access and the entitlement check passes, allow the feature to run. This may include enabling UI elements, unlocking functionality, or continuing the request flow.
If the feature involves creating or allocating resources, such as environments, seats, or storage, provision them only after confirming access. This prevents unintended overuse or misconfiguration.
For metered or calculated usage features, report consumption back to Stigg after the operation completes. This keeps usage counters accurate, triggers soft or hard limits at the correct time, and ensures pricing and packaging logic stays in sync with actual behavior.