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

# SetScxSellerCustomerGroupMappings

> Declaratively replaces the complete set of customer-group mappings of an SCX seller/account. The request describes the full desired state: provided mappings are upserted and the customer-group mapping of every channel price type not contained in the request is cleared, not removed.



**mutation** `SetScxSellerCustomerGroupMappings(request: SetScxSellerCustomerGroupMappingsCommandRequestInput!): SetScxSellerCustomerGroupMappingsCommandResponse!`

## Arguments

**`request`**: `SetScxSellerCustomerGroupMappingsCommandRequestInput!` (required)

## Returns

`SetScxSellerCustomerGroupMappingsCommandResponse!`

**`mappings`**: `[ScxCustomerGroupMapping!]!`

The persisted customer-group mappings.

## Examples

```graphql Mutation
mutation SetScxSellerCustomerGroupMappings($request: SetScxSellerCustomerGroupMappingsCommandRequestInput!) {
  SetScxSellerCustomerGroupMappings(request: $request) {
    mappings {
      channelPriceTypeId
      salesChannelId
      customerGroupId
      priceTypeId
    }
  }
}
```

```json Variables
{
  "request": {
    "salesChannelId": "string",
    "mappings": [
      {
        "channelPriceTypeId": "id",
        "customerGroupId": "id"
      }
    ]
  }
}
```

```json Response
{
  "data": {
    "SetScxSellerCustomerGroupMappings": {
      "mappings": [
        {
          "channelPriceTypeId": "id",
          "salesChannelId": "string",
          "customerGroupId": "id",
          "priceTypeId": "string"
        }
      ]
    }
  }
}
```
