Manage tax for Non-US locales

This topic provides information about the QuickBooks Online API sales tax model for non-US integrations. For US sales tax integrations, click here.

Sales transactions (such as Invoices and SalesReceipts) and expense transactions (such as Bills and PurchaseOrders) represent sales taxes both collected and paid. They use TaxCode objects to specify sales tax at the line level so that QuickBooks Online knows the tax rate to use when calculating taxes. 

TaxRate and TaxAgency objects, while not used directly in transactions, are used in TaxCode definitions.

To follow along, you'll need a sandbox or another QuickBooks company populated with a chart of accounts, customers, vendors, and invoices. The examples in this tutorial use the sandbox company.

The tax model at a glance

The table below summarizes the resources comprising the non-US sales tax model.

Tax ItemResourceDescription
Tax codeTaxCode

Defines a tax code comprised of one or more tax rates. For example, the tax code GST is comprised of the GST (sales) tax rate. Use the TaxService endpoint to create a TaxCode object.

Sales Transaction entities:

  • For each taxable line, a TaxCode is applied to the line. In this context, TaxCode references one or more rates in the TaxRate object's SalesTaxRateList.
  • Returned in the transaction object's TxnTaxDetail element to define the sales tax rate and amount for the entire transaction.

Purchase Transaction entities:

  • For each taxable line, a TaxCode is applied to the line. In this context, TaxCode references one or more rates in the TaxRate object's PurchaseTaxRateList.
  • Returned in the transaction object's TxnTaxDetail element to define the purchase tax rate for the entire transaction.
Tax rateTaxRateDefines the tax rate of an individual tax agency. Use the TaxService endpoint to create a TaxRate object.
Tax agencyTaxAgencyDefines display names for individual tax agencies supported by your QuickBooks company file. Use the TaxAgency endpoint, itself, to create and maintain tax agencies.

Specifying sales tax

For each sales item line subject to sales tax, set its SalesItemLineDetail.TaxCodeRef attribute to reference the applicable TaxCode object. When creating or updating sales transactions, QuickBooks Online automatically calculates tax and returns the amount in the TxnTaxDetail.TotalTax attribute of the transaction based on the TaxCode assigned to each line.

Note

The QuickBooks company must be enabled to use sales tax.

  • Sales tax is not always enabled—enable its use from the Sales Tax center on the QuickBooks Online UI.  You cannot enable it via the QuickBooks Online API.
  • With the QuickBooks Online API, check to see if sales tax is enabled by checking the Preferences.TaxPrefs.UsingSalesTax attribute is set to true.

Sample create request

The Invoice create request below includes three lines, a sales tax code is specified for each individual line as follows. 

  • Line 1: TaxCode is Exempt From VAT (TaxCode ID=2), Constituent tax rate is ES (TaxRate ID=2)
  • Line 2: TaxCode is 20.0% S (TaxCode ID=3), Constituent tax rate is SS-20.0 (TaxRate ID=4)
  • Line 3: TaxCode is 20.0% S (TaxCode ID=3), Constituent tax rate is SS-20.0 (TaxRate ID=4)
Click to see code.
{
    "Line": [
    {
        "Id": "1",
        "LineNum": 1,
        "Description": "Holiday party - gold level",
        "Amount": 2000.0,
        "DetailType": "SalesItemLineDetail",
        "SalesItemLineDetail":
        {
            "ItemRef":
            {
                "value": "7",
                "name": "Holiday party:Gold party"
            },
            "UnitPrice": 2000,
            "Qty": 1,
            "TaxCodeRef":
            {
                "value": "2"
            }
        }
    },
    {
        "Id": "2",
        "LineNum": 2,
        "Description": "Entertainment for the event",
        "Amount": 1000.0,
        "DetailType": "SalesItemLineDetail",
        "SalesItemLineDetail":
        {
            "ItemRef":
            {
                "value": "6",
                "name": "General services:Entertainment"
            },
            "UnitPrice": 1000,
            "Qty": 1,
            "TaxCodeRef":
            {
                "value": "3"
            }
        }
    },
    {
        "Id": "3",
        "LineNum": 3,
        "Description": "Entertainment for the event",
        "Amount": 1400.0,
        "DetailType": "SalesItemLineDetail",
        "SalesItemLineDetail":
        {
            "ItemRef":
            {
                "value": "6",
                "name": "General services:Entertainment"
            },
            "UnitPrice": 1400,
            "Qty": 1,
            "TaxCodeRef":
            {
                "value": "3"
            }
        }
    },
    {
        "Amount": 3000.0,
        "DetailType": "SubTotalLineDetail",
        "SubTotalLineDetail":
        {}
    }],
    "CustomerRef":
    {
        "value": "1"
    }
}

