Docs

Log into read the version of docs relevant to your site.

Xero Error : Account code '0000' is not a valid code for this document.

Problem Statement

Xero returns "Account code '0000' is not a valid code for this document" when syncing invoices. This happens when the account (account type code) sent for the item/plan does not exist or is invalid in your Xero chart of accounts.

Solution

Map a valid accounting code from your Xero chart of accounts at the plan and addon level for the items on the invoice. Check Components of an account in your chart of accounts (Xero) and use a code that exists in Xero.

For one-time charges, ensure the chart of accounts selected for "One time charges" under Apps > Xero > Manage mapping is a valid account code in your Xero organisation.

After updating the mapping, run sync again; the error should be resolved.

Was this article helpful?