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

# customerType Query

Look up a customer type by ID.

Added in Saleor 3.23

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

```graphql
customerType(
  id: ID!
): CustomerType
```

Details

```graphql
type CustomerType implements Node, ObjectWithMetadata {
  id: ID!
  privateMetadata: [MetadataItem!]!
  privateMetafield(
    key: String!
  ): String
  privateMetafields(
    keys: [String!]
  ): Metadata
  metadata: [MetadataItem!]!
  metafield(
    key: String!
  ): String
  metafields(
    keys: [String!]
  ): Metadata
  name: String!
  slug: String!
  isDefault: Boolean!
  attributes: [Attribute!]
  availableAttributes(
    where: AttributeWhereInput
    search: String
    before: String
    after: String
    first: Int
    last: Int
  ): AttributeCountableConnection
}
```

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

### Arguments

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

#### [`id`](#id) ● [`ID!`](/api-reference/miscellaneous/scalars/id.md)

ID of the customer type.

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

### Type

<a id="customertype"></a>

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

Represents a type of customer. It allows to segment users and defines what attributes are available to users of this type.

Added in Saleor 3.23
