Docs

Integrations Articles & FAQ

xero

36225551

2023-08-11T15:25:08Z

2023-11-27T04:00:15Z

333

0

0

260476

The TaxType code 'X' cannot be used with account code 'Y'

The TaxType code 'X' cannot be used with account code 'Y' 

Scope

I am getting an error as “The TaxType code 'X' cannot be used with account code 'Y'?

Xero is throwing error as The TaxType code 'X' cannot be used with account code 'Y'?

Summary

This error message is usually thrown by Xero when the type of GL account provided to the item in the invoice and type of Tax applied to the invoice item do not match.

Examples are

  • The account code 200 is a revenue type while TaxType GSTONIMPORTS is a liability type.

  • EXPENSE account code against a REVENUE tax type

Xero has certain Standard rates based on the Xero version being used. This can be found here https://developer.xero.com/documentation/api/accounting/taxrates

Example: Let's say I have configured Sales Tax on Imports for exempted invoice which is a standard tax rate for US version of Xero

My exempted invoice is associated to an item that has a revenue account

On sync I would receive and error “The TaxType code GSTONIMPORTS cannot be used with account code 33”

Solution:

Make sure to choose the correct tax code based on the account applicability in Xero.

Related Articles 

How to install the Google Chrome Extension for Xero/Quickbooks Reconciliation?
Xero sync error - Payments can only be made against Authorised documents & Payment amount exceeds the amount outstanding on this document.
Where can I see the details for bad debt?
Xero sync error - Price List Item Code must not be more than 30 characters long.
Xero Error : Account code '0000' is not a valid code for this document.
Configuration errors and their resolution for Xero
How to match invoices report to a line item report?
Xero sync errors - A currency rate must be specified
Xero - How to connect two Chargebee sites to one Xero account (Internal)?
Xero - Why is the round off amount so large?
The contact number XXX is already assigned to another contact. The contact number must be unique across all contacts.
How to map existing customers in Chargebee to existing customers in Xero/Quickbooks/NetSuite?
Xero app show error: The chart of account mapping for the plan/addon is not configured‌
Xero Sync Error - Invoice number must be unique
What is Default Sales Tax in Xero integrations?
"[Xero] 1) You have reached the limit of invoices you can approve" while syncing invoices
How to check the lock date in Xero?
Authentication for this Chargebee to Xero connection has expired. Click 'reconnect' to resume data sync
Plan level tracking categories in Xero
Error - Xero 1) Account must be valid. 2) Tax rate must be valid
Why is the round-off amount so large in Xero?
Adding additional email addresses to the customer card in Xero
Save option greyed out while trying to change account mapping on Xero.
Base Currency difference for Chargebee and Xero
Was this article helpful?
Loading…