Xero bank rules explained: order, examples and fixes
Updated November 2026
Short version: a bank rule tells Xero how to code a statement line that keeps coming back, like bank fees, fuel or a monthly transfer. When a line meets the rule’s conditions, Xero suggests a filled-in transaction and you click OK. Xero checks rules from the top of the list down and uses the first one that matches, so the order matters as much as the conditions.
When to use a bank rule (and when not to)
Use a rule for money in or out that you won’t raise a bill or invoice for: bank fees, interest, card payments for fuel or parking, daily takings, a transfer to savings. If the line pays a bill or invoice that already exists in Xero, don’t write a rule for it. Match it to that bill or invoice with Find & match instead.
The three types
- Spend money rules for money going out. They create a spend money transaction.
- Receive money rules for money coming in. They create a receive money transaction.
- Transfer rules for money moving between your own bank accounts. They create a bank transfer.
Each type has its own tab on the Bank rules screen (Accounting menu → Bank rules), and its own order.
How a rule decides whether to apply
A rule has two halves: the conditions a statement line must meet, and what to fill in when it does.
Conditions can look at the payee, description, reference, analysis code, amount or bank account, or at any text field on the line. Each condition can require the field to equal, contain or start with what you type, or to be blank.
All or Any. With All conditions match, every condition must be true. With Any conditions match, one is enough. All plus equals makes a strict rule that fires rarely. Any plus contains makes a loose rule that catches a lot.
Letters and numbers only. Xero doesn’t allow punctuation or special characters in conditions or rule titles. For a payee shown as “7-Eleven”, use Payee contains Eleven.
What the rule fills in: the contact (an existing contact, a new one, or whatever is in the Payee field), the reference (taken from a field on the line, or typed when you reconcile), and one or more lines, each with an account, tax rate, description and either a fixed amount or a percentage. If you use the Discuss tab, putting [Comments] in a line’s description copies your comment into the transaction.
Run this rule on sets whether the rule applies to one bank account or to all of them.
Order: the part most people get wrong
Xero checks rules in the order they appear on the Bank rules screen and stops at the first match. A broad rule near the top quietly takes lines that a more specific rule further down was written for.
Say you have a rule “Any text field contains insurance” coded to general insurance, and a second rule for your vehicle insurer coded to motor vehicle expenses. If the broad rule sits above, the vehicle premium always lands in general insurance, and the specific rule never gets a chance.
Fix: keep the most specific rules at the top. On the Bank rules screen, open the spend, receive or transfer tab and drag the reorder handle; tick several rules to move them together. Check the order every time you add a rule, because new rules don’t place themselves where you want them.
Four worked examples
| Rule | Type and match | Conditions | Fills in |
|---|---|---|---|
| Monthly bank fee | Spend, All | Payee equals your bank’s name; Description contains fee | Contact: the bank. One line, 100% to Bank Fees |
| Fuel from any station | Spend, Any | Any text field contains fuel; contains petrol; contains your usual station’s name | Contact from the Payee field. 100% to Motor Vehicle Expenses |
| Mobile with some personal use | Spend, All | Payee contains your carrier’s name | A fixed line for the plan fee to Telephone, then the remainder split by percentage between Telephone and personal use (Drawings) |
| Transfer to savings | Transfer, All | Reference contains savings; run on your everyday account | A transfer to the savings account |
Use the account names and tax rates from your own chart of accounts. If in doubt about a tax rate, ask your accountant once and put the answer in the rule.
Why isn’t my bank rule applying?
Work down this list. The first two cause most of it.
- Another rule above it matches first. Search the Bank rules screen for the payee and see which rules could catch the line. Move the specific one up.
- The text isn’t in the field you think. Banks put the same detail in different fields, and a feed can change. On the Reconcile tab, click More details on the statement line to see what is in each field. Switch the condition to Any text field, or from equals to contains.
- All is too strict. With All, one condition that doesn’t match (often an amount that changed) stops the whole rule. Remove the amount, or use Any.
- It runs on a different bank account. Check Run this rule on.
- Wrong type. A spend rule never applies to money coming in, and the reverse. A transfer between your own accounts needs a transfer rule.
- The condition had punctuation. Rewrite it with letters and numbers only (see the tip above).
- It did apply, but nothing is reconciled. A rule only suggests. The line stays unreconciled until you click OK.
Editing, deleting and who can do it
- Editing or deleting a rule doesn’t change transactions already reconciled with it.
- A deleted rule can’t be restored.
- Creating, editing and deleting rules needs the administrator role, or the standard role with bank accounts access.
- You can create a rule from the Bank rules screen, from a statement line while reconciling (Options → Create bank rule), or while cash coding. In cash coding, saving a new rule fills in every matching line on the screen.
Using the same rules in another organisation
Rules belong to one Xero organisation. Xero has no export, import or copy for them, and they aren’t in Xero’s public API, so a new entity, a restructure or a new client with the same suppliers means building the rules again by hand: here is the manual method.
RuleMover is a browser extension for Chrome and Microsoft Edge that does it for you. It reads the rules in one organisation, shows a preview that matches accounts, tax rates, contacts and tracking in the other, then fills in Xero’s own rule form for each one and saves it. It also exports rules to a spreadsheet, so you can keep a library or check them in Excel. Everything stays in your browser.
A$29 for 12 months, download straight after payment, refund within 14 days.
See how it worksUnofficial, not affiliated with Xero.
Questions
- Do bank rules reconcile transactions automatically?
- No. Xero suggests a transaction filled in from the rule, and nothing is created until you check it and click OK.
- Can I have one rule for several bank accounts?
- Yes. Set Run this rule on to all bank accounts.
- Can a rule split a payment across accounts?
- Yes. Add several lines, each with a fixed amount or a percentage of the total, and its own account, tax rate and description.
- Can I export my bank rules to Excel?
- Not in Xero itself. RuleMover can: export and import Xero bank rules with a spreadsheet.
Based on Xero Central’s “About bank rules”, “Create a bank rule” and “Edit or delete a bank rule” articles, checked November 2026.