Type Definition
Fields
Access Status
| Field | Type | Description |
|---|---|---|
isGranted | Boolean! | Whether the customer has access to this feature |
accessDeniedReason | AccessDeniedReason | Reason access was denied (if applicable) |
Feature
| Field | Type | Description |
|---|---|---|
feature | EntitlementFeature | The feature this entitlement is for |
Usage Limits
| Field | Type | Description |
|---|---|---|
usageLimit | Float | Maximum allowed usage |
hasUnlimitedUsage | Boolean! | Whether usage is unlimited |
hasSoftLimit | Boolean | Whether the limit is soft (usage can exceed) |
currentUsage | Float | Current usage in the period |
requestedUsage | Float | Usage amount requested by the customer |
Enum Values
| Field | Type | Description |
|---|---|---|
enumValues | [String!] | Allowed enum values for this entitlement |
requestedValues | [String!] | Values requested by the customer |
Reset Period
| Field | Type | Description |
|---|---|---|
resetPeriod | EntitlementResetPeriod | How often usage resets |
resetPeriodConfiguration | ResetPeriodConfiguration | Detailed reset configuration |
usagePeriodStart | DateTime | Start of current usage period |
usagePeriodEnd | DateTime | End of current usage period |
usagePeriodAnchor | DateTime | Anchor date for usage periods |
Credit Rate
| Field | Type | Description |
|---|---|---|
creditRate | CreditRate | Credit rate for this feature (if credit-based) |
AccessDeniedReason Enum
| Value | Description |
|---|---|
CustomerNotFound | The customer was not found |
CustomerIsArchived | The customer is archived |
CustomerResourceNotFound | The resource was not found |
FeatureNotFound | The feature does not exist |
FeatureTypeMismatch | The requested entitlement type doesn’t match |
NoActiveSubscription | No active subscription for the customer |
NoFeatureEntitlementInSubscription | The subscription doesn’t include this feature |
RequestedUsageExceedingLimit | The requested usage exceeds the limit |
RequestedValuesMismatch | The requested values don’t match allowed values |
BudgetExceeded | Usage budget has been exceeded |
InsufficientCredits | Not enough credits available |
Revoked | Entitlement was revoked |
Unknown | Unknown reason |
EntitlementResetPeriod Enum
| Value | Description |
|---|---|
MONTH | Resets monthly |
WEEK | Resets weekly |
DAY | Resets daily |
HOUR | Resets hourly |
YEAR | Resets yearly |
Example Response
Boolean Entitlement (Granted)
Numeric Entitlement (With Usage)
Denied Entitlement
Unlimited Entitlement
Related Types
- Feature - Feature type
- Customer - Customer type
- CustomerSubscription - Subscription type
Related Operations
- Get Entitlement - Fetch a single entitlement
- Get Entitlements - Fetch all entitlements for a customer
- Grant Promotional Entitlements - Grant entitlements
- Recalculate Entitlements - Refresh entitlements