Sample response

Here is the corresponding response from the above request. A overall transaction sales tax of 480.00 GBP is calculated by QuickBooks Online and returned in TxnTaxDetail.TotalTax. In addition, the response contains a TxnTaxDetail.TaxLine element detailing how the sales tax breaks down into its constituent parts. There is one TaxLine entry for each tax rate represented in the request; multiple occurrences of a tax rate are aggregated into one entry.  So, this response contains two TxnTaxDetail.TaxLine elements: one for tax in line 1 and one that combines tax in line 2 and 3 (since these two lines specify the same tax code). Some content has been omitted in order to showcase sales tax attributes.

Click to see code.
{
   {
    "Invoice":
    {
   ...
        "CurrencyRef":
        {
            "value": "GBP",
            "name": "British Pound Sterling"
        },
        "ExchangeRate": 1,
        "LinkedTxn": [],
        "Line": [
        {
            "Id": "1",
            "LineNum": 1,
            "Description": "Holiday party - gold level",
            "Amount": 2000.0,
            "DetailType": "SalesItemLineDetail",
            "SalesItemLineDetail":
            {
                "ItemRef":
                {
                    "value": "7",
                    "name": "Holiday party:Gold party"
                },
                "UnitPrice": 2000,
                "Qty": 1,
                "TaxCodeRef":
                {
                    "value": "2"
                }
            }
        },
        {
            "Id": "2",
            "LineNum": 2,
            "Description": "Entertainment for the event",
            "Amount": 1000.0,
            "DetailType": "SalesItemLineDetail",
            "SalesItemLineDetail":
            {
                "ItemRef":
                {
                    "value": "6",
                    "name": "General services:Entertainment"
                },
                "UnitPrice": 1000,
                "Qty": 1,
                "TaxCodeRef":
                {
                    "value": "3"
                }
            }
        },
        {
            "Id": "3",
            "LineNum": 3,
            "Description": "Entertainment for the event",
            "Amount": 1400.0,
            "DetailType": "SalesItemLineDetail",
            "SalesItemLineDetail":
            {
                "ItemRef":
                {
                    "value": "6",
                    "name": "General services:Entertainment"
                },
                "UnitPrice": 1400,
                "Qty": 1,
                "TaxCodeRef":
                {
                    "value": "3"
                }
            }
        },
        {
            "Amount": 4400.0,
            "DetailType": "SubTotalLineDetail",
            "SubTotalLineDetail":
            {}
        }],
        "TxnTaxDetail":
        {
            "TotalTax": 480.0,
            "TaxLine": [
            {
                "Amount": 0,
                "DetailType": "TaxLineDetail",
                "TaxLineDetail":
                {
                    "TaxRateRef":
                    {
                        "value": "2"
                    },
                    "PercentBased": true,
                    "TaxPercent": 0,
                    "NetAmountTaxable": 2000.0
                }
            },
            {
                "Amount": 480.0,
                "DetailType": "TaxLineDetail",
                "TaxLineDetail":
                {
                    "TaxRateRef":
                    {
                        "value": "4"
                    },
                    "PercentBased": true,
                    "TaxPercent": 20,
                    "NetAmountTaxable": 2400.0
                }
            }]
        },
        "CustomerRef":
        {
            "value": "1",
            "name": "Adwin Ko"
        },
...
    },
    "time": "2017-09-18T10:43:20.143-07:00"
}
}

Overriding sales tax

To override automatic sales tax calculation for a given tax rate, supply a TxnTaxDetail element in the create request with the following fields set:

  • TxnTaxDetail.TotalTax—the new total tax amount.
  • TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef—the tax rate that is overridden. You must send all TaxRateRefs of a TaxCode even if you are modifying just one of them.
  • TxnTaxDetail.TaxLine.Amount—The amount of tax contributed by the tax rate.
  • TxnTaxDetail.TaxLine.TaxLineDetail.TaxPercent—The new tax percent to use.

