If you accept cookies, we’ll use them to improve and customize your experience and enable our partners to show you personalized PayPal ads when you visit other sites. Manage cookies and learn more
FeaturePrivilegeBase
Defines a configurable aspect of a feature that can be assigned different values when entitled to plans or subscriptions
codestringRequired
Unique identifier for the privilege within its parent feature. Used as a key when assigning values to this privilege in entitlements. Allows alphanumeric characters, underscores, and hyphens.
Match^[a-zA-Z0-9_-]+$Length0 <= length <= 255
namestringOptional
Human-friendly display name for the privilege shown in user interfaces. This helps users understand what aspect of the feature is being configured.
Defines the data type that this privilege accepts when being assigned values in entitlements. 'INTEGER' for numeric limits, 'BOOLEAN' for on/off toggles, 'STRING' for text values, 'SELECT' for predefined options.
Additional configuration for privileges that require constraints or options. Currently used for 'select' type privileges to define allowed values.
PrivilegeConfig properties
1 property
select_optionsarray<string>Optional
Defines the allowed values when value_type is 'select'. When creating entitlements, only these predefined options can be assigned. Useful for features like SSO providers, regions, or service tiers.