> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
> Use this file to discover all available pages before exploring further.

# cachedEntitlements

> Retrieve entitlements from the cache to optimize performance.



**query** `cachedEntitlements(query: FetchEntitlementsQuery!): [Entitlement!]!`

> Deprecated: Use 'entitlementsState' instead to retrieve status together with the entitlements. See 'entitlementsState' for more info.

## Arguments

**`query`**: `FetchEntitlementsQuery!` (required)

Query for retrieving all entitlements for a customer in a specific environment.

## Returns

`[Entitlement!]!`

**`accessDeniedReason`**: `AccessDeniedReason`

Optional message explaining why access to the feature is denied.

---

**`creditRate`**: `CreditRate`

The credit rate associated with this entitlement, if applicable.

---

**`currentUsage`**: `Float`

The amount of the feature the customer has used so far in the current period.

---

**`customerId`**: `String`

> Deprecated: No longer in use

---

**`displayNameOverride`**: `String`

A custom name to override the default display name for this entitlement.

---

**`entitlementUpdatedAt`**: `DateTime`

Timestamp of the last update to the entitlement grant or configuration.

---

**`enumValues`**: `[String!]`

List of enum values applicable to this entitlement, if it is an enum feature.

---

**`feature`**: `EntitlementFeature`

The feature this entitlement corresponds to.

---

**`hasSoftLimit`**: `Boolean`

Indicates whether the usage limit is soft — usage can exceed the limit, but will be tracked.

---

**`hasUnlimitedUsage`**: `Boolean!`

Indicates whether this entitlement grants unlimited usage with no enforced cap.

---

**`hiddenFromWidgets`**: `[WidgetType!]`

Indicates whether this entitlement should be hidden in customer-facing widgets.

---

**`isGranted`**: `Boolean!`

Indicates whether the entitlement is currently granted to the customer.

---

**`meterId`**: `String`

The ID of the meter tracking usage for this entitlement.

---

**`nextResetDate`**: `DateTime`

> Deprecated: renamed to usagePeriodEnd

---

**`requestedUsage`**: `Float`

The amount of usage requested by the customer.

---

**`requestedValues`**: `[String!]`

The values requested by the customer, if applicable.

---

**`resetPeriod`**: `EntitlementResetPeriod`

The interval at which usage resets automatically, such as monthly or yearly.

---

**`resetPeriodConfiguration`**: `ResetPeriodConfiguration`

Detailed configuration object specifying the usage reset schedule.

---

**`resourceId`**: `String`

> Deprecated: No longer in use

---

**`usageLimit`**: `Float`

The maximum allowed usage for this entitlement before restrictions apply.

---

**`usagePeriodAnchor`**: `DateTime`

The anchor for calculating the usage period for metered entitlements with a reset period configured

---

**`usagePeriodEnd`**: `DateTime`

The end date of the usage period for metered entitlements with a reset period configured

---

**`usagePeriodStart`**: `DateTime`

The start date of the usage period for metered entitlements with a reset period configured

---

**`usageUpdatedAt`**: `DateTime`

Timestamp of the last update to the usage value.

---

**`validUntil`**: `Float`

The next time the entitlement should be recalculated

## Examples

```graphql Query
query CachedEntitlements($query: FetchEntitlementsQuery!) {
  cachedEntitlements(query: $query) {
    accessDeniedReason
    creditRate {
      amount
      costFormula
      currencyId
      customCurrencyId
    }
    currentUsage
    customerId
    displayNameOverride
    entitlementUpdatedAt
  }
}
```

```json Variables
{
  "query": {
    "customerId": "string"
  }
}
```

```json Response
{
  "data": {
    "cachedEntitlements": [
      {
        "accessDeniedReason": "BudgetExceeded",
        "creditRate": {
          "amount": 1.5,
          "costFormula": "string",
          "currencyId": "string",
          "customCurrencyId": "value"
        },
        "currentUsage": 1.5,
        "customerId": "string",
        "displayNameOverride": "string",
        "entitlementUpdatedAt": "value"
      }
    ]
  }
}
```


## Related topics

- [Sidecar Service](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/sidecar-service.md)
- [React](https://docs.stigg.io/api-and-sdks/integration/frontend/react.md)
- [Vue.js](https://docs.stigg.io/api-and-sdks/integration/frontend/vuejs.md)
- [React SDK](https://docs.stigg.io/api-and-sdks/changelog/frontend/react.md)
- [Vue.js SDK](https://docs.stigg.io/api-and-sdks/changelog/frontend/vuejs.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.