A QuickBooks company file comes pre-populated with tax rates.  Some tax rates are non-editable and an attempt to override them generates a  business validation error. Non-editable tax rates are those whose TaxRate.DisplayType attribute is set to ReadOnly.

{
    "Fault": {
        "Error": [{
            "Message": "A business validation error has occurred while processing your request",
            "Detail": "Business Validation Error: Unexpected Internal Error. (-37100)",
            "code": "6000",
            "element": ""
        }],
        "type": "ValidationFault"
    },
    "time": "2015-09-30T09:07:35.030-07:00"
}

Sample request

The sample Invoice create request below overrides the 20% rate defined by the 20.0% S tax code with 10%.  A sales tax of £8.90 is applied to the £89.00  sales amount thus suppressing QuickBooks Online automatic sales tax calculation. . 

  • The TxnTaxDetail.TotalTax attribute explicitly defines £8.90 total tax.
  • the TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef attribute specifies the tax rate to be overridden.
  • The TxnTaxDetail.TaxLine.Amount attribute explicitly defines £8.90 total tax.
  • The TxnTaxDetail.TaxLine.TaxLineDetail.TaxPercent attribute explicitly defines the 10.0% tax rate. 
Click to see code.
    {
        "Line": [{
            "Amount": 89.00,
            "DetailType": "SalesItemLineDetail",
            "SalesItemLineDetail": {
                "ItemRef": {
                    "value": "18",
                    "name": "Name Badges"
                },
                "Qty": 5,
                "TaxCodeRef": {
                    "value": "3",
                    "name": "20.0% S"
                }
            }
        }],
        "TxnTaxDetail": {
            "TaxLine": [{
                "Amount": 8.90,
                "DetailType": "TaxLineDetail",
                "TaxLineDetail": {
                    "TaxRateRef": {
                        "value": "4",
                        "name": "SS-20.0"
                    },
                    "PercentBased": true,
                    "TaxPercent": 10.0,
                    "NetAmountTaxable": 89.0
                }
            }],
            "TotalTax": 8.9
        },
        "CustomerRef": {
            "value": "1"
        }
    }

Sample response

Here is the corresponding response from the above request. Some content has been omitted in order to showcase sales tax attributes. 

Click to see code.
{
    "Invoice": {
        ...
        "Line": [{
            "Id": "1",
            "LineNum": 1,
            "Amount": 89.0,
            "DetailType": "SalesItemLineDetail",
            "SalesItemLineDetail": {
                "ItemRef": {
                    "value": "18",
                    "name": "Name Badges"
                },
                "Qty": 5,
                "TaxCodeRef": {
                    "value": "3"
                }
            }
        }, {
            "Amount": 89.0,
            "DetailType": "SubTotalLineDetail",
            "SubTotalLineDetail": {}
        }],
        "TxnTaxDetail": {
            "TotalTax": 8.9,
            "TaxLine": [{
                "Amount": 8.9,
                "DetailType": "TaxLineDetail",
                "TaxLineDetail": {
                    "TaxRateRef": {
                        "value": "4"
                    },
                    "PercentBased": true,
                    "TaxPercent": 20,
                    "NetAmountTaxable": 89.0
                }
            }]
        },
        "CustomerRef": {
            "value": "1",
            "name": "Adwin Ko"
        },
        ...
        "GlobalTaxCalculation": "TaxExcluded",
        "TotalAmt": 97.9,
        "HomeTotalAmt": 97.9,
        "PrintStatus": "NeedToPrint",
        "EmailStatus": "NotSet",
        "Balance": 97.9
    },
    "time": "2015-09-29T14:49:17.397-07:00"
}

Specifying purchase tax

For each purchase item line subject to purchase tax, set its PurchaseItemLineDetail.TaxCodeRef attribute to reference the applicable TaxCode object. When creating or updating purchase transactions, QuickBooks Online automatically calculates tax and returns the amount in the TxnTaxDetail.TotalTax attribute of the transaction based on the TaxCode assigned to each line.

Sample create request

In the Bill create request below, purchase tax is calculated using the rate defined by the GST on non-capital TaxCode definition. 

Click to see code.
{
    "Line": [{
        "Id": "1",
        "Amount": 200.0,
        "DetailType": "AccountBasedExpenseLineDetail",
        "AccountBasedExpenseLineDetail": {
            "AccountRef": {
                "value": "93",
                "name": "Janitorial Expense"
            },
            "BillableStatus": "NotBillable",
            "TaxCodeRef": {
                "value": "2",
                "name": "GST on non-capital"
            }
        }
    }],
    "VendorRef": {
        "value": "37",
        "name": "Jennifer Hargreaves"
    },
    "GlobalTaxCalculation": "TaxExcluded"
}

