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'?
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.
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"
Make sure to choose the correct tax code based on the account applicability in Xero.