Query
query EntitlementsWithSummary($query: FetchEntitlementsQuery!) {
entitlementsWithSummary(query: $query) {
entitlements {
__typename
... on CreditEntitlementWithSummary {
accessDeniedReason
currency {
__typename
}
currentUsage
entitlementUpdatedAt
hasSoftLimit
isGranted
}
}
}
}Variables
{
"query": {
"customerId": "string"
}
}Response
{
"data": {
"entitlementsWithSummary": {
"entitlements": [
{
"__typename": "CreditEntitlementWithSummary",
"accessDeniedReason": "BudgetExceeded",
"currency": {
"__typename": "EntitlementCurrency"
},
"currentUsage": 1.5,
"entitlementUpdatedAt": "value",
"hasSoftLimit": true,
"isGranted": true
}
]
}
}
}Queries
entitlementsWithSummary
Get the full list of entitlements (feature and credit) with summaries for a customer in a specific environment.
QUERY
entitlementsWithSummary(query: FetchEntitlementsQuery!): EntitlementsWithSummary!Arguments
query
required
Query for retrieving all entitlements for a customer in a specific environment.
Returns
entitlements
The list of polymorphic entitlements (feature and credit) with summaries granted to the customer.
Query
query EntitlementsWithSummary($query: FetchEntitlementsQuery!) {
entitlementsWithSummary(query: $query) {
entitlements {
__typename
... on CreditEntitlementWithSummary {
accessDeniedReason
currency {
__typename
}
currentUsage
entitlementUpdatedAt
hasSoftLimit
isGranted
}
}
}
}Variables
{
"query": {
"customerId": "string"
}
}Response
{
"data": {
"entitlementsWithSummary": {
"entitlements": [
{
"__typename": "CreditEntitlementWithSummary",
"accessDeniedReason": "BudgetExceeded",
"currency": {
"__typename": "EntitlementCurrency"
},
"currentUsage": 1.5,
"entitlementUpdatedAt": "value",
"hasSoftLimit": true,
"isGranted": true
}
]
}
}
}