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

# CreateCompany

> A command to create a new company, including identification, contact, banking, and tax information.

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** `CreateCompany(request: CreateCompanyCommandRequestInput!): CreateCompanyCommandResponse!`

## Arguments

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

## Returns

`CreateCompanyCommandResponse!`

**`companyId`**: `ID!`

Unique ID of the newly created company - this key is used for all further operations with the company.

## Examples

```graphql Mutation
mutation CreateCompany($request: CreateCompanyCommandRequestInput!) {
  CreateCompany(request: $request) {
    companyId
  }
}
```

```json Variables
{
  "request": {
    "companyName": "string",
    "countryIsoCode": "string",
    "isSmallBusinessOwner": true
  }
}
```

```json Response
{
  "data": {
    "CreateCompany": {
      "companyId": "id"
    }
  }
}
```
