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

# promotionalEntitlements



**query** `promotionalEntitlements(filter: PromotionalEntitlementFilter, paging: CursorPaging, sorting: [PromotionalEntitlementSort!]): PromotionalEntitlementConnection!`

## Arguments

**`filter`**: `PromotionalEntitlementFilter` = {}

Specify to filter the records returned.

---

**`paging`**: `CursorPaging` = {first: 10}

Limit or page results.

---

**`sorting`**: `[PromotionalEntitlementSort!]` = [{direction: DESC, field: createdAt}]

Specify to sort results.

## Returns

`PromotionalEntitlementConnection!`

**`edges`**: `[PromotionalEntitlementEdge!]!`

Array of edges.

---

**`pageInfo`**: `PageInfo!`

Paging information

---

**`totalCount`**: `Int!`

Fetch total count of records

## Examples

```graphql Query
query PromotionalEntitlements {
  promotionalEntitlements {
    edges {
      cursor
      node {
        createdAt
        customer {
          __typename
        }
        description
        endDate
        enumValues
        environmentId
      }
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
```

```json Response
{
  "data": {
    "promotionalEntitlements": {
      "edges": [
        {
          "cursor": "value",
          "node": {
            "createdAt": "value",
            "customer": {
              "__typename": "Customer"
            },
            "description": "string",
            "endDate": "value",
            "enumValues": [
              "string"
            ],
            "environmentId": "value"
          }
        }
      ],
      "pageInfo": {
        "endCursor": "value",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "value"
      },
      "totalCount": 1
    }
  }
}
```


## Related topics

- [PromotionalEntitlement](https://docs.stigg.io/graphql-reference/types/PromotionalEntitlement.md)
- [Create a promotional entitlements](https://docs.stigg.io/api-reference/promotional-entitlements/create-a-promotional-entitlements.md)
- [Revoke promotional entitlement](https://docs.stigg.io/api-reference/promotional-entitlements/revoke-promotional-entitlement.md)
- [Get a list of promotional entitlements](https://docs.stigg.io/api-reference/promotional-entitlements/get-a-list-of-promotional-entitlements.md)
- [TypeScript](https://docs.stigg.io/api-and-sdks/changelog/backend-rest/typescript.md)


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