> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# QueryConnectorCustomerGroups

> Delivers the customer groups reported live by the connector endpoint. Each entry includes its JTL-Wawi customer-group mapping if one exists ("CustomerGroupId" is null for unmapped groups). The endpoint is contacted on every request.



**query** `QueryConnectorCustomerGroups(salesChannelId: String!): [ConnectorCustomerGroupListItem!]!`

## Arguments

**`salesChannelId`**: `String!` (required)

## Returns

`[ConnectorCustomerGroupListItem!]!`

**`endpointId`**: `String!`

Identifier of the customer group at the endpoint. Always set; groups reported without an identifier are not returned.

---

**`endpointName`**: `String`

The customer group's display name on the endpoint side, or null if no usable localized name was reported.

---

**`customerGroupId`**: `ID`

ID of the JTL-Wawi customer group this endpoint group is mapped to, or null if the endpoint group has not been mapped yet.

---

**`isDefault`**: `Boolean!`

This customer group is the default customer group for the connector account.

## Examples

```graphql Query
query QueryConnectorCustomerGroups($salesChannelId: String!) {
  QueryConnectorCustomerGroups(salesChannelId: $salesChannelId) {
    endpointId
    endpointName
    customerGroupId
    isDefault
  }
}
```

```json Variables
{
  "salesChannelId": "string"
}
```

```json Response
{
  "data": {
    "QueryConnectorCustomerGroups": [
      {
        "endpointId": "string",
        "endpointName": "string",
        "customerGroupId": "id",
        "isDefault": true
      }
    ]
  }
}
```
