How to connect HubSpot and Xero. What HubSpot's own Xero sync does, the limits HubSpot documents for it, and what a custom flow has to get right when a won deal should raise the invoice.
Most teams asking for a HubSpot and Xero integration should install HubSpot's own Xero app and stop there. It syncs contacts, products and invoices, and it brings payments back onto the invoices it synced. HubSpot maintains it, so there's no scenario or server of yours to look after.
The decision on this page is whether your process fits inside that app. It works from HubSpot invoices, and it has documented limits on drafts, tax rates, currency and history. If a won deal should raise a draft in Xero for finance to approve, or sales need paid status on the deal, that's a custom flow. We build those in Make, n8n or code, and the second half of this page covers what they have to get right.
Start at the top and move down only when you can name the thing the option above can't do.
The app is built on HubSpot's Data Sync. Contacts, products and invoices can each be set to sync one way or both ways, with field mappings and a conflict rule that decides which app wins. Payments applied to synced invoices come across too, and Xero's listing says payment sync turns on when invoice sync does. We couldn't verify which HubSpot plan it needs or what it costs, so check HubSpot's listing for both.
Choose it whenYour team raises invoices in HubSpot or in Xero already, in one currency, and wants the two to agree.
A workflow starts from a HubSpot event such as a deal reaching a stage, builds the invoice from the deal's line items and creates it in Xero through Xero's API. It can stop for an approval, branch by entity or currency, and write whatever you choose back to the deal. You pay for it in Make credits or n8n executions, and someone has to own it when a run fails.
Choose it whenThe invoice should come from a deal, finance wants to approve a draft first, or sales need payment status on the deal itself.
A hosted application with a queue and its own record of what it has synced. It receives Xero's webhooks, paces its calls inside Xero's limits and can replay a failed job without raising anything twice. It costs more to build than a workflow and gives you a log you can audit.
Choose it whenVolumes are high, several Xero organisations are involved, or a missed or doubled invoice would be expensive enough to justify the build.
The order matters because Xero won't accept an invoice whose contact and products it doesn't already hold.
HubSpot's company currency has to match the Xero base currency for invoices to sync. HubSpot lists six supported currencies, which are USD, CAD, EUR, GBP, AUD and NZD. If yours don't match, settle that first, because nothing later in the setup will fix it.
Installing the app imports your Xero tax rates into HubSpot. A tax rate created in HubSpot doesn't sync back to Xero, so every rate you'll invoice with has to exist in Xero first. Which rate applies to a line is a question for your accountant. Nothing on this page is tax or accounting advice.
Choose one-way or two-way, map the fields, and pick which app wins a conflict. Clean up duplicate contacts in both systems before you switch it on, because a sync copies whatever it finds.
Products come second so that invoice lines have something to point at in Xero. Treat SKUs as fixed from here on. HubSpot documents that changing a product's SKU after it's on a synced invoice blocks that invoice.
Turn invoice sync on last. Only invoices created or modified after the sync starts are included, and only payments created after the app was connected. Raise two or three real invoices, take a payment against one, and confirm both sides agree before the team relies on it.
These come from HubSpot's knowledge base article for the Xero app, checked on 30 November 2026. Vendors change these, so read the current article before you decide.
| Where it stops | What HubSpot documents | What to do |
|---|---|---|
| Deals | The sync works from HubSpot invoices. We found no deal-stage trigger in HubSpot's article. | Create the invoice in HubSpot when the deal is won. If the deal itself has to raise the invoice, that's the custom flow below. |
| Draft invoices | Drafts don't sync to Xero. An invoice has to be open. | Finalise invoices in HubSpot. If finance must approve a draft inside Xero first, the native sync can't give you that step. |
| History | Only invoices created or modified after the sync starts are included. Only payments created after the app is connected sync. | Agree a start date and tell the team that older invoices won't appear. Bring history across separately if you need it. |
| Editing | An invoice created in HubSpot must be edited in HubSpot or it fails to sync. An invoice created in Xero can be edited in Xero. | Decide where invoices are created and tell finance which ones they mustn't correct in Xero. |
| Tax | Tax rates created in HubSpot don't sync to Xero. HubSpot's automated sales tax invoices don't sync at all. | Create rates in Xero and let the install import them. If you depend on HubSpot's automated sales tax, the app won't carry those invoices. |
| Card fees | Credit card fees don't sync to Xero invoices. | Expect the fee to be missing on the Xero side and agree with your bookkeeper how it's recorded. |
| Currency | HubSpot's company currency must match the Xero base currency. Supported currencies are USD, CAD, EUR, GBP, AUD and NZD. | Check both settings before installing. If you invoice in several currencies, test that case before trusting it. |
| Stock and SKUs | An invoice with tracked inventory items that would go on backorder doesn't sync. Changing a SKU after it's on a synced invoice blocks that invoice. | Keep Xero stock levels current, and create a new product in place of renaming a SKU. |
| Timing | Changes from HubSpot reach Xero within a few minutes. Changes in Xero are checked every 30 minutes, and there's a Sync now button. | Don't promise sales a payment status faster than half an hour. If they need it sooner, a webhook-driven flow is the route. |
Each is a case where the invoice follows a business rule the app's settings don't express. Check the app's current field mappings before commissioning any of them.
| Job | How the flow handles it | What to watch |
|---|---|---|
| A won deal raises a draft in Xero for approval | The flow reads the deal, its company and its line items, finds or creates the Xero contact and creates a draft invoice. Finance approves it in Xero, where they already work. | The flow stores the Xero InvoiceID on the deal and checks for it before creating anything. A retried run then finds the invoice it already raised. |
| More than one entity or currency | A property on the deal names the entity, and the flow picks the matching Xero organisation and currency. | Xero's rate limits are counted per connected organisation, so each one has its own allowance. We haven't confirmed how the native app treats a second organisation, so check HubSpot's article. |
| Tracking categories | The flow maps a deal property, such as region or department, to a Xero tracking category on each invoice line. | Keep the mapping in one table. A renamed option in either system should fail loudly and never be guessed. |
| Deposits and part-payments | The flow raises a deposit invoice at one deal stage and the balance at another, each keyed on the deal ID plus the stage. | Two invoices for one deal means two stored IDs. Decide which properties hold them before the first run. |
| Paid status on the deal | A Xero webhook reports that an invoice changed. The flow fetches the invoice and writes its status and the amount still owed to deal properties. | The webhook carries the invoice's ID and URL only. The flow always has to fetch the record, and that fetch counts against the rate limit. |
The patterns that turn up on this pair specifically, and what we do about each one.
A timeout between Xero accepting the invoice and HubSpot recording it leaves a deal that looks unbilled. The next run bills it again. The guard is to key every create on the deal ID. Write the Xero InvoiceID to the deal as soon as Xero returns it, and check that property before creating. Keep a small record of deal IDs in flight too, so two runs started seconds apart can't both pass the check.
Teams add a deal-to-invoice workflow and leave the app's invoice sync switched on. The same sale then reaches Xero by two routes. Give invoices one route. It's fine to keep the app for contacts and products and turn its invoice sync off, as long as that choice is written down.
HubSpot documents that an invoice created in HubSpot must be edited in HubSpot or it fails to sync. A bookkeeper fixing a line in Xero is doing the sensible thing and breaking the sync. Agree where corrections happen, and compare the two systems' invoices weekly for the first month.
A rate added in HubSpot after the install never reaches Xero. In a custom flow the equivalent is a tax type hard-coded into the mapping that someone later renames. Create rates in Xero, and have a custom flow stop with a clear error when a line has no matching rate.
Day-to-day volumes rarely trouble Xero's limits. A first load does. Xero answers a call over the limit with HTTP 429 and a Retry-After header. The flow should wait for the time that header gives and then resume from where it stopped. A loop that retries immediately spends the daily allowance on failures. HubSpot has burst and daily limits of its own that vary by plan, so check its usage guidelines as well.
Xero signs each webhook payload with HMAC-SHA256 and sends the signature in the x-xero-signature header. A new webhook also has to pass Xero's intent-to-receive check before any events arrive. The endpoint must answer a correctly signed request with a 2xx and an incorrectly signed one with a 401. An endpoint that returns 200 to everything fails that check, and one that skips verification lets anyone mark an invoice as changed.
A Xero webhook says an invoice was created or updated and gives its ID. It doesn't say what changed. Fetch the invoice and write the state you find. Guessing from the event type is how a deal ends up showing a status its invoice no longer has.
The set-up
Illustrative, not a client result. A services firm closes about 40 deals a month in HubSpot. Finance wants every invoice to start as a draft in Xero. Sales want a paid or unpaid property on the deal. One Xero organisation, one currency.
What it comes to
Up to three Xero calls to raise each invoice, so about 120 a month for 40 deals. If each invoice changes four times in its life, the webhook fetches add 160 more. That's roughly 280 calls a month against a starter-tier limit of 1,000 a day. The limit matters for history. Fetching 3,000 past invoices one at a time takes three days on that tier, and fits in a day on a 5,000-call tier at 60 calls a minute.
A HubSpot workflow posts the deal ID to the flow, where the plan includes that action. A scheduled search for newly won deals does the same job where it doesn't.
If the deal's Xero invoice ID property is already filled, the run stops. Otherwise the flow reads the deal, its company and its line items fresh from HubSpot.
One search by the stored Xero contact ID or, failing that, by name and email. A new customer is created so a first sale doesn't stall. That's one or two Xero calls.
One call creates the draft invoice with a line per deal line item. The InvoiceID goes onto the deal straight away, with a link for finance.
A member of the finance team checks the draft, corrects it if needed and approves it. The flow doesn't send anything to the customer.
Each invoice change sends a signed event. The flow verifies the signature, fetches the invoice and updates the deal's status and amount owed.
Don't build anything if the volume is small. A team raising five invoices a month can type them into Xero faster than an integration can be specified, tested and maintained. The native app is still worth a look at that size, because it costs you configuration time and no build.
Don't connect HubSpot to Xero if HubSpot isn't where the sale is priced. Where the lines and totals are settled in a job system, a store or a quoting tool, that system should feed Xero and HubSpot should receive a status at most. Our WooCommerce and Xero article covers the store case (/insights/woocommerce-xero-integration).
Don't sync invoices both ways because the setting exists. Pick the system where invoices are created, sync one way from it, and let payments be the only thing that travels back. And don't start during year end or a VAT or BAS period, when finance has no time to check the first invoices.
They aren't evidence of this integration. Each is here because it bears on a point above, and the note says which.
Rate limits, plan tiers and which modules exist change over time. Where this page gives a figure it shows how it was derived. For everything else, confirm against the vendors’ current documentation before sizing a build. Skofi holds no partnership, certification or reseller arrangement with any vendor named here.
Yes. HubSpot publishes its own Xero app, built on Data Sync, and Xero lists it in its app store. It syncs contacts, products and invoices one way or both ways, and payments on synced invoices. We aren't affiliated with either vendor. We couldn't verify the HubSpot plan it requires or its price, so check HubSpot's listing before you plan around it.
Not through the native app by itself, because it syncs HubSpot invoices and a deal isn't one. You can create a HubSpot invoice from the deal and let the app carry it once it's open. If the deal should raise a Xero draft directly, that takes a workflow in Make, n8n or code, keyed on the deal ID so it can't run twice.
Check the documented causes in this order. The invoice is still a draft. It was created before the sync started and hasn't been modified since. It was created in HubSpot and edited in Xero. It uses HubSpot's automated sales tax. Its contact or products aren't in Xero yet. The company currency doesn't match Xero's base currency. Or a product's SKU changed after it went on the invoice.
HubSpot documents that changes made in HubSpot are picked up within a few minutes, and changes made in Xero are checked every 30 minutes. There's a Sync now button for a one-off. So a payment recorded in Xero can take up to half an hour to show in HubSpot. A custom flow using Xero's webhooks can be quicker.
For invoices the native app synced, yes. Payments applied to them sync, as long as the payment was created after the app was connected. Earlier payments don't come across. Showing paid status on the deal, where sales look, is a separate job. A custom flow writes it to a deal property.
Not one we've published. Our Xero invoicing builds are on Make, such as multi-line invoices raised from enrolment records for an academy (/work/make/xero-multi-line-invoicing). On the HubSpot side, a Zapier build for an Australian industry association puts a Xero invoice reference on each HubSpot deal so it can be matched with accounting (/work/zapier/industry-association-hubspot-lms). Neither connects the two through their APIs.
Setting up the native app, or building the flow in Make or n8n, is US$25 an hour with the hours estimated before we start. Where the flow needs its own code, such as a webhook receiver with a queue, that part is priced on scope with no minimum and usually lands between US$1,000 and US$2,000. A bigger build across several entities is quoted after a call. These are typical ranges, not a quote.
Statements about what a platform, regulator or provider says come from their own pages. Rules and limits change, so check the current page before you rely on one.
Page copy drafted with AI assistance. Skofi is accountable for it. Editorial policy
Fifteen minutes is usually enough for us to tell you whether this is an automation, an integration or something that should be built, and whether we're the right people to do it.
What happens on the call