Guides → Wrong account code on approved invoices and bills: a guide for Xero users

Wrong account code on approved invoices and bills: a guide for Xero users

Short answer: Xero's own find and recode usually fixes a wrong account code without any app. It changes the code on many invoice and bill lines at once, whatever their status. Edit in place when only a few are wrong, use a credit note when a sent invoice must be corrected on the record, and use Unapprove only when the documents have to come back as drafts.

Checked against Xero Central on 19 November 2026.

What you can change in place

Many lines at once: find and recode

Xero's find and recode tool changes the account code on many lines in one go. It supports invoices and bills in every status from draft to paid, and needs the administrator role. You can recode the source transactions, or have Xero draft a manual journal and leave the originals showing their original details. Limits:

Which fix fits

OptionWhen it fitsWhat it keepsLimits
Edit the documentA few documentsSame document, number and statusOne at a time
Find and recodeMany lines, same new codeSame documents, recoded in placeAdministrator role, about 200 lines, no undo
Credit note and new invoiceSent invoice to correct on the recordAudit trail for you and the customerTwo new documents
Unapprove, then edit the draftsDocuments must return as draftsNumber, contact, dates, lines, tax, tracking, attachmentsSkips paid, credited and locked documents

When a credit note is better

Xero's page on deleting or voiding an invoice says to edit an invoice you haven't sent and to issue a credit note for one you have, so you and your customer keep an audit trail. A credit note can cover part or all of the amount outstanding (Create and approve a customer credit note), and you then raise the right invoice. If the code was wrong on lines of a sent invoice, check with your accountant whether the record needs that. The void or credit note guide compares the options.

The manual route, step by step

  1. Find the lines. In the Accounting menu, select Find and recode, then Find and recode. Add a condition such as Account, Contact or Date, and click Search.
  2. Check the period. Is any line behind a lock date? Those are view-only. Ask whoever set the date first.
  3. Check what is in scope. Look for credit notes, foreign currency lines and sent invoices, and decide each group's fix.
  4. Select the lines. Tick every line of each document you want to change, up to about 200.
  5. Recode. Click the arrow next to Recode and choose the method. Enter the new account, then click Review.
  6. Confirm and check. Click Confirm. In the Recode Summary, click this search to see what is left; lines you already recoded don't show.

For one invoice, open it from Sales > Invoices, click the menu icon, select Edit, change the account on each line and click Update. Xero says approved invoices can only be edited or voided one at a time (Approve and send an invoice).

Where Unapprove saves time

Unapprove is a web app that works with Xero. It does not change an account code and it does not touch your reports. It turns a selection of approved documents into drafts, so you can correct them in Xero's normal editor and approve them again.

It fits when the code is not the only fix, or each document should be approved again as a fresh draft. If only the account code is wrong, find and recode will be quicker and needs no new documents.

What it skips, and tells you why: documents with a payment applied (why) or a credit note allocated, documents in a locked period (why), and documents for an archived contact (why). For those, edit in place or use a credit note. A document with an attachment over 10 MB, or with more than 10 attachments, can only be voided: it gets no draft copy, and the preview says so. For US organisations it only voids and makes no copies. A void is permanent.

What access it asks for: your name and email to sign you in, read and write on invoices and bills, read and write on attachments, and read-only on organisation settings and contacts.

Price: free for 14 days, with unlimited previews and three documents processed in total. After that, $39 per month per connected organisation, or a one-off $49 Clean-up Pass for 30 days with up to 1,000 documents (larger jobs: $199 or $299). Prices in USD, excluding VAT / sales tax; Paddle adds any that applies at checkout. The pricing page has the details.

Connect and preview free See pricing

Questions

Can I change the account code on an approved invoice in Xero?
Yes. An awaiting payment invoice can be edited in any field, and on a paid invoice Account is one of the fields you can change with the payment in place. Behind a lock date, a user can't edit it.
How many lines can find and recode change at once?
Xero recommends no more than 200 lines at a time, by one user at a time, and it needs the administrator role.
Can I undo a recode?
No. Xero says a recoded line can only be recoded again or edited by hand. Recoding with a manual journal leaves the original showing its original details.
Will Unapprove change the account code for me?
No. It makes a draft copy with the same lines and accounts, and you change the account on the draft.
Who makes Unapprove?
Atesen Software, an independent developer. Unapprove works with Xero through Xero's public API; Xero does not make it and has not endorsed it.

Related guides