Thred

Xero bank rules: how to create, edit and find them, and where they stop working

Manoj Tutika · Published 16 November 2026 · Last checked 16 November 2026

Working on this yourself? Talk to Mark, our co-founder. We’re here to solve it with you.

Book a demo

What are bank rules in Xero?

A bank rule tells Xero how to code a bank statement line you see every month and will never raise a bill or invoice for. Bank fees, parking, pension contributions, interest and a monthly sweep to the savings account are the classic cases. When a new line arrives from the bank feed, Xero checks it against your rules from the top of the list down. If a rule fits, Xero suggests a new spend money, receive money or transfer transaction with the contact, account, VAT rate and reference already filled in. You check it and click OK.

Two things follow from that design, and both matter for a finance team. A rule only ever suggests: nothing is reconciled until someone clicks OK. And a rule creates a new cash transaction. Xero's own help centre says that if a statement line relates to an existing transaction, such as a supplier bill or a sales invoice, you should use find & match instead of a rule.

What types of bank rule can you create?

The three bank rule types in Xero
Rule typeApplies toWhat it createsTypical use
Spend money ruleMoney going outA spend money transactionBank charges, parking, pensions, regular travel
Receive money ruleMoney coming inA receive money transactionBank interest, daily cash takings
Transfer money ruleMoney moving between your own accountsA bank transfer between two Xero bank accountsMonthly transfer to a savings or tax reserve account

A rule can apply to one bank account or to every bank account in the organisation.

How do you create a bank rule in Xero?

You can create a rule while reconciling, while cash coding or from the bank rules screen. Creating it from a real statement line is usually quickest, because Xero copies the payee and reference into the conditions and picks the rule type for you.

  1. Open the bank account and go to the Reconcile tab.
  2. Next to the statement line, click Options, then select Create bank rule.
  3. Set the conditions. Choose All conditions match for a strict rule or Any conditions match for a loose one, then pick the field (payee, description, reference, amount, or Any text field) and whether it equals, contains or starts with your text.
  4. Fill in the transaction details: contact, reference, and the allocation to one or more accounts with their VAT rates.
  5. Name the rule and click Save.
  6. Back on the statement line, click OK to apply it.

From the bank rules screen, select Bank rules in the Accounting menu, click Create rule and choose the type. Conditions and rule titles can only contain letters and numbers, so leave out punctuation. You need the administrator role or the standard role with bank accounts access.

How do you find, edit or delete a bank rule?

Go to the Accounting menu, select Bank accounts, click the menu icon and choose Bank Rules. The screen has separate tabs for spend money, receive money and transfer rules, and a search bar that finds partial matches. Click Edit next to a rule to change it. You can also edit while reconciling: on the Create tab of a matching line, click the rule name under Apply rule, or Edit rule.

To delete, tick the rule and click Delete twice. A deleted rule cannot be restored. Editing or deleting a rule does not change transactions it already reconciled, so a wrong rule leaves its mistakes behind in the ledger until you correct them one by one.

Why does the order of your rules matter?

Xero stops at the first rule that fits. If a generic rule for anything containing "lease" sits above a specific rule for one vehicle lease that belongs to a different cost centre, the specific rule never fires. Put the strictest rules at the top and drag rules into order on each tab after every change. Xero's guidance also warns that a very strict rule can stop working when the bank changes which field it puts the payee in.

What can bank rules not do?

Bank rules are pattern matching on the text of one statement line. They cannot open a PDF, look up an open bill or know what a payment was for.

Where Xero bank rules break, and what you need instead
SituationWhat the rule doesWhat the line actually needs
Supplier bill already in XeroCreates a second expense if the rule firesFind & match to the open bill
One payment covering three invoicesCodes the whole amount to one accountMatch against the three bills
Utility bill that changes each monthCodes it, but cannot accrue or check the amountThe bill with its PDF, coded from the document
Stripe or PayPal payout net of feesFixed or percentage split onlyGross sales, fees and refunds from the payout report
Payee name that changes ("ABC Fuel", then "ABC")Misses with equals, overreaches with containsA reviewer who knows the supplier
Personal spend on the company cardCodes it like every other line from that merchantA question to the cardholder

