Practical guide

Supplier Rules: Code the Same Supplier the Same Way Every Time

AI can read an invoice, but it can't know that your electricity bill belongs in Utilities with GST, or that the courier is always approved straight away. That's what supplier rules are for. Set them up once per supplier, and every new bill arrives coded the way you'd have done it yourself.

By BillBjorn team Reviewed November 27, 2026 7 min read

The short answer: A supplier rule tells BillBjorn how to code one supplier's invoices: the account and tax code, how to handle line items, whether bills arrive approved or paid, and whether they can be sent automatically. Test it on a sample invoice, and every new bill from that supplier arrives coded the same way, leaving you to check, not type.

What a supplier rule does

AI reads what's on the invoice: supplier, dates, invoice number, tax, total and lines. A rule adds what's only in your head: how you book that supplier. Together they turn data entry into a quick check.

Rules use your own lists from QuickBooks Online, Xero, Sage Accounting, MYOB or FreshBooks: contacts, accounts, tax codes and, on QuickBooks Online and Xero, classes, locations, tracking categories and projects.

What a rule can set

SettingExample
ContactThe supplier in your accounting software
Doc TypeBill, credit note or receipt
Account and taxUtilities, GST on expenses
ApprovedXero bills arrive as Awaiting Payment instead of Draft
Paid, Paid FromReceipts recorded as already paid from the business card
Due date and currencySupplier's payment terms, foreign-currency suppliers
FieldsDate, number, total and description read automatically, from a fixed position, or by label
Auto-SendRoutine bills sent without review, up to a maximum amount

Line items: four ways to code a bill

Each rule has a Split Mode for how the bill's lines are created:

Split ModeUse it for
Single LineBills that go to one account, such as rent, phone and software
Auto-Code LinesInvoices whose lines belong in different accounts; AI matches each line to your categories using AI Matching Hints. How it works
Split by RulesShared costs split by fixed amounts or percentages. Examples
Split By TaxReceipts mixing taxable and tax-free items. Examples

Writing good AI Matching Hints: list the words that actually appear on the supplier's invoices ("milk, cream, butter" rather than "dairy products"), keep categories distinct so a line fits only one, and add a category for freight or fees if they show up. Lines that fit nothing are flagged "Contains unmatched items" instead of being guessed, which tells you which hint to extend.

When one supplier needs several rules

Some suppliers need different coding depending on what they sent: a trade store invoicing several jobs, a wholesaler supplying two venues, a landlord billing rent and outgoings.

Use "If invoice text contains the words" to add keywords to a rule. The rule then applies only to that supplier's invoices that contain those words, such as "Job 2041", "14 Harbour St" or "Outgoings". Each bill is coded by one rule, so give each keyword rule the full coding, not just the part that differs.

Test before you trust

Every rule can be tested before it touches a new bill:

  • Sample document: upload a recent invoice from the supplier. BillBjorn applies the rule and shows the result, so you can check each value.
  • Keyword test: check that the keywords are found in the sample, and whether existing documents from other suppliers would match too.
  • Auto-Send can only be switched on for a rule with a sample document.

Then watch the first few bills in your accounting software before relying on the rule.

Where to start

  1. List your ten most frequent suppliers; they're usually most of your bills.
  2. Create a rule for each with a sample invoice: start with Single Line for simple bills and Auto-Code Lines for mixed ones.
  3. Tick Approved for suppliers you never need to approve twice.
  4. After a few clean months, consider Auto-Send for the most predictable ones.

Start a 30-day free trial and set up your first rule on a real invoice.

Frequently asked questions

Common questions about supplier rules. More in our knowledge base.

  • What is a supplier rule?

    A set of instructions for one supplier: which account, tax code and line-item handling to use, whether bills arrive approved, and optionally whether they can be sent automatically. BillBjorn applies it to every new invoice from that supplier.

  • Can I have more than one rule for the same supplier?

    Yes. Add keywords under 'If invoice text contains the words', and the rule only applies to that supplier's invoices containing those words, for example a job number, a site address or a product type.

  • How do I test a rule?

    Upload a sample invoice to the rule. BillBjorn applies the rule to it and shows the result, so you can check every value before the rule is used on new bills. Keyword tests also show whether existing documents from other suppliers would match.

  • Can rules record receipts as already paid?

    Yes. Mark the rule as Paid and set the account it was paid from, and receipts are recorded as expenses or spend-money transactions instead of bills.

  • Do I need a rule for every supplier?

    No. Start with the suppliers you see most often. Invoices from other suppliers are still read by AI and can be coded on review.

Keep reading

All guides in AI invoice data entry

Start your free 30-day BillBjorn trial today