{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/paypal/json-schema/paypal-entitlement-request-schema.json",
  "title": "EntitlementRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/paypal-entitlements-api-openapi.yml#/components/schemas/EntitlementRequest",
  "type": "object",
  "required": [
    "feature_code",
    "feature_privilege_values"
  ],
  "properties": {
    "feature_code": {
      "type": "string",
      "description": "Unique code used to identify the feature across the system. This serves as the primary identifier when assigning entitlements to plans and must be unique.",
      "maxLength": 255,
      "pattern": "^[a-zA-Z0-9_-]+$"
    },
    "feature_privilege_values": {
      "type": "object",
      "description": "Object mapping privilege codes to their assigned values for this entitlement. Each key is a privilege code (e.g., 'max_users', 'api_rate_limit'), and each value is what you want to set for that privilege (e.g., 100, true, 'premium'). The value type must match what's expected for that privilege (integer, boolean, or string/select)."
    }
  }
}