Connecting Xero to a custom app: what's possible, and what to watch.
When your job, order or CRM system and Xero don't talk to each other, someone retypes customers and invoices, and the two sets of figures slowly drift apart. Connecting them is usually possible: Xero publishes an API that your own software can use, with a Xero user's permission, to read and write most of the records a bookkeeper works with, though not bank reconciliation. Its limits are firm, though, and Xero changed several of the rules in 2026. Below is how a connection works, what syncs cleanly, what Xero charges, and the traps behind most of the clean-up, each Xero fact checked against Xero's own pages on 20 November 2026. It's general information, not accounting or tax advice.
How a connection works
Xero doesn't hand out simple API keys. Its developer FAQ says the API uses OAuth 2.0, the approve-and-connect process behind a "Connect to Xero" button: a Xero user signs in, sees what the app is asking for, chooses the organisation and approves it. In Xero's words, OAuth "lets your app access a user's account without accessing their password".
What the app asks for is a set of scopes, and since March 2026 they've been finer. New apps ask separately for invoices, payments, bank transactions and manual journals, where older apps took all "transactions" in one go (Xero's changelog gives those older apps until 13 September 2027 to move across). Contacts and settings have scopes of their own, and most scopes come in a read-only version. The invoices scope covers bills, credit notes, quotes and purchase orders as well; settings covers items, tax rates, tracking categories and the chart of accounts. Scopes only ever add up: Xero says the only way to reduce them is to revoke the connection and start again, so ask for the minimum from the start.
Who approves the connection matters more than most people expect. Xero's permissions FAQ says the person connecting needs the Standard, Adviser or Administrator role with the Connected Apps permission, and that "The API essentially works on behalf of the user that authorised it to connect." Some actions need more: since 29 June 2026, for example, changing a customer's or supplier's bank details through the API needs Xero's bank account admin permission. If that person leaves the organisation or loses those permissions, Xero deletes the connection, so connect it as someone who'll be around, and write down who it was.
Once connected, the app holds a token, a temporary key that works only for what was approved. It lasts 30 minutes and is renewed with a refresh token, which the app only receives if it asks for offline access. According to Xero's OAuth FAQ, unused refresh tokens expire after 60 days, and then someone has to connect the app again, which matters for an integration that only runs once a quarter.
What syncs well, and what's harder
Most of what a job, order or CRM system needs from the books is well supported. These usually sync cleanly once the mapping is agreed:
- Contacts. Customers and suppliers, with their details. Xero gives each one an ID, and your system should keep it (more on why below).
- Sales invoices and bills. Both go through Xero's invoices API, as receivable and payable invoices. Credit notes have their own.
- Payments. Recorded against approved invoices and bills, so both systems show what's been paid. Xero's payments API can create or delete a payment but can't edit one.
- Items. Products and services, with codes, descriptions and prices. Tracked inventory works too, under stricter rules, and Xero recommends no more than 4,000 tracked items per organisation.
- Tracking categories. For reporting by department, region or type of work. Xero allows two active categories at a time (four including archived ones) and suggests a soft limit of 100 options in each.
Some things are harder, or stay inside Xero:
- Bank reconciliation. Your system can record that an invoice was paid, but matching that payment to the line on the bank statement happens in Xero. In May 2026 Xero confirmed it "will not be adding the ability to reconcile bank statement lines via the API", citing the obligations that come with raw bank data.
- The general ledger. The Journals endpoint, which returns every ledger entry, is now a premium feature for apps on Xero's Advanced tier and above, after a security assessment and use case approval. Manual journals are a separate endpoint and stay available on every tier.
- Payroll. It has its own API, the person connecting it must be a payroll administrator in Xero, and it's a project of its own rather than an add-on to an invoice sync.
- Changing the past. Once an invoice or bill is paid, the API can still change its reference, due date, line descriptions, account codes and tracking, but not its amounts, and nothing in a locked period. An approved invoice can't be deleted, only voided.
- Volumes at either end. Xero's limits page says it's designed for up to 5,000 sales invoices and 5,000 bills a month, depending on the pattern of invoicing. If your system produces more, decide with your accountant how much detail belongs in Xero. At the small end, Xero's pricing page says transactions started by apps may count towards the Ignite plan's invoice limit, and its developer documentation says the API returns an error once an entry-level plan's invoice limit is reached.
The limits that matter
Xero limits the calls each app can make to each connected organisation. Its limits page sets four, as checked on 20 November 2026:
- 5 calls in progress at once.
- 60 calls a minute.
- 1,000 calls a day on the free Starter tier, and 5,000 a day on the paid tiers.
- 10,000 calls a minute for one app, across every organisation it connects.
Go over one and Xero answers "too many requests" (HTTP 429). For the minute and daily limits it adds a Retry-After header giving the number of seconds to wait, and a well-built integration pauses that organisation's calls until then and carries on. Certified apps get Rapid Sync, which lifts the limits for a new connection's first 30 minutes; the Starter and Core tiers don't.
For one business, 5,000 calls a day is usually enough if the integration spends them carefully. Checking Xero for changes once a minute uses 1,440 calls a day for a single kind of record, more than Starter's whole allowance. Xero's own advice is to send up to about 50 records in one request, read long lists in pages of up to 1,000 records, and ask only for what has changed since the last sync. Webhooks, covered below, cut the checking further.
Xero's developer tiers
Since 2 March 2026 Xero has charged for its API by tier, based on how many organisations an app connects and how much data it downloads, in place of its old revenue-share model (announced on 4 December 2025, according to its pricing FAQ). Here are the published tiers, in Australian dollars before tax, as at 20 November 2026, with the daily call limit applying to each connected organisation:
| Tier | Monthly fee | Organisations | Calls a day | Also needs |
|---|---|---|---|---|
| Starter | No charge | Up to 5 | 1,000 | No payment method needed |
| Core | $35 | Up to 50 | 5,000 | A payment method. 10 GB of downloads a month included, then $2.40 a GB |
| Plus | $245 | Up to 1,000 | 5,000 | Xero certification. 50 GB included, then $2.40 a GB |
| Advanced | $1,445 | Up to 10,000 | 5,000 | Certification, and a security assessment at the start and every year. 250 GB included, then $2.40 a GB |
| Enterprise | Price on application | No limit | 5,000 | Certification, yearly security assessments and an App Store listing |
For one business connecting its own system to its own Xero, the first two rows are the ones that matter. Starter costs nothing, and one organisation sits well within its five, but 1,000 calls a day is tight for a busy sync. Core raises that to 5,000; Xero's pricing table asks only for a payment method, with certification from Plus up. Xero also caps how many uncertified apps one organisation can connect, though its own pages disagree on how many. Xero exempts a few kinds of app from this pricing, as it decides, among them custom connections and integrations an accountant or bookkeeper builds for their own practice or a single client. Its developer terms also forbid trying to exceed or bypass the usage limits, or creating several versions of an app that all do the same thing.
Your own connection, or an App Store app
Most businesses in this position want a private connection: their system, their organisation, nobody else's. There are two ways to build one, and one of them closes to new buyers on 1 December 2026.
A standard app, registered for your business
The usual route is an ordinary app on the Starter or Core tier, connected once to your organisation. Xero's only charge for it is the tier fee, plus any download overage. Xero treats anyone who uses its developer platform as agreeing to its developer terms, and the app's settings and secret live in whichever developer account registers it. It's worth having it registered under a Xero developer account your business controls. Xero lets several people collaborate on an app, and only the Owner role can manage the other collaborators and the billing or delete the app, so your business should hold that role, with the developer added as a Standard collaborator.
Custom connections, closing to new buyers
Xero's custom connections were made for exactly this case: one app and one organisation, connected machine to machine without refresh tokens to look after, available in Australia, New Zealand, the UK and the US, and A$10 a month including GST here. Xero's custom integration FAQ says that from 1 December 2026 nobody can create a new custom connection app or buy a new subscription. Those created earlier keep working with the same API access and daily call limit. Xero also says client credentials, the machine-to-machine method underneath them, isn't going away, with details to follow on its developer site from 1 December. If you already have one, look after it: from that date, a deleted custom connection can't be created again.
An app on the Xero App Store
Selling your integration to other Xero users is a different project: a listing needs the Plus tier or higher and passing Xero's certification checkpoints, none of which a connection only your business uses needs.
Webhooks: hearing about changes
Instead of your system asking Xero "anything new?" over and over, a webhook has Xero send a short message when something changes. As at 20 November 2026 Xero offers webhook events for contacts, invoices, credit notes, payments, overpayments and prepayments, plus App Store subscriptions. The credit note, prepayment, overpayment and payment events were added during 2026, the last on 5 November. Items, tracking categories and bank transactions aren't on the list, so those still need a scheduled check.
Each message carries little more than the record's ID and a link to it, so your system then fetches the details. If your system stops answering, Xero retries for 24 hours and then switches the webhook off, keeping events for up to 31 days to replay once it's fixed. Xero also tells developers to build for repeats, so the same message arriving twice mustn't create two of anything. Pair webhooks with a slower scheduled check that catches anything they miss.
Xero's security requirements
Xero's security standard for API consumers asks for a yearly self-assessment only from apps with more than 1,000 connections to small businesses, or that use its practice and tax APIs, but its basics make a sensible checklist at any size: OAuth 2.0 rather than anyone's Xero password, tokens kept encrypted on the server, encryption in transit and at rest, two-step sign-in, and an audit log.
Xero's developer terms, last updated on 4 December 2025, cover every app whatever its tier. Two more of their rules are worth knowing before anyone builds: data from the API mustn't be used to train or fine-tune AI models, and bots or browser extensions mustn't get around Xero's security controls or imitate a person using Xero without its explicit authorisation. In practice that rules out a robot that logs in to Xero and types the data in for you, unless Xero has authorised it.
The pitfalls behind most of the clean-up
Duplicate contacts
Duplicates often start with matching on the name. "Smith Plumbing" in your job system and "Smith Plumbing Pty Ltd" in Xero look like two businesses to software. Xero's guidance on contacts is to store the ID Xero gives each contact, link on that, and "avoid using the contact name as a unique reference". Its contacts reference warns that names may not stay unique in Xero, and offers a Contact Number field for your own system's ID. For the first sync, let a person match each existing contact or approve a new one, because pushing contacts across blindly, in Xero's words, "may result in duplicate contacts". Leave archived contacts alone too: people archive duplicates in Xero, and an integration that keeps writing to them brings the mess back.
GST and tax rates
Xero applies very few of its own defaults to data arriving through the API. According to its guide to tax, if no tax rate is sent it uses the default on the account the line is coded to and disregards tax defaults on the contact or the item, and invoice amounts are treated as tax-exclusive unless the app says otherwise. A system that stores GST-inclusive prices without saying so will have GST added on top. Tax rates have rules of their own: some only work with certain types of account, and organisations rename them and add their own. Xero's integration best practices also say tax rates created through the API won't work for Australian tax reporting. The safe pattern is to read the organisation's own tax rates and accounts, map each of yours to one of them with your bookkeeper, and send the tax rate on every line.
Rounding
Xero works out tax line by line, rounds each line to the cent and then adds them up, while some systems total the invoice and take GST once. Xero's own example: two lines of $45.45 at 10% give $9.10 of tax in Xero and $9.09 the other way. A cent is enough to stop totals matching. Xero's rounding guide offers two fixes: calculate the way Xero does, or read back Xero's total and add an adjustment line coded to the organisation's rounding account. It also notes that unit prices are taken to two decimal places unless the app asks for four.
Locked periods
Lock dates stop changes to periods that have been closed off, but one of Xero's two lock dates still lets advisers through, and the API acts with the permissions of whoever connected it. Your system can read both lock dates from the organisation's details, along with whether the connecting user may approve transactions before the period lock date, so it can check before it tries. It still needs a rule, agreed with your accountant, for changes that arrive after a period closes, and a way to show a person anything Xero refused.
Multi-currency
If you buy or sell in other currencies, two points from Xero's multi-currency guide prevent a lot of correcting. The exchange rate Xero stores is foreign currency per unit of your base currency, the Australian dollar for most Australian businesses, and Xero says it has seen "a number of integrations get these units backwards". And an integration should never fall back to a rate of 1: if your system doesn't know the actual rate, sending none lets Xero apply its own daily rate, from XE.com or the organisation's custom rate. Multi-currency also depends on the Xero plan, so check the organisation can use it before building on it.
Keeping the two sides in step
Even a good sync drifts if nobody checks it. Here's what I'd look for:
- One owner for each record. For example, your system owns jobs, quotes and prices, and Xero owns approved invoices, payments and tax. Each field changes in one place and flows one way, from what Xero's contact guidance calls the "source of truth".
- Xero's IDs stored in your system against every contact, invoice and payment, so each record has exactly one partner.
- No double sends. Xero accepts an idempotency key on each create or update, so a request retried after a dropped connection isn't processed twice. Xero keeps each key for six minutes.
- A regular comparison. Counts and totals of what was sent against what Xero holds, and what each customer owes in both systems, with any difference shown to a person.
- A log and a queue. Every sync recorded, and anything Xero refused (a locked period, a missing account, a rate limit) held for someone to deal with rather than dropped.
Before you build: the alternatives
A custom build isn't always the answer. Xero says it integrates with 1000+ apps. If your job, order or CRM software already offers a Xero integration, or the Xero App Store has one that fits, that's usually the quicker and cheaper place to start, with the certification, limits and upkeep handled by the vendor. Ask what it syncs and in which direction, how it matches contacts and handles GST, and what happens when Xero refuses something.
In between sit the automation platforms. Zapier's Xero integration can create sales invoices, bills and payments and find or create contacts, and Make's covers invoices, contacts, payments and items. n8n's Xero node handles contacts and invoices, with anything else sent to Xero's API directly, through an app you register with Xero yourself, which starts on the free Starter tier like any new app (all checked 20 November 2026). They suit a handful of straightforward flows; contact matching, GST mapping and reconciliation checks get awkward in them. My comparison of n8n, Zapier and Make covers how to choose.
Custom work earns its keep when the rules are yours: how a job becomes an invoice, which tracking category a sale belongs to, how deposits and part-payments are handled, and a check that both sides still agree. That's the kind of work on my systems and integrations page, and connecting the systems you already have is often the most useful place to start with custom software. If what you mostly need is invoices out on time and chased, my guide to automating invoicing covers that flow.
Xero and AI assistants
Xero now connects to AI assistants too. Its Claude connector is read-only, and Xero says Claude "can't create, edit, approve, reconcile or pay in Xero". For developers, Xero launched a remote MCP server on 15 October 2026 for apps on Core and above, with tools that read and write Xero data and, in this first version, don't ask for confirmation before writing (both checked 20 November 2026). What an assistant should be allowed to touch is a question of its own, covered in my guide to connecting AI assistants to your systems.
Questions to ask whoever builds it
- Will it connect through Xero's API with OAuth 2.0, asking only for the scopes it needs, and read-only where it only reads?
- Which developer tier will the app sit on, whose developer account is it registered under, and who holds the Owner role?
- Which system owns each record, and which way does each field flow?
- How will contacts be matched, and what happens to the ones that don't match?
- How will GST, tax rates, account codes and tracking be mapped, and has our bookkeeper or accountant agreed the mapping?
- What happens when Xero refuses something (a locked period, a rate limit, a lost connection), and who hears about it?
- How will we know the two sides still agree?
- Will it be built and tested on Xero's demo company before it touches our live books, and how do we disconnect it?
Your bookkeeper or accountant should help answer the fifth. On the eighth, Xero's demo company is free and comes with sample data, and Xero's own advice is to build and test an integration fully before it's connected to a live organisation.
How I'd approach it
If I build the connection, these commitments apply, in the same words as my custom software page:
- By handover, the code, the database, the hosting and the domain sit in accounts in your business name, billed to you, with me added as a user you can remove.
- Third-party services it relies on, such as your accounting software or payment provider, stay under their own terms. Running costs (servers, model and API usage) go on your own accounts where they can, or are passed through at cost. No markup either way.
- While it's being built, the AI tools work on the code and made-up test data, not your live customer records or passwords, under business terms that rule out training on your code.
Xero's side stays under Xero's own terms, tiers and limits whoever builds it, so the questions above apply to me as much as to anyone.
Want your system and Xero in step?
The first conversation is free. Tell me what your job, order or CRM system does and what it needs from Xero, and I'll tell you whether an existing integration would cover it, what a custom build would involve, and what I'd check first.