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

# SetScxSellerShippingRuleMappings

> Declaratively replaces the complete set of shipping-rule mappings of an SCX seller/account. The request describes the full desired state: provided mappings are upserted and every mapping not contained in the request is removed.



**mutation** `SetScxSellerShippingRuleMappings(request: SetScxSellerShippingRuleMappingsCommandRequestInput!): SetScxSellerShippingRuleMappingsCommandResponse!`

## Arguments

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

## Returns

`SetScxSellerShippingRuleMappingsCommandResponse!`

**`mappings`**: `[ScxShippingRuleMapping!]!`

The persisted shipping-rule mappings including their carrier id (server-resolved for a real shipping rule, or the stored custom carrier code for an own-carrier mapping).

## Examples

```graphql Mutation
mutation SetScxSellerShippingRuleMappings($request: SetScxSellerShippingRuleMappingsCommandRequestInput!) {
  SetScxSellerShippingRuleMappings(request: $request) {
    mappings {
      shippingMethodId
      salesChannelId
      shippingRuleId
      carrierId
      customCarrierId
    }
  }
}
```

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

```json Response
{
  "data": {
    "SetScxSellerShippingRuleMappings": {
      "mappings": [
        {
          "shippingMethodId": "id",
          "salesChannelId": "string",
          "shippingRuleId": "id",
          "carrierId": "string",
          "customCarrierId": "string"
        }
      ]
    }
  }
}
```
