---
title: "Update a tax code · Taxes · Practice Manager API · COUNT Partner API"
description: "Renames, re-rates, describes, or switches a tax code on or off. PATCH /firm-partners/workspace/taxes/{uuid}"
canonical: "https://developers.getcount.com/practice-manager/reference/taxes/update-tax"
source: "https://developers.getcount.com/practice-manager/reference/taxes/update-tax"
---
[Taxes](https://developers.getcount.com/practice-manager/reference/taxes) / Update a tax code

# Update a tax code

PATCH `/firm-partners/workspace/taxes/{uuid}`

Renames, re-rates, describes, or switches a tax code on or off.

Send only the fields that change. Renaming a code renames its liability account. A rate cannot change once the code has been posted to the ledger. A system code (`editable: false`) keeps its name and rate, and a US sales tax code that is the rate for a customer job site cannot be switched off.

HMAC signature only

[Transactions API](https://developers.getcount.com/practice-manager/reference/transactions) [Invoices API](https://developers.getcount.com/practice-manager/reference/invoices) [Bills API](https://developers.getcount.com/practice-manager/reference/bills)

#### Headers

`count-workspace-id` uuid required

UUID of the client workspace to act on. It must be one of your firm's client workspaces (or the firm's own workspace) and within the API key's client workspaces.

#### Path parameters

`uuid` uuid required

The tax UUID, the `id` from List tax codes.

#### Request body

`name` string

New display name.

`percentage` string

New rate, zero or more, as a number or an unsigned numeric string.

`description` string

New description, or null to clear it.

`enabled` boolean

`false` stops the code being offered on new lines; `true` turns it back on.

#### Responses

`200` The updated tax code.

`400` Empty body or invalid field; renaming or re-rating a system code; changing the rate of a code already posted to the ledger; or switching off a sales tax code a customer job site uses.

`401` Missing signing headers, an invalid HMAC signature, or a timestamp more than 5 minutes off. [Troubleshoot](https://developers.getcount.com/practice-manager/authentication#errors)

`403` The key is inactive or its scope does not allow this request, the workspace is not managed by your firm or is outside the key's client workspaces, the workspace has no active subscription, or it is portal-only and the route needs bookkeeping. [Troubleshoot](https://developers.getcount.com/practice-manager/authentication#errors)

`404` No tax code with that UUID in the workspace, or it has been deleted.

`429` Rate limit exceeded (100 requests per minute per firm user of each app, or 10,000 per minute per app). [Troubleshoot](https://developers.getcount.com/practice-manager/authentication#errors)

[Previous POST Create a tax code](https://developers.getcount.com/practice-manager/reference/taxes/create-tax) [Next DELETE Delete a tax code](https://developers.getcount.com/practice-manager/reference/taxes/delete-tax)

PATCH `https://api.getcount.com/firm-partners/workspace/taxes/{uuid}`

Request

```javascript
import crypto from 'node:crypto';

const BASE_URL = 'https://api.getcount.com';
const CLIENT_ID = process.env.COUNT_CLIENT_ID;
const CLIENT_SECRET = process.env.COUNT_CLIENT_SECRET;

const method = 'PATCH';
const signingPath = '/workspace/taxes/3f6c2a1e-8b4d-4e7a-9c2f-1d5e8a7b6c40';
const timestamp = Math.floor(Date.now() / 1000).toString();
const body = {
  "name": "GST (standard)",
  "enabled": true
};
const bodyString = JSON.stringify(body);

const bodyHash = crypto.createHash('sha256').update(bodyString).digest('hex');
const baseString = `${method}:${signingPath}:${timestamp}:${bodyHash}`;
const signature = crypto.createHmac('sha256', CLIENT_SECRET).update(baseString).digest('hex');

const response = await fetch(`${BASE_URL}/firm-partners/workspace/taxes/3f6c2a1e-8b4d-4e7a-9c2f-1d5e8a7b6c40`, {
  method,
  headers: {
    'x-client-id': CLIENT_ID,
    'x-timestamp': timestamp,
    'x-signature': signature,
    'Content-Type': 'application/json',
    'count-workspace-id': '5e4d3c2b-1a09-4f8e-8d7c-6b5a49382716',
  },
  body: bodyString,
});

console.log(await response.json());
```

Response · 200

```json
{
  "status": "success",
  "message": "Success on update tax",
  "data": {
    "tax": {
      "id": "3f6c2a1e-8b4d-4e7a-9c2f-1d5e8a7b6c40",
      "name": "CA Sales Tax (state)",
      "percentage": "7.2500",
      "type": "Sales Tax",
      "description": "California state sales tax",
      "enabled": true,
      "editable": true,
      "systemCreated": false,
      "country": "US",
      "state": "CA",
      "county": null,
      "city": null,
      "zipCode": null,
      "locationCode": null
    }
  }
}
```
