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

# CreateSupplier

> Creates a new supplier.

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** `CreateSupplier(request: CreateSupplierCommandRequestInput!): CreateSupplierCommandResponse!`

## Arguments

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

## Returns

`CreateSupplierCommandResponse!`

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

The key of the newly created supplier.

## Examples

```graphql Mutation
mutation CreateSupplier($request: CreateSupplierCommandRequestInput!) {
  CreateSupplier(request: $request) {
    id
  }
}
```

```json Variables
{
  "request": {
    "companyName": "string",
    "address": {
      "street": "string",
      "postalCode": "string",
      "city": "string",
      "countryIso": "string"
    },
    "currencyIso": "string",
    "languageIso": "string",
    "defaultCompanyId": "id",
    "defaultWarehouseId": "id"
  }
}
```

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