Sample response

Here is the corresponding response from the above request. A transaction tax of $20.00 is calculated by QuickBooks Online and returned in TxnTaxDetail.TotalTax. In addition, the response contains a TxnTaxDetail.TaxLine attribute detailing how the purchase tax breaks down into its constituent parts, based on the the GST on non-capital TaxCode definition.  Some content has been omitted in order to showcase purchase tax attributes.

Click to see code.
{
    "Bill": {
 ...
        "Line": [{
            "Id": "1",
            "Amount": 200.0,
            "DetailType": "AccountBasedExpenseLineDetail",
            "AccountBasedExpenseLineDetail": {
                "AccountRef": {
                    "value": "93",
                    "name": "Janitorial Expense"
                },
                "BillableStatus": "NotBillable",
                "TaxCodeRef": {
                    "value": "2"
                }
            }
        }],
        "TxnTaxDetail": {
            "TotalTax": 20.0,
            "TaxLine": [{
                "Amount": 20.0,
                "DetailType": "TaxLineDetail",
                "TaxLineDetail": {
                    "TaxRateRef": {
                        "value": "1"
                    },
                    "PercentBased": true,
                    "TaxPercent": 10,
                    "NetAmountTaxable": 200.0
                }
            }]
        },
        "VendorRef": {
            "value": "37",
            "name": "Jennifer Hargreaves"
        },
...
        "GlobalTaxCalculation": "TaxExcluded"
    },
    "time": "2015-09-09T13:08:46.331-07:00"
}

Overriding purchase tax

To override automatic purchase tax calculation, supply a TxnTaxDetail element in the create request with the following fields set:

  • TxnTaxDetail.TotalTax—the new total tax amount.
  • TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef—the tax rate that is overriden. You must send all TaxRateRefs of a TaxCode even if you are modifying just one of them.
  • TxnTaxDetail.TaxLine.Amount—The amount of tax contributed by the tax rate.
  • TxnTaxDetail.TaxLine.TaxLineDetail.TaxPercent—The new tax percent to use.

A QuickBooks company file comes pre-populated with tax codes. Some of these auto-generated tax codes are non-editable and tax amount for such tax codes cannot be overridden.  An attempt to do so will generate a business validation error.

{
    "Fault": {
        "Error": [{
            "Message": "A business validation error has occurred while processing your request",
            "Detail": "Business Validation Error: Unexpected Internal Error. (-37100)",
            "code": "6000",
            "element": ""
        }],
        "type": "ValidationFault"
    },
    "time": "2015-09-30T09:07:35.030-07:00"
}

Sample request

The sample Bill create request below overrides the 20% rate defined by the 20.0% S tax code with 10%.  A purchase tax of £61.88 is applied to the £618.75 bill amount thus suppressing QuickBooks Online automatic sales tax calculation.

  • The TxnTaxDetail.TotalTax attribute explicitly defines £61.88 total tax.
  • The TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef attribute specifies the tax rate to be overridden.
  • The TxnTaxDetail.TaxLine.Amount attribute explicitly defines £61.88 total tax.
  • The TxnTaxDetail.TaxLine.TaxLineDetail.TaxPercent attribute explicitly defines the 10.0% tax rate. 
Click to see code.
{
       "Line": [
          {
            "Description": "promotional items -- misc engraved items",
            "Amount": 618.75,
            "DetailType": "ItemBasedExpenseLineDetail",
            "ItemBasedExpenseLineDetail": {
              "ItemRef": {
                "value": "12",
                "name": "Promotional items -- misc"
              },
              "UnitPrice": 8.25,
              "Qty": 75,
              "TaxCodeRef": {
                "value": "3",
                "name":"20.0% S"
              }
            }
          }
        ],
        "TxnTaxDetail": {
          "TotalTax": 61.88,
          "TaxLine": [
            {
              "Amount": 61.88,
              "DetailType": "TaxLineDetail",
              "TaxLineDetail": {
                "TaxRateRef": {
                  "value": "3"
                },
                "PercentBased": true,
                "TaxPercent": 10,
                "NetAmountTaxable": 618.75
              }
            }
          ]
        },
        "VendorRef": {
          "value": "57",
          "name": "Hall's Promo Items"
        }
}

