Thred
Log inBook a demoBook a demo

Cash coding in Xero: how to code and reconcile bank lines in bulk, split a line and avoid duplicates

Manoj Tutika · Published 4 November 2026 · Last checked 20 November 2026

Working on this yourself? Talk to Mark, our co-founder. He helps finance teams go AI-native, and accounting firms put the latest AI to work safely and predictably.

Book a demo

What is cash coding in Xero?

Cash coding is the fast lane of bank reconciliation. The normal Reconcile tab shows one statement line at a time with a suggested match beside it. The Cash coding tab shows the unreconciled lines of a bank account as a grid, up to 200 at once, where you fill in the payee, account and tax rate and reconcile a whole selection with one button.

The detail that matters is what happens behind that button. Xero says cash coding creates a new receive or spend money transaction for every line you reconcile. It is built for cash transactions with nothing in Xero yet, such as bank charges, card purchases and interest. It is the wrong tool for anything already recorded, because you would record it a second time.

Cash coding makes typing faster. It does not decide what each line is. Thred's agents do that part in your own Xero organisation: they read the receipt and the history behind a line, propose the account, VAT rate and tracking, and show you the transaction for approval before it is created.

Who can use cash coding, and why is the tab missing?

You need the administrator role, or the standard role with the edit cash coding permission. If the tab is not there, your role is the first thing to check. Someone with the edit users permission can switch it on for you in your user settings.

The tab also belongs to a bank account, not to the menu. If you are looking for it under Accounting, open a bank account first.

What should you reconcile before you cash code?

Xero's own list is the best protection against duplicates. On the Reconcile tab, deal with these first.

  • Payments of sales invoices and bills
  • Credit note refunds
  • Overpayments and prepayments
  • Expense claims
  • Transfers between your bank accounts
  • Any spend or receive money transaction you have already entered

What remains is true cash coding material. Xero helps here by hiding lines that have a suggested match. The Show lines with suggested matches checkbox brings them back, each marked with a green tick. Leave it unticked unless you have a reason. The Collector and The Payer take care of the first two items on that list by matching receipts to invoices and payments to bills, so those lines are gone before anyone opens the grid.

How do you cash code bank lines in Xero?

  1. In the Accounting menu, select Bank accounts.
  2. Click the name of the bank account.
  3. Select the Cash coding tab.
  4. Sort the grid by clicking a column heading, for example the payee. Do this before you type anything, because sorting later can lose your changes.
  5. Tick the checkbox on each line that should get the same coding.
  6. Choose the account in the Account field of one of them. When you move to the next field, Xero applies that account to every ticked line.
  7. Fill in the other fields if you want them, then click Save & Reconcile Selected.

The payee, description and tracking fields are optional. If you leave the payee empty, Xero books the transaction to a contact called Unknown. When the payee is already a contact, start typing the name and pick it from the list, so that you do not create a second contact with the bank's spelling.

Xero recommends reconciling fewer than 100 lines at a time. The Shortcut keys link on the tab lists the keyboard shortcuts.

How do bank rules work with cash coding?

A line that already shows a description, account and tax rate has a bank rule applied to it. Tick those lines and click Save & Reconcile Selected to accept them in one go. To apply a rule to lines it did not catch, tick them, click Apply rule and choose the rule.

You can also create a rule while you are cash coding, which is the right moment, because you have just seen the same payee five times. How to build rules that last is in Xero bank rules.

Which tool for which bank line
The line isUseWhy
A customer paying an invoice, or you paying a billReconcile tab, matchThe transaction exists. Cash coding would create it again
A transfer between your own accountsReconcile tab, TransferBoth accounts must show the movement
A regular charge with the same text every timeBank rule, accepted in cash codingOne click for the whole group
A one-off card purchase or bank feeCash codingA new spend money transaction is what you need
A line nobody can explainDiscuss tab, or a suspense accountCoding a guess in bulk hides the question

How do you split a line in cash coding?

One payment sometimes belongs to two accounts, tracking options or tax rates.

  1. Click the arrow at the end of the line and select Split.
  2. Enter a row for each part, with its own account and tax rate.
  3. Click Save, then Save & Reconcile Selected.

If the split will not save, Xero gives three things to check. Delete any empty row. Give every row an account and a tax rate. Make sure the rows add up to the amount of the bank line.

What does a worked example look like?

A small agency opens the Cash coding tab on its current account on 10 November. Ten lines are waiting, and one more is hidden because it has a suggested match.

The lines and how they are coded
DatePayeeAmountCoded to
3 NovTfL travel charge£5.60Travel
4 NovTfL travel charge£2.80Travel
6 NovTfL travel charge£8.40Travel
4 NovPost Office£15.90Postage
6 NovPost Office£7.35Postage
5 NovMonthly account fee£12.50Bank fees, by bank rule
7 NovCard terminal rental£18.00Bank fees, by bank rule
8 NovOnline marketplace order£64.98Split into £39.99 Office supplies and £24.99 Staff welfare
9 NovInterest received£3.12Interest income
10 NovCard payment, unknown merchant£41.00Left for the Discuss tab
10 NovHarlow Print£850.00Hidden. It matches a bill and is reconciled on the Reconcile tab

