Overview
When you create an offering in Metrifox, you define which features customers can access based on their plan or add-ons. Use theCheckAccess method to verify whether a customer is entitled to a specific feature. This lets you:
- Grant access
- Block usage
- Prompt for upgrade
- Bill for overage
Checking Metered Features
Before a customer uses a metered feature, you can check:- Whether they’re allowed to use it
- How much usage they’ve already consumed
CheckAccess method to see if the customer has any remaining quota. If they do:
- Allow the image generation
-
Record the usage event so Metrifox can update their balance.
SDK available in
Javascript | Ruby | cURL | Python | PHP | Go | Java
If a customer’s payment fails, by default, Metrifox will block access to the feature.
Checking Boolean Feature Access
Use theCheckAccess method to verify if a customer should have access to a feature.
