Request
The customer ID to check.
The feature slug to check.
Optional epoch-millisecond timestamp for a recent point-in-time check.
Response
Whether the feature is usable for the customer at the requested timestamp.
The feature slug that was checked.
Why the feature is not usable. Omitted when allowed is true.
Current usage for usage-based features.
Active quota-window limit for usage features, or subscribed quantity for tier/package features.
null means unlimited.
Current priced usage spend for usage-based features.
Current spend in ledger scale units.
ISO currency code for the spend.
Ready-to-render localized spend, such as $42.
Decimal scale for ledgerAmount. Currently 8.
The quota window represented by usage and limit, with startAt, endAt, and periodKey.
Timestamps use epoch milliseconds. endAt is exclusive and can be null for an open-ended window.
The object is null when active grants use different windows.