# TaxRate

﻿> View the coverage for tax rates in the <a className="external" href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=taxRates" target="_blank">Data coverage explorer</a>.

## Overview

Accounting systems typically store a set of taxes and associated rates within the accounting package. This means that users don't have to look up or remember the rates for each type of tax. For example, applying the tax "UK sales VAT" to line items of an invoice adds the correct rate of 20%.

### Tax components

In some cases, a tax is made up of multiple sub taxes, often called _components_ of the tax.  For example, you may have an item that is charged a tax rate called "City import tax (8%)" that has two components:

- A city tax of 5%
- An import tax of 3%

> **Effective tax rates**
> - Where there are multiple components of a tax, each component may be calculated on the original amount and added together. Alternatively, one tax may be calculated on the sub-total of the original amount plus another tax, which is referred to as _compounding_. When there is compounding, the effective tax rate is the rate that, if applied to the original amount, would result in the total amount of tax with compounding.
>
> **Example:**  
> A tax has two components. Both components have a rate of 10%, and one component is compound. In this case, there is a total tax rate of 20% but an effective tax rate of 21%.
>
> - For QuickBooks Online, Codat doesn't use compound rates. Instead, the calculated effective tax rate for each component is shown. This means that the effective and total rates are the same because the total tax rate is a sum of the component rates.


## Fields

| Field                                                                                                                                                                                                                                                                                                       | Type                                                                                                                                                                                                                                                                                                        | Required                                                                                                                                                                                                                                                                                                    | Description                                                                                                                                                                                                                                                                                                 | Example                                                                                                                                                                                                                                                                                                     |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `code`                                                                                                                                                                                                                                                                                                      | *string*                                                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                                                          | Code for the tax rate from the accounting platform.                                                                                                                                                                                                                                                         |                                                                                                                                                                                                                                                                                                             |
| `components`                                                                                                                                                                                                                                                                                                | [shared.TaxRateComponent](../../../sdk/models/shared/taxratecomponent.md)[]                                                                                                                                                                                                                                 | :heavy_minus_sign:                                                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                                                         |                                                                                                                                                                                                                                                                                                             |
| `effectiveTaxRate`                                                                                                                                                                                                                                                                                          | *number*                                                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                                                          | See Effective tax rates description.                                                                                                                                                                                                                                                                        |                                                                                                                                                                                                                                                                                                             |
| `id`                                                                                                                                                                                                                                                                                                        | *string*                                                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                                                          | Identifier for the tax rate, unique for the company in the accounting platform.                                                                                                                                                                                                                             |                                                                                                                                                                                                                                                                                                             |
| `metadata`                                                                                                                                                                                                                                                                                                  | [shared.Metadata](../../../sdk/models/shared/metadata.md)                                                                                                                                                                                                                                                   | :heavy_minus_sign:                                                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                                                         |                                                                                                                                                                                                                                                                                                             |
| `modifiedDate`                                                                                                                                                                                                                                                                                              | *string*                                                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                                                         | 2022-10-23 00:00:00 +0000 UTC                                                                                                                                                                                                                                                                               |
| `name`                                                                                                                                                                                                                                                                                                      | *string*                                                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                                                          | Codat-augmented name of the tax rate in the accounting platform.                                                                                                                                                                                                                                            |                                                                                                                                                                                                                                                                                                             |
| `sourceModifiedDate`                                                                                                                                                                                                                                                                                        | *string*                                                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                                                         | 2022-10-23 00:00:00 +0000 UTC                                                                                                                                                                                                                                                                               |
| `status`                                                                                                                                                                                                                                                                                                    | [shared.TaxRateStatus](../../../sdk/models/shared/taxratestatus.md)                                                                                                                                                                                                                                         | :heavy_minus_sign:                                                                                                                                                                                                                                                                                          | Status of the tax rate in the accounting platform.  <br/>- `Active` - An active tax rate in use by a company.  <br/>- `Archived` - A tax rate that has been archived or is inactive in the accounting platform.  <br/>- `Unknown` - Where the status of the tax rate cannot be determined from the underlying platform. |                                                                                                                                                                                                                                                                                                             |
| `supplementalData`                                                                                                                                                                                                                                                                                          | [shared.SupplementalData](../../../sdk/models/shared/supplementaldata.md)                                                                                                                                                                                                                                   | :heavy_minus_sign:                                                                                                                                                                                                                                                                                          | Supplemental data is additional data you can include in our standard data types. <br/><br/>It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data.         |                                                                                                                                                                                                                                                                                                             |
| `totalTaxRate`                                                                                                                                                                                                                                                                                              | *number*                                                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                                                          | Total (not compounded) sum of the components of a tax rate.                                                                                                                                                                                                                                                 |                                                                                                                                                                                                                                                                                                             |
| `validDatatypeLinks`                                                                                                                                                                                                                                                                                        | [shared.ValidDataTypeLinks](../../../sdk/models/shared/validdatatypelinks.md)[]                                                                                                                                                                                                                             | :heavy_minus_sign:                                                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                                                         |                                                                                                                                                                                                                                                                                                             |