Features
Create a feature
Creates a new feature that represents a capability or functionality that can be entitled to customers. Features are the building blocks of your entitlement system - they define what can be granted to customers and what aspects can be configured. Each feature can have multiple privileges that allow fine-grained control over its behavior (e.g., a 'seats' feature might have 'max' and 'max_admins' privileges). Once created, features can be assigned to plans with specific privilege values.
post/features
Request
- Base URLhttps://api-m.sandbox.paypal.com
- AuthOAuth 2Client credentialsToken URL/api/oauth-proxyScopesread, write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"code": "USER-SEATS",
"name": "Number of seats",
"description": "Number of users allowed in the account",
"privileges": [
{
"code": "MAX-USERS",
"name": "Maximum seats",
"value_type": "INTEGER",
"config": {
"select_options": [
"google",
"okta",
"azure"
]
}
}
]
}Response
Feature was successfully created and is now available for use in plan entitlements
Example response
{
"code": "USER-SEATS",
"name": "Number of seats",
"description": "Number of users allowed in the account",
"privileges": [
{
"code": "MAX-USERS",
"name": "Maximum seats",
"value_type": "INTEGER",
"config": {
"select_options": [
"google",
"okta",
"azure"
]
}
}
],
"created_at": "2023-10-01T12:00:00Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.