The bookkeeper sorts by payee, ticks the three travel lines and chooses Travel once, does the same for postage, accepts the two rule lines, splits the marketplace order and codes the interest. Nine lines are reconciled in a few minutes.

The entries cash coding creates, shown gross
AccountDebitCredit
Travel£16.80
Postage£23.25
Bank fees£30.50
Office supplies£39.99
Staff welfare£24.99
Business bank account, money out£135.53
Business bank account, money in£3.12
Interest income£3.12

Xero takes the VAT out of each line according to the tax rate on it, so check that column before you save. The account's default rate is filled in for you, and a default applied to nine lines at once is nine errors if it is wrong.

What mistakes do people make with cash coding?

  • Cash coding a customer receipt to sales. The invoice stays unpaid, revenue is counted twice and the customer gets a reminder. Fixing it means deleting the new transaction with Remove & Redo and matching the line properly, as described in duplicate transactions in Xero.
  • Ticking Show lines with suggested matches and then coding everything in sight.
  • Leaving the payee blank, which fills the contact list's Unknown entry with hundreds of transactions that say nothing about who was paid.
  • Using it to clear a backlog at year end without receipts. The bank is reconciled and the VAT has no evidence behind it. The Connector looks for the missing receipt in email and connected tools before a line is coded, so the VAT claim has a document attached.
  • Coding lines nobody understands to a general expense account, because the grid makes it easy. Those belong in the Discuss tab or a suspense account.
  • Forgetting tracking. The optional field stays empty, and the department report loses the cost.

A separate guide covers find and recode in Xero for coding that has to be changed afterwards.

How does Thred handle the lines you would cash code?

The lines that would end up in the cash coding grid are the ones Thred codes for you, working in Xero through its API. It creates and updates records such as spend and receive money transactions, bills and payments, and every write is shown to you for approval first.

You ask, "Code last week's card payments and show me the ones without a receipt." For each payment The Bookkeeper looks at how that payee was coded before, reads the receipt if there is one and proposes the contact, account, VAT rate and tracking option. You get one list. Most lines are ready to approve. A few are marked with what is missing, such as a £41.00 payment with no receipt and no history. When you approve, the agent creates the transactions with the documents attached, and each statement line has its match waiting on the Reconcile tab.

The difference from cash coding is where the judgement sits. In the grid you decide each line and Xero types it. With Thred the agent decides, shows its reasons and you check. The Accountant reviews the VAT rate on every proposed line, and The Analyst notices when a cost category moves against last month. Thred does not operate the Cash coding screen itself, and accepting a match stays your click. The general approach is in bank reconciliation: how to automate it.

Count the lines you cash coded last month, then see how many the agent would have prepared with a receipt attached. A demo with Mark Holleman, co-founder of Thred, runs on your own Xero organisation, and that demo is how you try Thred at the moment.

Frequently asked questions

Where is cash coding in Xero?

In the Accounting menu, select Bank accounts, click the name of the bank account and select the Cash coding tab.

Why can I not see the Cash coding tab in Xero?

Your user role does not include it. You need the administrator role or the standard role with the edit cash coding permission. A user who can edit users can add the permission.

Does cash coding create duplicate transactions?

It can. Cash coding always creates a new spend or receive money transaction. If the payment was already recorded as an invoice payment, bill payment or transfer, you now have it twice. Reconcile those lines on the Reconcile tab first.

How many lines can I cash code at once in Xero?

The grid shows up to 200 lines. Xero recommends reconciling fewer than 100 at a time.

How do I undo cash coding in Xero?

Open the transaction from the Account transactions tab of the bank account, click Options and select Remove & Redo. That deletes the transaction and returns the statement line to the unreconciled list.

Can Thred do my cash coding in Xero?

Thred does the deciding. It proposes the contact, account, VAT rate and tracking for each cash line from the receipt and the payee's history, and creates the transactions after you approve them. It does not use the Cash coding screen, and you accept the bank matches in Xero.

Sources

  1. Xero Central, Reconcile statement lines in bulk (cash coding) (checked 20 November 2026)
  2. Xero Central, Reconcile your bank account (checked 20 November 2026)
  3. Xero Central, Create a bank rule (checked 20 November 2026)
  4. Xero Central, Fix an incorrectly reconciled bank statement line (checked 20 November 2026)
  5. Xero Central, Create a spend money transaction (checked 20 November 2026)
  6. Xero Developer, Accounting API Bank Transactions (checked 20 November 2026)

Read next

Where Thred comes in

Thred Layer

Finance agents running on top of your existing ledger. You set the rules, approve the work and handle the exceptions. No migration.

Finance, handled.

Book a demo, or request a callback and we will call you.

Book a demo