Sample response

Here is the corresponding response from the above Bill create request. Some content has been omitted in order to showcase purchase tax attributes. 

Click to see code.

  "Bill": {
...
    "Line": [
      {
        "Id": "1",
        "Description": "promotional items -- misc engraved items",
        "Amount": 618.75,
        "DetailType": "ItemBasedExpenseLineDetail",
        "ItemBasedExpenseLineDetail": {
          "BillableStatus": "NotBillable",
          "ItemRef": {
            "value": "12",
            "name": "Promotional items -- misc"
          },
          "UnitPrice": 8.25,
          "Qty": 75,
          "TaxCodeRef": {
            "value": "3"
          }
        }
      }
    ],
    "TxnTaxDetail": {
      "TotalTax": 61.88,
      "TaxLine": [
        {
          "Amount": 61.88,
          "DetailType": "TaxLineDetail",
          "TaxLineDetail": {
            "TaxRateRef": {
              "value": "3"
            },
            "PercentBased": true,
            "TaxPercent": 20,
            "NetAmountTaxable": 618.75
          }
        }
      ]
    },
    "VendorRef": {
      "value": "57",
      "name": "Hall's Promo Items"
    },
...
}

Rounding rules for tax calculation

QuickBooks Online calculates tax based on the total of taxable Line.Amount attributes in the transaction. A Line.Amount is calculated automatically from the UnitPrice value passed in with the line, if present.  If a UnitPrice is not present, QuickBooks Online uses the value of Line.Amount directly. If both UnitPrice and Line.Amount are passed in, the value in Line.Amount is discarded and the calculated value is used instead.

  • UnitPrice fields have a precision of seven decimal places.
  • Line.Amount fields have a precision of two decimal places.
  • If first non-significant figure is >=5, the last significant figure is rounded up.  Otherwise, it it rounded down.

The rounding precision for  tax calculations is designed for two decimal place precision in QuickBooks Online. When inputing numbers into the UI or the API, you need to take this rounding into account. Tax is applied to the Line.Amount fields after whatever rounding was necessary to get them to two decimal places. As such, if you are entering numbers based on UnitPrice, then you need to be aware that your number can potentially be rounded twice before tax is applied.

The table below contrasts the effects of rounding on the final stored value of Line.Amount and corresponding sales tax on that amount.

Input UnitPrice
(input with 8 places)

Saved UnitPrice
​(rounded to 7 places)
Line.AmountSaved Line.Amount
(rounded to 2 places)

Calculated Tax
(where tax rate = 12%)

37.3749999937.375000037.3750000
(calculated)
37.384.49
  37.37499999
(input directly)
37.374.48

Tax inclusive transactions

For transactions that are inclusive of tax, that is GlobalTaxCalculation=TaxInclusive, the pre-tax transaction amount is the sum of pre-tax amounts rounded off per line rather than rounded off the total amount. For example, consider the following:

  • An invoice with one line, whose amount is £20.00 inclusive of 20% tax: tax is calculated on base amount of £16.67, resulting in £3.33 of tax. 
  • An invoice with five lines, each amount is  £4.00 inclusive of 20% tax: base amount of each line is £3.33 and tax is calculated on £16.65 (5 x $3.33), resulting in £3.35 of tax.

Apps need to take this into account with tax inclusive transactions.

Sample request body

The sample Invoice request below shows how to specify line amount and sales tax for tax inclusive transactions.

Click to see code
{
    "Line": [{
        "Amount": 16.67,
        "DetailType": "SalesItemLineDetail",
        "SalesItemLineDetail": {
            "UnitPrice": 16.67,
            "Qty": 1,
            "TaxCodeRef": {
                "value": "3",
                "name": "20.0% S"
            }
        }
    }],
    "GlobalTaxCalculation": "TaxInclusive",
    "TxnTaxDetail": {
        "TaxLine": [{
            "Amount": 3.33,
            "DetailType": "TaxLineDetail",
            "TaxLineDetail": {
                "TaxRateRef": {
                    "value": "4",
                    "name": "SS-20.0"
                },
                "PercentBased": true,
                "NetAmountTaxable": 16.67
            }
        }],
        "TotalTax": 0
    },
    "CustomerRef": {
        "value": "1"
    }
}

Sample response body 

