Skip to content

Xero: "The TaxType code does not exist or cannot be used for this type of transaction"

Updated

Invoices or bills fail with The TaxType code 'X' does not exist or cannot be used for this type of transaction, or cannot be used with account code '200'.

Invoices or bills fail with The TaxType code 'X' does not exist or cannot be used for this type of transaction, or cannot be used with account code '200'.

What we checkedWhere
Xero Accounting API response codesdeveloper.xero.com
Real report: TaxType code cannot be used with account 200stackoverflow.com

Check it yourself

  • If the code in quotes is a display name such as 'MOSS Spain 21%' or '20% (VAT on Income)', the connector is sending the label instead of the internal TaxType, which looks like OUTPUT2 or TAX001. Reselect the rate in the connector's tax mapping.
  • If it's a real code, check its direction. Sales rates don't work on bills, and purchase rates don't work on invoices.
  • Check the account. Some accounts restrict which tax rates they accept. Find the account the error names in your chart of accounts and look at its default tax.
  • Archived tax rates also fail. After a rate change (for example a VAT rate change), update the mapping to the new rate.

Still failing?

Email the full error text and one record reference to money@iftodo.ai for a free first look. Remove customer names, amounts and credentials, and never send your accounting password. We'll tell you what the error points to and whether we can help.

Weekly sync checks for €29 a month

For one Shopify or Square to QuickBooks workflow, we check weekly exports for missing or duplicate records and email you when we find a mismatch. We run a sample first to see whether the two exports have matching references.

Ask for a sample check. We agree how to share exports before starting billing. Cancel by email before your next renewal.