query Entitlement($query: FetchEntitlementQuery!) {
entitlement(query: $query) {
accessDeniedReason
creditRate {
amount
costFormula
currencyId
customCurrencyId
}
currentUsage
customerId
displayNameOverride
entitlementUpdatedAt
}
}{
"query": {
"customerId": "string",
"featureId": "string"
}
}{
"data": {
"entitlement": {
"accessDeniedReason": "BudgetExceeded",
"creditRate": {
"amount": 1.5,
"costFormula": "string",
"currencyId": "string",
"customCurrencyId": "value"
},
"currentUsage": 1.5,
"customerId": "string",
"displayNameOverride": "string",
"entitlementUpdatedAt": "value"
}
}
}entitlement
Fetch a specific entitlement for a given feature and customer.
entitlement(query: FetchEntitlementQuery!): Entitlement!Arguments
Query for fetching a single entitlement for a specific feature and customer.
Returns
Optional message explaining why access to the feature is denied.
The credit rate associated with this entitlement, if applicable.
The amount of the feature the customer has used so far in the current period.
A custom name to override the default display name for this entitlement.
Timestamp of the last update to the entitlement grant or configuration.
List of enum values applicable to this entitlement, if it is an enum feature.
The feature this entitlement corresponds to.
Indicates whether the usage limit is soft — usage can exceed the limit, but will be tracked.
Indicates whether this entitlement grants unlimited usage with no enforced cap.
Indicates whether this entitlement should be hidden in customer-facing widgets.
Indicates whether the entitlement is currently granted to the customer.
The ID of the meter tracking usage for this entitlement.
The amount of usage requested by the customer.
The values requested by the customer, if applicable.
The interval at which usage resets automatically, such as monthly or yearly.
Detailed configuration object specifying the usage reset schedule.
The maximum allowed usage for this entitlement before restrictions apply.
The anchor for calculating the usage period for metered entitlements with a reset period configured
The end date of the usage period for metered entitlements with a reset period configured
The start date of the usage period for metered entitlements with a reset period configured
Timestamp of the last update to the usage value.
The next time the entitlement should be recalculated
query Entitlement($query: FetchEntitlementQuery!) {
entitlement(query: $query) {
accessDeniedReason
creditRate {
amount
costFormula
currencyId
customCurrencyId
}
currentUsage
customerId
displayNameOverride
entitlementUpdatedAt
}
}{
"query": {
"customerId": "string",
"featureId": "string"
}
}{
"data": {
"entitlement": {
"accessDeniedReason": "BudgetExceeded",
"creditRate": {
"amount": 1.5,
"costFormula": "string",
"currencyId": "string",
"customCurrencyId": "value"
},
"currentUsage": 1.5,
"customerId": "string",
"displayNameOverride": "string",
"entitlementUpdatedAt": "value"
}
}
}