Here is the corresponding response from the above Invoice create request. Some content has been omitted in order to showcase the resulting tax calculation. 

Click to see code
 {
      "Invoice": {
          ...
          "Line": [{
              "Id": "1",
              "LineNum": 1,
              "Amount": 16.67,
              "DetailType": "SalesItemLineDetail",
              "SalesItemLineDetail": {
                  "ItemRef": {
                      "value": "1",
                      "name": "Services"
                  },
                  "UnitPrice": 16.67,
                  "Qty": 1,
                  "TaxCodeRef": {
                      "value": "3"
                  }
              }
          }, {
              "Amount": 16.67,
              "DetailType": "SubTotalLineDetail",
              "SubTotalLineDetail": {}
          }],
          "TxnTaxDetail": {
              "TotalTax": 3.33,
              "TaxLine": [{
                  "Amount": 3.33,
                  "DetailType": "TaxLineDetail",
                  "TaxLineDetail": {
                      "TaxRateRef": {
                          "value": "4"
                      },
                      "PercentBased": true,
                      "TaxPercent": 20,
                      "NetAmountTaxable": 16.67
                  }
              }]
          },
          "CustomerRef": {
              "value": "1",
              "name": "Adwin Ko"
          },
          ...
      }
  }

Working with tax codes

Use a TaxCode object anywhere throughout the data model where it is required to specify the tax of a transaction. A TaxCode object represents a tax group (TaxCode.TaxGroup=true) that combines one or more TaxRate components, as applicable to the tax. It can specify a sales tax, a purchase tax, or both. For example, the sales tax for GST is a tax group composed of the single tax rate, GST (sales): A sandbox company is pre-populated with several TaxCode objects. 

Click to see the GST object.
{
        "Name": "GST",
        "Description": "GST",
        "Active": true,
        "Taxable": true,
        "TaxGroup": true,
        "SalesTaxRateList": {
          "TaxRateDetail": [
            {
              "TaxRateRef": {
                "value": "20",
                "name": "GST (sales)"
              },
              "TaxTypeApplicable": "TaxOnAmount",
              "TaxOrder": 0
            }
          ]
        },
        "PurchaseTaxRateList": {
          "TaxRateDetail": []
        },
        "domain": "QBO",
        "sparse": false,
        "Id": "10",
        "SyncToken": "0",
        "MetaData": {
          "CreateTime": "2015-08-07T21:52:57-07:00",
          "LastUpdatedTime": "2015-08-07T21:52:57-07:00"
        },
  "time": "2015-08-18T15:59:55.113-07:00"
}

How transactions use tax codes

Each line in the transaction references an actual TaxCode that is applied to the line. An actual TaxCode always references one or more TaxRate entities in either the SalesTaxRateList, the PurchaseTaxRateList, or both.The image below shows how the TaxCode object, GST, is referenced in an Invoice. 

File:0100_Accounting/0300_Developer_Guides/Global_tax_model/Non-US_sales_tax_integrations/IntlTaxCode.png

The TxnTaxDetail element summarizes the tax for the entire transaction. It contains a TaxRate object reference for each component of the sales tax. In this case there are two underlying components to the tax rate, Vat @ 0 and VAT @ 20%.  Note the Amounts are Tax exclusive setting, represented in the object by the GlobalTaxCalculation attribute. This means the amount on each line is the base amount without tax applied; information in the TxnTaxDetail section provides the tax amount.

UKTxnTaxDetail.png
 

Working with tax rates

A TaxRate object specifies the amount of tax imposed by a given tax agency. It is not used directly in transaction, but is a building block used in creating higher level tax code definitions. Create TaxRate objects with the TaxService entity. Non-US editions of QuickBooks Online support tax rates for both sales and purchase transactions.The image below shows how this object relates to the QuickBooks user interface showing VAT rate settings.

UKTaxRates.png

Working with tax agencies

A tax agency is associated with a tax rate and is the authority that collects those taxes. It is defined in the data model with the TaxAgency entity. It is not used directly in transaction or list objects, but is a building block used to create higher level tax rate and tax code definitions. The image below shows how this entity relates to the Tax Centre in the QuickBooks Online UI.

AUTaxAgency.png

Learn more

View the TaxCode reference here and TaxAgency here.


Did you find this page helpful?
Your feedback helps us make our docs better. Please let us know if this page helped you, or if it needs improvement.

 Got Questions? Get Answers in our developer forums.