> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/users/llms.txt)
> Source: https://docs.saleor.io/api-reference/users/queries/customer-types

# customerTypes Query

List of the customer types.

Added in Saleor 3.23

Requires one of the following permissions: AUTHENTICATED\_STAFF\_USER AUTHENTICATED\_APP MANAGE\_CUSTOMER\_TYPES\_AND\_ATTRIBUTES MANAGE\_USERS

```graphql
customerTypes(
  where: CustomerTypeWhereInput
  search: String
  sortBy: CustomerTypeSortingInput
  before: String
  after: String
  first: Int
  last: Int
): CustomerTypeCountableConnection
```

Details

```graphql
type CustomerTypeCountableConnection {
  pageInfo: PageInfo!
  edges: [CustomerTypeCountableEdge!]!
  totalCount: Int
}
```

<a id="arguments"></a>

### Arguments

<a id="where"></a>

#### [`where`](#where) ● [`CustomerTypeWhereInput`](/api-reference/users/inputs/customer-type-where-input.md)

Where filtering options for customer types.

<a id="search"></a>

#### [`search`](#search) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

Search customer types by name or slug.

<a id="sort-by"></a>

#### [`sortBy`](#sort-by) ● [`CustomerTypeSortingInput`](/api-reference/users/inputs/customer-type-sorting-input.md)

Sort customer types.

<a id="before"></a>

#### [`before`](#before) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

Return the elements in the list that come before the specified cursor.

<a id="after"></a>

#### [`after`](#after) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

Return the elements in the list that come after the specified cursor.

<a id="first"></a>

#### [`first`](#first) ● [`Int`](/api-reference/miscellaneous/scalars/int.md)

Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

<a id="last"></a>

#### [`last`](#last) ● [`Int`](/api-reference/miscellaneous/scalars/int.md)

Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

<a id="type"></a>

### Type

<a id="customertypecountableconnection"></a>

#### [`CustomerTypeCountableConnection`](/api-reference/users/objects/customer-type-countable-connection.md)
