n8n Xero integration, built to handle the invoices that don’t fit.
n8n can create and update Xero contacts and invoices out of the box, and reach the rest of Xero’s API with its HTTP Request node. We build the workflow around it: reading documents, checking them, and sending exceptions to a person.
What the n8n Xero node does
According to n8n’s documentation, the built-in Xero node supports two resources:
| Resource | Operations |
|---|---|
| Contact | Create, get, get all, update |
| Invoice | Create, get, get all, update |
For anything else, such as payments, credit notes, attachments or bank transactions, n8n’s docs point to the HTTP Request node with the Xero credential selected as a predefined credential type. It reuses the same login, so you call Xero’s API endpoints directly without handling tokens yourself.
Setting up the Xero connection
n8n connects to Xero through an OAuth 2.0 app you register in the Xero developer portal. The steps, from n8n’s and Xero’s documentation:
- In the Xero developer portal, under My Apps, create an app with the integration type Web app.
- Use your n8n address as the company or application URL (for n8n Cloud, your
app.n8n.cloudaddress). - Copy the OAuth redirect URL from the n8n credential screen into the app’s redirect URIs.
- Copy the client ID and client secret back into n8n, then sign in to Xero and pick the organisation.
Two details trip people up:
- App name. n8n’s docs note that Xero does not allow app names containing “n8n”.
- Scopes. n8n’s page lists the broad
accounting.transactionsscope. Xero’s changelog says apps created on or after 2 March 2026 can only use the newer granular scopes, such asaccounting.invoices,accounting.paymentsandaccounting.banktransactions, alongsideaccounting.contacts. Ask only for the ones the workflow needs.
What we usually build with it
- Bill entry: supplier invoices from email read by an AI model, checked, and created in Xero as draft bills with the PDF attached. See invoice processing.
- Sales invoices from another system: orders or job sheets turned into Xero invoices, with new customers created as contacts only after a check.
- Payment chasing: overdue invoices pulled from Xero each morning and reminders sent by email or WhatsApp, with replies sent to a person.
- Receipts: payments recorded against invoices so Xero’s reconcile screen suggests the match.
A worked example
Sample data, not a client. A Singapore design studio that gets supplier bills by email and wants them in Xero as drafts.
The workflow, node by node:
- Email trigger watches bills@ for new messages with PDF attachments.
- AI step reads supplier, invoice number, date, due date, currency, lines and GST.
- Code step checks that lines plus GST equal the total.
- Xero node, Contact, Get all looks the supplier up by name and tax number.
- HTTP Request to Xero’s invoices endpoint checks the supplier invoice number has not been used.
- Xero node, Invoice, Create creates a bill (ACCPAY) as a draft, with the account code from a mapping table.
- HTTP Request attaches the PDF to the bill.
- Exceptions branch posts anything that failed a check to the studio’s finance channel.
One week’s run:
| What happened | Result | |
|---|---|---|
| PrintHaus, INV-3381, S$1,090.00 | Lines S$1,000.00 + 9% GST S$90.00. Contact found. Number unused | Draft bill created, PDF attached |
| CloudFonts, receipt, US$59.00 | Contact found. Currency USD, which the mapping sends to a different account | Draft bill created in USD |
| Lumen Studio Rentals, LSR-207, S$2,180.00 | No matching contact in Xero | Flagged: “New supplier. Create the contact or tell me which to use.” |
| PrintHaus, INV-3381 (reminder email) | Same number already exists as a draft | Skipped, noted in the log |
Nothing is approved automatically. Someone reviews the drafts in Xero, which keeps the decision with a person while removing the typing. Names, amounts and tax treatment are illustrations; your accountant decides how each bill is coded.
Things to get right
- Drafts first. Create bills as drafts until you trust the workflow. It is easy to switch later.
- No silent contacts. Creating a new contact whenever a name doesn’t match fills Xero with duplicates. Flag instead.
- Rate limits. Xero limits how many API calls an app can make per minute and per day, so large back-loads are batched.
- Token expiry. If the Xero connection is revoked or expires, the workflow alerts a person instead of failing quietly.
What you get and the price
One n8n workflow connected to Xero, such as bill entry from an inbox with a mapping table and an exceptions channel, is one workflow: from US$2,500. Several connected flows, for example bills, sales invoices and payment chasing together, or an AI agent with approval steps, start at US$5,000. Prices include setting up the Xero app and n8n credentials under your accounts. See pricing and how it works. If you are still choosing a tool, read n8n vs Make vs Zapier.
Questions
Does n8n have a Xero trigger?
n8n’s documentation lists a Xero app node for contacts and invoices, not a Xero trigger. Workflows usually start on a schedule, when an email or file arrives, or from a webhook sent by another system.
Can n8n create bills in Xero, not only sales invoices?
Yes. In Xero’s API a bill is an invoice of type ACCPAY and a sales invoice is ACCREC, and the n8n node’s invoice operations work with both.
Can n8n reconcile my Xero bank account?
No. Xero says bank statement lines cannot be reconciled through its API. A workflow can create the payments so Xero suggests them as matches; a person confirms. See bank reconciliation.
Self-hosted n8n or n8n Cloud?
Both work with Xero. n8n Cloud is less to look after; self-hosting keeps everything on a server you control. We help you choose on the first call; see n8n automation.
Who owns the workflow and the Xero app?
You do. The Xero app is registered under your organisation and the workflow runs in your n8n, so you can take it elsewhere at any time.
Tell us the job. We’ll reply within one working day and say plainly if it’s a fit.
Run by Mohamed Arshath from Kuala Lumpur, for clients anywhere. Seven years in private hospital administration, now building AI and workflow automation.
Prefer email? Write to hello@meetottomate.com.