Here is the error when sending the invoice to Xero:
ERROR creating Xero invoice: ErrorNumber: 10 ErrorType: ValidationException Message: A validation exception occurred Detail: The TaxType code ‘EXEMPTEXPENSES’ cannot be used with account code ‘280’
You can see with the error message that it doesn’t pickup the correct tax code (GST) that is being used in woocommerce. If there is a charge for shipping to the customer, say $25, this should be including the tax amount if it has been specified (which it has).
Refer to WooCommerce, Settings, Tax, Standard Rates, there is a setup tax rate GST at 10% which also has the Shipping flag on.
Hi @davidgaven,
Thanks for providing details regarding GST allocation on Shipping Charges,
Are you able to reach out to us on hello@shippit.com so we can work with you on resolving this one?
Just ask to speak with Alex or Matthew regarding the WooCommerce integration and Taxation Calculation and we’ll be in touch
Regards,
Matthew
Thanks for the follow-up, email sent.
Just following up for anyone that might come across a similar issue in future…
Version 1.3.5 of the Shippit module resolves this issue, so that taxation amounts on the shipping quote is based on your WooCommerce taxation preferences.
If you still encounter a similar error such as “The TaxType code ‘EXEMPTEXPENSES’ cannot be used with account code ‘{{ACCOUNTID}}’”, you may need to confirm that the WooCommerce account ID and Xero Shipping Account Type matches – this is, whether shipping costs are treated as Expenses or as Income.
Having the incorrect account setting in the Xero integration will cause the Xero integration to fail, as it’s setting a tax type not supported by the account.