1. Home
  2. Guides
  3. How to automate supplier invoice entry in Xero without losing control

How to automate supplier invoice entry in Xero without losing control

Xero bills have three states before payment. Use them. Where an automation should stop, who approves, what to log, and the checks that catch duplicates and changed bank details.

Xero gives you a control point that QuickBooks Online, on most plans, doesn’t: a bill can wait as a draft, or as awaiting approval, before it’s ready to pay. Any automation that types supplier invoices into Xero should stop there and let a person approve. Everything else in this guide follows from that.

The three states that matter

In Xero a bill moves through Draft, then Awaiting Approval, then Awaiting Payment. In Xero’s API the same states are called DRAFT, SUBMITTED and AUTHORISED. A draft can be edited freely. A bill awaiting approval needs someone with the right permission to approve it. Only an approved bill is awaiting payment, and only then does it show in the bills you can pay.

That gives you a clean rule for any tool, app or agent that creates bills: it writes DRAFT or SUBMITTED, never AUTHORISED. A person approves in Xero, or on a review screen that then approves in Xero on their behalf, with their name recorded. Nothing an automation writes can then reach a payment run without someone looking at it.

How invoices get into Xero today

There are three common routes, and they can sit side by side.

Email to bills. Each Xero organisation has its own bills email address. Invoices forwarded to it become draft bills. Treat that address as private, because anyone who has it can create bills in your organisation.

Smart document capture and Hubdoc. Xero’s own capture reads documents sent by the app, by email or by upload, and gets the details ready for review. Hubdoc does the same for headers and attaches the document. Both leave the decisions about coding and approval to you.

An integration through the API. This is what a build uses. It reads the invoice, works out the entry and creates the bill through Xero’s Accounting API, with the original document attached.

What the automation should decide, and what it shouldn’t

An automation is good at the repetitive part: reading the supplier, date, invoice number, lines, VAT and total, then coding each line the way that supplier’s lines were coded before. It should also check its own work. Lines plus tax should equal the total. The VAT on each line should match the rate on the invoice. The supplier should already exist as a contact.

It should not decide anything that’s a judgement or a risk. Those get flagged, with the reason written next to the field:

  • a supplier it hasn’t seen before
  • a line it can’t code with confidence, such as a new item description
  • a total over a limit you set, or over the open purchase order
  • a VAT rate that doesn’t fit the line, or a reverse charge it can’t confirm
  • anything that looks like a duplicate
  • any change to the supplier’s bank details

Duplicates

The same invoice arrives twice more often than people expect: emailed and posted, resent as a reminder, or listed again on a statement. Decide your rule before you automate, for example the same supplier, the same invoice number and the same amount within a set number of days. The automation checks it against existing bills, including drafts, before it creates anything. A probable duplicate becomes a flag, never a second bill.

Statements are a separate trap. A statement lists invoices you already have. If statements arrive in the same inbox as invoices, the automation should recognise them and file them, not turn each line into a bill.

Supplier bank details

A supplier invoice that says “our bank details have changed” is the classic opening of mandate fraud, also called payment diversion fraud. The police guidance is the same everywhere in the UK: check any change independently, by calling a number you already hold for the supplier, never one given in the email or on the invoice, and have a senior person authorise the change.

An automation can’t make that call for you, but it can make sure the question is always asked. It compares the bank details on every invoice with the details held on the contact. Any difference stops the invoice and goes to a named person, every time, however small the amount. It should never update a contact’s bank details itself.

Tracking categories and coding

Xero lets you code each line to an account and to tracking categories. Users on Xero’s own ideas forum report that only two tracking categories can be active at once, so most firms use them for something like department and job, or region and channel. Write down which categories each kind of line gets before you automate. If your coding lives in someone’s head, the automation will copy their past choices, which is usually right and occasionally repeats an old mistake. The first test run is where you find out which.

The audit trail

For every bill you should be able to see the original document, what was read from it, anything a person changed, who approved it and when. Attach the original document to the bill through the API, and keep a log outside Xero of each step. For VAT, GOV.UK says records must be kept for at least six years, so the log needs to last at least as long as your other VAT records.

Limits worth knowing

Xero’s API allows 60 calls a minute, 5,000 a day and 5 at a time for each connected organisation, and the maximum request size is 3.5MB. A firm entering a few hundred bills a month is nowhere near those limits, but an integration that re-reads every contact and bill on each run can hit them. A sensible build fetches what it needs once and caches it.

A setup that keeps you in control

Put together, a safe automated invoice flow in Xero looks like this:

  1. Invoices land in one inbox or folder. Statements and remittances are filed, not entered.
  2. Each invoice is read, checked for arithmetic, and checked against existing bills for duplicates.
  3. Lines are coded the way that supplier was coded before. Anything that doesn’t fit is flagged with the reason.
  4. Bank details are compared with the contact. Any difference stops the invoice.
  5. The bill is created in Xero as a draft or awaiting approval, with the document attached.
  6. A person reviews the entry beside the document, checks the flags first, and approves.
  7. The log records who approved what and when.

That’s the order I build in. The model suggests the entry, plain code checks it, and a person approves before anything is written as final.

Before you start

Measure it on your own invoices first. Pick 20 from your awkward suppliers, agree in writing which fields must be right and how many of the 20 must pass, and score header and lines separately. If the automation can’t meet that pass mark, you’ve learned it cheaply.

The free check runs 10 of your own supplier invoices into draft entries with you on a 20-minute call. It’s free for three firms. See the free check, or start with the 12 checks before you automate your purchase ledger.

Sources

General guidance, not tax or accounting advice. Checked against each source on 28 November 2026.

Book a 20-minute call

Bring one example of the work. I’ll tell you whether it fits, and you get a fixed quote in writing before you pay anything.

Also from Kildrum Labs Documents into your system Shop payouts matched to your books Connect your tools Claude on your systems How we work Guides

Booking opens soon