Custom Xero Integrations: When the Native Sync Isn't Enough
Native Xero integrations work for simple setups, but they struggle once contacts get renamed, merged or duplicated, or once more than one system needs the same numbers. A custom Xero integration keeps invoices, payments and contacts accurate across your CRM, project tools and job management software, so nobody re-keys data or cleans up duplicates by hand.
Written by Josiah Dalisay, HubSpot and Xero integration developer.
Why isn't the native Xero integration enough?
HubSpot and most other platforms have a native Xero integration, and for plenty of businesses that is enough. The problems start when the data is messier than the native integration expects:
- Contacts get renamed or merged in Xero, and the native sync loses track of them or creates duplicates.
- Xero does not separate organisations from individual people, so a CRM cannot tell company revenue from personal revenue.
- A third system, like Monday or a job management tool, needs the same invoice data.
- The business wants rolled-up numbers, like totals for the last 365 days, ready to report on.
Each of the builds below started with one of those problems.
What problems can a custom Xero integration solve?
Keeping several tools on the same numbers. When sales, finance and operations each hold their own copy of invoice data, they drift apart. A custom integration can raise the Xero invoice when a deal is won and keep amounts, due dates, line items and payment status the same everywhere.
Stopping duplicate contacts. Native integrations often can't follow renames or merges in Xero, so duplicates multiply. A two-way sync that links records by ID keeps them matched, and can also handle extras like job tracking options and splitting invoices across accounts.
Reporting on payments and donations. Xero can't tell an organisation from an individual, and CRMs often need payments rather than invoices. A custom integration can send each payment to the right company or contact, with totals like the last 365 days already calculated.
What should you know before building a Xero integration?
- Use your own Xero developer app. It gives you full control over what syncs, when, and how errors are handled.
- Plan for polling. Xero webhooks only tell you that a record changed, not what changed, and they don't cover everything. Most of my syncs check Xero on a schedule, which is reliable and easy to recover from.
- Matching needs a shared reference. To link an existing HubSpot deal to a Xero invoice, the invoice needs a reference ID from HubSpot. When the integration creates the draft invoice itself, from HubSpot or Current RMS, it writes that reference automatically, so nobody has to copy and paste IDs.
- Respect the API limits. Xero allows 60 API calls per minute and 5,000 per day for each connected organisation (1,000 a day on the starter tier), so syncs are batched and queued rather than fired one record at a time.
- Tracking options have limits too. Creating a tracking option for every job works, but you need to plan for Xero's limits on tracking options from the start.
Questions
- Do I need a custom Xero integration if HubSpot already has a native one?
- Not always. The native HubSpot Xero integration suits simple setups. A custom Xero integration is worth it when contacts get renamed or merged, duplicates build up, a third system like Monday needs the same data, or you want calculated totals in HubSpot.
- Can Xero sync with more than one system at the same time?
- Yes. A custom integration can create an invoice in Xero when a deal is won in your CRM, then write the amount, due date and payment status back to the CRM and to other tools like a project board, so every team sees the same numbers.
- How do you fix duplicate contacts between Xero and another system?
- A custom two-way contact sync keeps each contact linked by its ID rather than its name, so records stay matched when contacts are renamed or merged in Xero. Existing duplicates are cleaned up once, and the sync stops new ones from forming.
- Does Xero have webhooks for invoices?
- Yes. Xero webhooks can notify you when an invoice is created or updated, but they only say which record changed, not what changed. Many reliable Xero integrations check Xero on a schedule instead, or use webhooks only as a trigger to fetch the latest record.
- How do you link a HubSpot deal to a Xero invoice?
- The Xero invoice needs a reference ID from the HubSpot deal. When the integration creates the invoice itself, it writes that reference automatically, so nobody has to copy and paste IDs between systems.
- Can Xero tell companies apart from individual contacts?
- Not natively. Xero treats every contact the same way. One workaround is to keep organisations in a Xero contact group, so an integration can record their payments against a company in HubSpot and everyone else's against a contact.
- Can donations in Xero show up in HubSpot?
- Yes. A custom integration can sync Xero invoices and bank transfers to HubSpot as payment records, which makes donation reports easy to build. It can also send ready-made totals, like donations in the last 365 days, so no calculated properties are needed in HubSpot.
- Does the Xero API have rate limits?
- Yes. Xero allows an app 60 API calls per minute and 5,000 per day for each connected organisation, or 1,000 a day on the starter tier. Custom integrations batch and queue their syncs to stay within those limits.