What happens with variable amounts?

A rule can allocate a fixed amount plus percentages of the remainder. That works for a phone bill with a fixed line rental. It does not work for a payroll bureau fee, energy bill or freight invoice where the amount and the VAT change each month. The rule will code the line, but nobody checked it against the invoice, and the VAT on a percentage split is an estimate.

What about payment processors?

Take a Stripe payout of £4,812.40 on 14 November. Behind it are £5,100.00 of card sales, £161.20 of fees and a £126.40 refund. A receive money rule can only put the whole £4,812.40 to sales, or split it by a fixed percentage that is wrong the next day. The right entry books gross sales, the fees and the refund from the payout report, which is why most teams run processor payouts through a clearing account. The method is in how to book Stripe payouts.

How do you keep bank rules under control?

  • Review the rule list once a quarter and delete rules for suppliers you no longer use.
  • Write rules for genuinely recurring cash items only. If a bill or invoice exists, match it.
  • Check the order on each tab after every new rule.
  • During the Xero month-end close, run the account transactions for the accounts your rules post to and look for lines that should have been matched to bills.
  • Use a suspense account, not a guess, for lines nobody can explain yet. See the suspense account in Xero.

What do Thred's agents do with bank lines in Xero?

Bank rules match text. Thred's agents read the document and the history. Thred works on the Xero organisation you already have: the agent reads it through the Xero API and creates and updates records such as bills, contacts, payments and journals, with every write shown to you for approval first.

The Bookkeeper reads the supplier's PDF, checks it against the open bills and the supplier's past coding, books the bill with the document attached and records the payment, so the statement line has the right transaction waiting for one click. It splits a payout into sales, fees and refunds from the processor's data instead of a percentage. The Payer keeps the purchase ledger clean so payments match bills, not rules. The Collector applies customer receipts across several invoices. The Treasurer watches cash and transfers between accounts, The Analyst flags costs that moved against last month, The Connector pulls context from email and connected tools when a line is unclear, The Accountant checks the VAT on every entry and The CFO sees the whole picture. You keep a short rule list for bank charges and let the team handle everything a rule cannot read.

On Exact Online, Thred goes further today with two-way sync and scheduled close agents. See Thred Layer or book a demo.

Frequently asked questions

How do I find bank rules in Xero?

In the Accounting menu, select Bank accounts, click the menu icon and choose Bank Rules. Spend money, receive money and transfer rules each have their own tab, and the search bar finds partial matches.

How do I edit a bank rule in Xero?

Open the Bank Rules screen, select the tab for the rule type and click Edit next to the rule. You can also edit it while reconciling, from the Create tab of a statement line the rule applies to. Changes do not alter transactions the rule already reconciled.

How do I delete a bank rule in Xero?

On the Bank Rules screen, tick the rule, click Delete and confirm. A deleted rule cannot be restored, so you would have to create it again.

Why is my Xero bank rule not working?

Usually a rule higher in the list fits first, the condition uses equals while the bank changed the payee text, or the rule is limited to a different bank account. Check the order on the tab, loosen the condition to contains, and confirm which account the rule applies to.

Do Xero bank rules reconcile automatically?

No. Xero suggests the transaction from the rule on the Reconcile tab and you click OK to reconcile it. During cash coding, a new rule fills in the matching lines, which you still save.

Can a bank rule match a payment to an invoice or bill?

No. Rules create new spend money, receive money or transfer transactions. If a bill or invoice already exists in Xero, use find & match, otherwise you record the cost twice.

What are bank rules in Xero useful for?

Recurring cash items you will never raise a document for: bank charges, interest, parking, pension contributions and regular transfers between your own accounts.

Sources

  1. Xero Central, About bank rules
  2. Xero Central, Create a bank rule
  3. Xero Central, Edit or delete a bank rule
  4. Xero Central, Reconcile your bank account

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