Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
ID which you provided when creating the customer
ID of the feature to check access to. Required if product_id is not provided.
If using entity balances (eg, seats), the entity ID to check access for.
Properties used if customer is automatically created. Will also update if the name or email is not already set.
If you know the amount of the feature the end user is consuming in advance. If their balance is below this quantity, allowed will be false.
If true, a usage event will be recorded together with checking access. The required_balance field will be used as the usage value.
If true, the response will include a preview object, which can be used to display information such as a paywall or upgrade confirmation.
Response
Whether the customer has access to the feature
Code describing the result of the check
ID of the customer
ID of the feature
ID of the entity
Balance of the feature the customer is required to have.
The billing interval (e.g., 'month', 'year') or 'multiple' if the feature has different intervals across subscriptions
lifetime, minute, hour, day, week, month, quarter, semi_annual, year The number of intervals between usage resets
Whether the feature has unlimited usage with no restrictions or limits
The remaining available balance across all subscriptions for this feature (or all time for allocated features)
The total cumulative usage consumed in the current cycle across all subscriptions (or all time for allocated features)
The total amount of usage included in the customer's plan(s) for this feature
Unix timestamp (in milliseconds) when the usage counter will reset for the next cycle
Whether the customer can continue using the feature beyond the included usage. If false, access is blocked when limit is reached
Detailed breakdown by interval for features with multiple intervals
If this feature has a price, the usage limit indicates the maximum amount of usage the customer can use of this feature.

