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

# CreateShippingClass

> Creates a new shipping class.

If a request with this mutation's Idempotency-Key was already completed, the response's `extensions` contains an `idempotency.{responseName}` entry with `wasReplayed: true`.



**mutation** `CreateShippingClass(request: CreateShippingClassCommandRequestInput!): CreateShippingClassCommandResponse!`

## Arguments

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

## Returns

`CreateShippingClassCommandResponse!`

**`id`**: `ID!`

The ID of the newly created shipping class.

## Examples

```graphql Mutation
mutation CreateShippingClass($request: CreateShippingClassCommandRequestInput!) {
  CreateShippingClass(request: $request) {
    id
  }
}
```

```json Variables
{
  "request": {
    "name": "string"
  }
}
```

```json Response
{
  "data": {
    "CreateShippingClass": {
      "id": "id"
    }
  }
}
```
