Coding an invoice means deciding where it goes in your books. For each bill, or each line on a bill, someone picks an expense or asset account, a tax code, and sometimes a tracking label like a department, project or location. In a small business that person is usually the owner, a bookkeeper, or an outside accountant tidying things up at month end.
It’s one of those jobs that rarely gets attention because nothing visibly breaks when it goes wrong. A software subscription coded to office supplies still gets paid. The supplier is happy. The problem only shows up later, when your profit and loss shows a spike in stationery, your accountant spends the first two days of the year-end reclassifying things, or your VAT return reclaims tax you weren’t entitled to.
It also feeds into exceptions. When nobody is sure which account a bill belongs to, it sits waiting for an answer. Ardent Partners’ State of ePayables 2025 puts the invoice exception rate at 20.9% for most organisations against 11.1% for the best performers, and unclear coding is one of the quieter reasons a bill ends up in that pile.
The good news is that consistent coding in a small business mostly comes down to a bit of setup and a short monthly check.
Start with the chart of accounts
Inconsistent coding very often starts with a chart of accounts that makes consistency hard. If you have “Software”, “Subscriptions”, “IT costs” and “Computer expenses” all sitting side by side, two different people will put the same invoice in two different places, and both will have a reasonable argument.
Before writing any rules, it’s worth going through your expense accounts with your accountant and asking a few questions. Are there accounts that overlap? Are there accounts nobody has used in a year? Is there a catch-all like “General expenses” or “Sundries” that has quietly become the biggest line on the P&L? Merging overlapping accounts and retiring unused ones makes every later decision easier.
Then give each expense account a one-line description of what belongs in it. Most accounting systems have a description field on each account that hardly anyone fills in. “Monthly and annual software subscriptions, including SaaS tools and app store charges” is the kind of line that saves a hundred small judgement calls.
Write a short coding guide
A coding guide is a list of the spend types your business sees regularly and where each one goes. It doesn’t need to be long. A page covering your twenty or thirty most common cases handles the large majority of invoices, and the odd ones can go to whoever owns the chart of accounts.
Here is the kind of thing it might contain. The accounts and tax treatment will differ by business and country, so treat this as a shape to copy, and get your accountant to fill in the right answers for you.
| Spend type | Account | Tax treatment to check | Notes |
|---|---|---|---|
| Software subscriptions | Software | Standard rate, or reverse charge if the supplier is abroad | Annual plans may need to be spread over the year |
| Laptops and equipment | Fixed assets or equipment expense | Standard rate | Depends on your capitalisation threshold |
| Client meals and entertainment | Entertainment | Often not reclaimable | Rules vary a lot by country |
| Staff travel | Travel | Depends on the type of travel | Keep separate from entertainment |
| Freelancers and contractors | Contractor fees | Depends on whether they’re VAT registered | Some may need withholding or reporting |
| Rent | Rent | Can be exempt, standard rate or out of scope | Check the lease and the invoice |
| Foreign suppliers of services | Whichever account fits the service | Reverse charge often applies | A common source of VAT return errors |
Two entries on that list cause more trouble than most. The first is the line between an asset and an expense. If you don’t have a written capitalisation threshold, ask your accountant to set one, so a new laptop isn’t an asset one month and an expense the next. The second is anything bought from abroad, where the invoice may show no VAT at all but you may still need to account for it under the reverse charge.
Let supplier defaults do most of the work
Most small businesses buy from the same suppliers every month, and most of those suppliers only ever sell you one kind of thing. Your phone provider is always telecoms. Your landlord is always rent. Your accounting software is always software.
Most accounting systems let you set a default account on the supplier record so that new bills from that supplier pre-fill it. In Xero this is a default purchases account on the contact; in QuickBooks Online it’s a default expense category on the vendor. Setting these up for your regular suppliers takes an afternoon and removes most of the day-to-day decisions.
The suppliers that need real thought are the mixed ones: a general retailer, a hardware store, an online marketplace, a supplier who sells you both stock and services. Their invoices may need coding line by line, and they’re where most errors creep in. It helps to list those suppliers in your coding guide with a note on how to split them.
Tax codes are part of coding
The tax code on a bill line decides what ends up in your VAT or GST return. That makes it the part of coding with the most direct consequences.
An invoice showing VAT doesn’t automatically mean you can reclaim it. Many countries block input tax recovery on some expense types, with client entertainment being a common example in the UK and elsewhere. There’s also a difference between zero-rated, exempt and out-of-scope purchases that matters for how your return is filled in, even though all three show no tax on the invoice. And as mentioned above, services from foreign suppliers often fall under the reverse charge.
You don’t need to become a tax expert to code invoices. You do need your coding guide to say which tax code goes with each common spend type, and a rule that anything unusual goes to your accountant rather than getting the default. Before you can apply a tax code at all, the invoice itself needs to have the details your tax authority requires for a valid tax invoice. If those are missing, that’s an exception to send back to the supplier, not a coding question.
Only track what you’ll actually report on
Tracking categories, classes, cost centres and projects let you slice your spending by department, location, client or job. They’re useful when someone looks at the reports. They’re a burden when nobody does.
Every extra dimension is another field that has to be filled in correctly on every bill, so it’s worth asking a simple question before adding one: who will look at this report, and what decision will they make from it? If a business with two locations wants to know which one is profitable, tracking by location earns its keep. If nobody has opened the project report in six months, it may be time to stop coding to it.
Accounting systems also limit what you can do here. Xero allows two active tracking categories, and QuickBooks Online only offers classes and locations on its higher plans. If you find yourself needing more dimensions than your system supports, that’s a conversation with your accountant about how to structure them, not a reason to invent a workaround in invoice descriptions.
Who codes, who checks
In a very small business the same person often codes, approves and pays. That’s normal, but it helps to separate them where you can. If the approver sees the account and tax code alongside the amount, they can catch the obvious mistakes, such as a capital purchase coded as an expense or a personal item coded to the business.
Separately, a short monthly check catches what slips through. Run your profit and loss by account for the month and compare it with the previous month. Big swings in a single expense line usually mean either a real change or a coding mistake, and it takes a few minutes to tell which. Look at any catch-all or suspense accounts, since any balance there is a coding question waiting to be answered. And look at a sample of bills from your mixed suppliers, because that’s where errors cluster.
When you find a mistake, fix the rule as well as the bill. If the same supplier keeps landing in the wrong account, update their default. If two people keep disagreeing about an expense type, add a line to the coding guide.
Where software fits
There are a few reasonable ways to handle coding, and the right one depends on volume and who does the books.
Many small businesses do all of it inside the accounting system, using supplier defaults and bank rules, with an accountant reviewing at month end. For a business with a modest number of regular suppliers, that’s often all it needs.
Larger teams, or businesses with a lot of mixed-supplier invoices, sometimes use an AP suite that suggests coding based on how previous bills from the same supplier were coded, and routes approvals by account or department. That suits businesses with enough volume to justify a separate system for the whole payables process.
Clearline sits in between. It reads invoices from WhatsApp, email or upload and posts approved bills as drafts into the accounting system you already run, such as Xero, QuickBooks, Zoho Books, Sage, Odoo or SAP Business One. Your chart of accounts, tax codes and tracking stay where they are, and your accountant reviews them where they already work. The coding guide and the monthly check still matter whichever route you take, because no tool can decide on its own what belongs in your “Software” account. That’s a choice your business makes once, writes down, and then applies consistently.