---
title: "Updates an existing tax code"
method: PATCH
path: "/v2/taxcodes/update"
tags: ["TaxDomainCommand"]
---

# Updates an existing tax code

`PATCH /v2/taxcodes/update`

## Headers

- `x-tenant-id` string, uuid, required
- `x-runas` string
- `x-companyid` string

## Request body

- JTLWawiTaxesPublicApiDataTransferObjectsV2TaxDomainUpdateTaxCodeCommandRequest — Updates an existing tax code - Request
  - `id` string, uuid
  - `cashDiscountAccount` string — The cash discount account of the tax code
  - `generalLedgerAccount` string — The general ledger account of the tax code
  - `isAutomatic` boolean — Whether this tax code is automatic
  - `name` string — The name of the tax code
  - `number` integer — The number of the tax code. Can only be changed when the tax code is not referenced.

## Response `200`

Tax code was successfully updated.

---

[API](https://skmtc.net/jtl-software/apis/scx-authentication-api.md) · [All operations](https://skmtc.net/jtl-software/apis/scx-authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jtl-software/scx-authentication-api/revisions/f979b1ea6951/schema)
