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

# CreateTaxCode

> Creates a new tax code.

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** `CreateTaxCode(request: CreateTaxCodeCommandRequestInput!): ID!`

## Arguments

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

## Returns

`ID!`

## Examples

```graphql Mutation
mutation CreateTaxCode($request: CreateTaxCodeCommandRequestInput!) {
  CreateTaxCode(request: $request)
}
```

```json Variables
{
  "request": {
    "cashDiscountAccount": "string",
    "generalLedgerAccount": "string",
    "isAutomatic": true,
    "name": "string"
  }
}
```

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