Feature types
The feature code is the identifier used by Feature Access, Usage, Seats, and Quota. Use lowercase letters, numbers, and underscores.
Current feature state
UsefeatureAccess.get to read whether the customer currently has access and the feature’s current counters:
type. It can include enabled state, usage, included units, remaining units, seats, or quota values.
Use the list operation to retrieve the customer’s complete current feature state:
{ object, data, hasMore, nextCursor } envelope.
Prospective consumption
Useusage.check before an action when you need to know whether a specific quantity can be consumed and what it would cost:
meteredreports current, remaining, included, and overage pricing.creditsreports the estimated credit cost and available pools.balancereports the estimated monetary amount and current balance.
Track the consumption
Once the action succeeds, record it through Usage:eventId for the business event when retries must deduplicate it. Request idempotency is a separate transport option that maps to Idempotency-Key.