Skip to content
Skip to content

Practical accounting administration guide · By Yes AI

How to set coding rules for supplier bills

Published 6 min read

Most supplier bills in a client file should code the same way every month. The work is in deciding which suppliers can follow a fixed rule, which need a person, and how a rule gets changed. This guide covers coding rules for accounts payable as administrative setup. GST treatment and account classification remain decisions for the responsible accountant or BAS agent.

Quick answer

Coding rules tell the ledger, or an automation, which account and tax rate to apply to each supplier's bills. In Xero, a contact's default tax rate takes priority over the account's default, and an inventory item's default account takes priority over the contact's. Set fixed rules only for suppliers whose bills are consistent, send mixed or unusual bills to a person, and test the rules against bills a person has already approved.

Accounts officer in a Perth office sorting a stack of supplier bills into groups beside a laptop
Sorting suppliers by how consistent their bills are is the first step in setting coding rules.

What is a supplier coding rule?

A coding rule pairs a supplier, or a pattern on the bill, with an account in the chart of accounts, a tax rate and sometimes a tracking category. Ledgers store these as defaults on the contact, the inventory item or the account. Xero applies supplier defaults when it creates a bill, and for bills emailed into Xero with no supplier or organisation defaults, it predicts account codes from earlier bills from the same supplier. Automation tools can add their own rules on top. A rule saves time only when the person reviewing the bill can see where each suggestion came from.

Which suppliers suit a fixed rule?

Fixed rules suit suppliers whose bills always describe the same kind of purchase: a phone plan, rent, a software subscription or a cleaning contract. They suit poorly for suppliers who sell many kinds of goods, such as a hardware chain, an office supplier or an online marketplace, where one bill can hold consumables, equipment and items for private use. Sort each client's suppliers by the number of bills over the past year, then place each one in a group. The few suppliers that send most of the bills are where rules save the most keying.

  • Fixed rule: same account, same tax rate and same tracking on every bill.
  • Rule with review: the usual account is suggested and a person confirms it before approval.
  • Always manual: mixed purchases, capital items, private use or a new supplier.

How does Xero choose the account and tax rate?

Xero Central sets out the order. For tax rates on most transaction types, Xero uses the contact's default tax rate first, then the inventory item's default if an item is on the line, then the default tax rate of the account code. For accounts, the inventory item's default account comes first and the contact's default account second. For bills emailed in, Xero says supplier defaults override organisation settings, and details it reads from the bill can override supplier defaults. When a rule produces an odd result, check each of these layers before changing anything in an automation tool.

MYOB and QuickBooks Online also let you store defaults against suppliers and accounts. Check their help pages for the order they apply, and write down which layer wins before adding rules from another tool on top.

Which tax rates need a person to decide?

In Xero's Australian basic tax rates, a bill line can carry GST on Expenses, GST Free Expenses, BAS Excluded or GST on Imports, and the advanced set adds rates such as GST on Capital and Input Taxed. Xero notes that GST Free lines are included in the activity statement and BAS Excluded lines are not. A supplier default that is right for most bills can still be wrong for one line. Send to a person any bill that mixes taxable and GST-free items, shows no GST from a supplier that usually charges it, lacks the supplier's ABN or includes an asset purchase.

  • Bills with taxable and GST-free items need a separate line for each tax rate.
  • The ATO's tax invoice rules require the seller's ABN, and the buyer's identity or ABN on sales of $1,000 or more.
  • Capital purchases and private use are decisions for the accountant.
  • The final GST treatment stays with the registered agent responsible for the BAS.

How do you test coding rules before relying on them?

Take three months of approved bills from one client file and run the rules against them without posting anything. Compare each suggested account, tax rate and tracking category with what a person actually approved. Count the disagreements for each supplier separately, because one supplier with a bad default can hide inside a good overall average. Fix that supplier's default, or move the supplier to always manual, then run the same bills again. Keep the test bills so the next rule change can be checked against them.

Who should be able to change a rule?

A coding rule changes every future bill for that supplier, so treat a change to it like a change to the chart of accounts. Name who may add or edit rules in each client file, record the reason and the date, and note which bills were coded under the old rule. Review the rules when a client changes its chart of accounts, adds tracking categories, changes what it buys from a supplier or moves to a different ledger. Set a regular review point as well, such as each BAS period, so older rules are checked against current bills.

Coding rule options by supplier type

Supplier typeTypical billsSuggested ruleWho reviews
Utilities and phoneThe same service each periodFixed account and tax rateSpot check at BAS time
Rent and leasesThe same amount each periodFixed rule, with the amount checked against the leaseBookkeeper when the amount changes
Software subscriptionsMonthly or annual charges, some from overseas suppliersRule with review of the tax rate on each new subscriptionBookkeeper, with GST questions to the accountant
Hardware and office suppliersMixed items on one billAlways manual, or review at line levelBookkeeper; accountant for assets
Fuel cardsFuel and sometimes other goodsRule with reviewBookkeeper
New suppliersNo pattern yetAlways manual for the first few billsBookkeeper, who then proposes a rule

Practical checklist

  • Each client's suppliers are listed by bill count for the past 12 months.
  • Every supplier is marked fixed rule, rule with review or always manual.
  • Contact, item and account defaults in the ledger were checked before adding automation rules.
  • The rules were run against three months of approved bills and compared supplier by supplier.
  • Bills with mixed tax rates, missing ABNs or asset purchases go to a person.
  • Named staff may change a rule, and each change is recorded with its reason.

Common questions

Should we set defaults in Xero or in the automation tool?

Keep one source of truth where you can. If the ledger holds supplier defaults and an automation tool also holds rules, a bill can end up coded by whichever layer runs last. One workable split is simple defaults in the ledger, with the automation layer used for checks and exceptions. Whatever you choose, write down which layer wins.

Can AI code bills without any rules?

Some tools suggest accounts from a file's history without explicit rules, and Xero itself predicts account codes from earlier bills in some cases. Those suggestions repeat past decisions, including past mistakes. Test them the same way as rules, against bills a person approved, and keep a person approving bills until the suggestions agree with approved coding for each supplier.

How often should coding rules be reviewed?

Tie the review to work that already happens, such as BAS preparation or month-end. Also check the rules whenever the chart of accounts changes, a supplier changes what it sells to the client or the business changes structure. A short list of the rules changed since the last review makes the check quicker.

Who is responsible if a rule codes GST wrongly?

The business and its registered agent remain responsible for what is reported on the BAS. A rule is an administrative tool that applies a decision someone made earlier. That is why the person responsible for the client's GST should make the decision behind each rule, and why bills outside the rule's pattern go to a person.

What about bills from suppliers with no ABN?

The ATO lists the seller's ABN among the details a tax invoice must show. A bill without one should not be coded and approved automatically. Route it to a person who can ask the supplier for a valid tax invoice or refer the question to the client's accountant.

Sources and further reading

Continue planning

Plan the administration around professional review

Describe the administrative task, systems and review responsibilities. We can discuss document intake and staff handovers. Use a fictional example without client records or credentials. Accounting judgements, advice and sign-off remain with your practice.