curl --request GET \
--url https://api-m.sandbox.paypal.com/v1/commerce/billing/plans/{plan_code}/entitlements \
--header 'Authorization: Bearer <token>'{
"entitlements": [
{
"feature_code": "seats",
"name": "Number of seats",
"description": "Number of users of the account",
"feature_privileges": [
{
"code": "max",
"name": "Maximum",
"value_type": "INTEGER",
"value": 10
},
{
"code": "max_admins",
"name": "Max Admins",
"value_type": "INTEGER",
"value": 5
},
{
"code": "root",
"name": "Allow root user",
"value_type": "BOOLEAN",
"value": true
}
]
},
{
"feature_code": "api_access",
"name": "API Access",
"description": "Access to REST API endpoints",
"feature_privileges": [
{
"code": "rate_limit",
"name": "API Rate Limit",
"value_type": "INTEGER",
"value": 10000
},
{
"code": "endpoints",
"name": "Available Endpoints",
"value_type": "SELECT",
"value": "all",
"config": {
"select_options": [
"basic",
"standard",
"premium",
"all"
]
}
}
]
},
{
"feature_code": "sso",
"name": "Single Sign-On",
"description": "SSO authentication configuration",
"feature_privileges": [
{
"code": "enabled",
"name": "SSO Enabled",
"value_type": "BOOLEAN",
"value": true
},
{
"code": "provider",
"name": "SSO Provider",
"value_type": "SELECT",
"value": "google",
"config": {
"select_options": [
"google",
"okta"
]
}
}
]
}
]
}Retrieve all entitlements assigned to a specific plan
curl --request GET \
--url https://api-m.sandbox.paypal.com/v1/commerce/billing/plans/{plan_code}/entitlements \
--header 'Authorization: Bearer <token>'{
"entitlements": [
{
"feature_code": "seats",
"name": "Number of seats",
"description": "Number of users of the account",
"feature_privileges": [
{
"code": "max",
"name": "Maximum",
"value_type": "INTEGER",
"value": 10
},
{
"code": "max_admins",
"name": "Max Admins",
"value_type": "INTEGER",
"value": 5
},
{
"code": "root",
"name": "Allow root user",
"value_type": "BOOLEAN",
"value": true
}
]
},
{
"feature_code": "api_access",
"name": "API Access",
"description": "Access to REST API endpoints",
"feature_privileges": [
{
"code": "rate_limit",
"name": "API Rate Limit",
"value_type": "INTEGER",
"value": 10000
},
{
"code": "endpoints",
"name": "Available Endpoints",
"value_type": "SELECT",
"value": "all",
"config": {
"select_options": [
"basic",
"standard",
"premium",
"all"
]
}
}
]
},
{
"feature_code": "sso",
"name": "Single Sign-On",
"description": "SSO authentication configuration",
"feature_privileges": [
{
"code": "enabled",
"name": "SSO Enabled",
"value_type": "BOOLEAN",
"value": true
},
{
"code": "provider",
"name": "SSO Provider",
"value_type": "SELECT",
"value": "google",
"config": {
"select_options": [
"google",
"okta"
]
}
}
]
}
]
}Use the /v1/oauth2/token endpoint to obtain an access token and pass it as a Bearer token in the Authorization header.
The unique code of the plan
A list of plan entitlements
List of entitlements associated with the plan
Show child attributes
Was this page helpful?