---
title: "Update a taxrate"
method: PATCH
path: "/accounting/{connection_id}/taxrate/{id}"
tags: ["accounting", "taxrate"]
---

# Update a taxrate

`PATCH /accounting/{connection_id}/taxrate/{id}`

## Request

- Base URL: `http://api.unified.to`
- URL: `http://api.unified.to/accounting/{connection_id}/taxrate/{id}`
- Auth: API key in header `authorization`

## Path parameters

- `connection_id` string, required
- `id` string, required

## Query parameters

- `fields` string[]
- `raw` string

## Request body

- AccountingTaxrate
  - `id` string
  - `created_at` string, date-time: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `name` string
  - `description` string
  - `rate` number: %
  - `is_active` boolean
  - `organization_id` string
  - `metadata` AccountingMetadata[]
    - `id` string
    - `slug` string
    - `value` unknown
    - `namespace` string
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'FILE' | 'TEXTAREA' | 'SINGLE_SELECT' | 'MULTIPLE_SELECT' | 'MEASUREMENT' | 'PRICE' | 'YES_NO' | 'CURRENCY' | 'URL'
    - `extra_data` unknown
  - `effective_rate` number: Net effective rate in %, where it differs from the nominal rate
  - `total_rate` number: Sum of all components, in %
  - `components` AccountingTaxrateComponent[]: Component parts of a compound or multi-component tax
    - `name` string: Name of the tax component, e.g. GST or PST
    - `rate` number: Rate of this component, in %
    - `is_compound` boolean: True when this component is charged on top of the other components
  - `type` 'SALES' | 'PURCHASE' | 'BOTH' | 'OTHER': Whether the rate applies to sales, purchases, or both
  - `is_compound` boolean: True when the rate stacks on top of other taxes
  - `country` string: Jurisdiction country
  - `region` string: Jurisdiction state / province
  - `raw` unknown

## Response `200`

Successful

- AccountingTaxrate
  - `id` string
  - `created_at` string, date-time: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `name` string
  - `description` string
  - `rate` number: %
  - `is_active` boolean
  - `organization_id` string
  - `metadata` AccountingMetadata[]
    - `id` string
    - `slug` string
    - `value` unknown
    - `namespace` string
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'FILE' | 'TEXTAREA' | 'SINGLE_SELECT' | 'MULTIPLE_SELECT' | 'MEASUREMENT' | 'PRICE' | 'YES_NO' | 'CURRENCY' | 'URL'
    - `extra_data` unknown
  - `effective_rate` number: Net effective rate in %, where it differs from the nominal rate
  - `total_rate` number: Sum of all components, in %
  - `components` AccountingTaxrateComponent[]: Component parts of a compound or multi-component tax
    - `name` string: Name of the tax component, e.g. GST or PST
    - `rate` number: Rate of this component, in %
    - `is_compound` boolean: True when this component is charged on top of the other components
  - `type` 'SALES' | 'PURCHASE' | 'BOTH' | 'OTHER': Whether the rate applies to sales, purchases, or both
  - `is_compound` boolean: True when the rate stacks on top of other taxes
  - `country` string: Jurisdiction country
  - `region` string: Jurisdiction state / province
  - `raw` unknown

---

[API](https://skmtc.dev/unified/apis/unified-to-api-2.md) · [All operations](https://skmtc.dev/unified/apis/unified-to-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/unified/apis/unified-to-api-2/revisions/7a38bdd7f089?raw)
