> ## 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.

# 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`**: `FetchEntitlementsQuery!` (required)

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

## Returns

`EntitlementsWithSummary!`

**`entitlements`**: `[EntitlementWithSummaryUnion!]!`

The list of polymorphic entitlements (feature and credit) with summaries granted to the customer.

## Examples

```graphql Query
query EntitlementsWithSummary($query: FetchEntitlementsQuery!) {
  entitlementsWithSummary(query: $query) {
    entitlements {
      __typename
      ... on CreditEntitlementWithSummary {
        accessDeniedReason
        currency {
          __typename
        }
        currentUsage
        entitlementUpdatedAt
        hasSoftLimit
        isGranted
      }
    }
  }
}
```

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

```json Response
{
  "data": {
    "entitlementsWithSummary": {
      "entitlements": [
        {
          "__typename": "CreditEntitlementWithSummary",
          "accessDeniedReason": "BudgetExceeded",
          "currency": {
            "__typename": "EntitlementCurrency"
          },
          "currentUsage": 1.5,
          "entitlementUpdatedAt": "value",
          "hasSoftLimit": true,
          "isGranted": true
        }
      ]
    }
  }
}
```


## Related topics

- [EntitlementsWithSummary](https://docs.stigg.io/graphql-reference/types/EntitlementsWithSummary.md)
- [Go SDK](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/go.md)
- [EntitlementSummary](https://docs.stigg.io/graphql-reference/types/EntitlementSummary.md)
- [EntitlementWithSummary](https://docs.stigg.io/graphql-reference/types/EntitlementWithSummary.md)
- [Viewing customers entitlement summary](https://docs.stigg.io/documentation/managing-customers-and-subscriptions/customers/viewing-customers-entitlement-summary.md)


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