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

# customers



**query** `customers(filter: CustomerFilter, paging: CursorPaging, sorting: [CustomerSort!]): CustomerConnection!`

## Arguments

**`filter`**: `CustomerFilter` = {}

Specify to filter the records returned.

---

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

Limit or page results.

---

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

Specify to sort results.

## Returns

`CustomerConnection!`

**`edges`**: `[CustomerEdge!]!`

Array of edges.

---

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

Paging information

---

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

Fetch total count of records

## Examples

```graphql Query
query Customers {
  customers {
    edges {
      cursor
      node {
        additionalMetaData
        awsMarketplaceCustomerId
        billingCurrency
        billingId
        billingLinkUrl
        coupon {
          __typename
        }
      }
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
```

```json Response
{
  "data": {
    "customers": {
      "edges": [
        {
          "cursor": "value",
          "node": {
            "additionalMetaData": "value",
            "awsMarketplaceCustomerId": "string",
            "billingCurrency": "AED",
            "billingId": "string",
            "billingLinkUrl": "string",
            "coupon": {
              "__typename": "Coupon"
            }
          }
        }
      ],
      "pageInfo": {
        "endCursor": "value",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "value"
      },
      "totalCount": 1
    }
  }
}
```


## Related topics

- [Customer](https://docs.stigg.io/graphql-reference/types/Customer.md)
- [Customer portal](https://docs.stigg.io/documentation/snap-in-widgets/customer-portal.md)
- [Archiving a customer](https://docs.stigg.io/documentation/managing-customers-and-subscriptions/customers/archiving-customers.md)
- [Unarchiving a customer](https://docs.stigg.io/documentation/managing-customers-and-subscriptions/customers/unarchiving-customers.md)
- [Importing customers](https://docs.stigg.io/documentation/importing-and-exporting-data/import/importing-customers.md)


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