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

# CreateCustomer

> Creates a new customer.

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** `CreateCustomer(request: CreateCustomerCommandRequestInput!): CreateCustomerCommandResponse!`

## Arguments

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

## Returns

`CreateCustomerCommandResponse!`

**`customerId`**: `ID!`

Unique ID of the newly created customer.

## Examples

```graphql Mutation
mutation CreateCustomer($request: CreateCustomerCommandRequestInput!) {
  CreateCustomer(request: $request) {
    customerId
  }
}
```

```json Variables
{
  "request": {
    "customerGroupId": "id",
    "billingAddress": {
      "street": "string",
      "city": "string",
      "countryIso": "string"
    }
  }
}
```

```json Response
{
  "data": {
    "CreateCustomer": {
      "customerId": "id"
    }
  }
}
```
