Features are the foundational building blocks of access control in ArcenPay. A feature represents a distinct capability, gate, or metered quota in your product (e.g. analytics_export, seat_limit, ai_tokens).
Once defined, features can be attached to Plans with specific allocations, overridden at the Company level, or targeted dynamically via Rules.
The Feature object
Attributes
Feature types
ArcenPay supports three primary feature types:
-
Boolean (
boolean)
Binary on/off capabilities. Either a company has access or they do not.
Example: custom_domains, sso_saml, priority_support.
-
Event-based / Metered (
event)
Features tied to consumption counters. When an event is recorded or /usage/consume is called, units are deducted from the company’s plan allocation or credit grant.
Example: api_calls_monthly, ai_credits, team_seats.
-
Trait-based (
trait)
Access dynamically evaluated from company traits, wallet properties, or zkTLS verifiable credentials.
Example: beta_tester, country_us, dao_token_holder.
Endpoints
Usage in code
After creating features, use the ArcenPay Node.js SDK to check access server-side:
Last modified on September 19, 2026