This integration raises invoices in Xero from the records your team keeps in Salesforce, whether those are opportunities, projects or billing milestones. It then writes payment status back onto the Salesforce account, so the people who own each client relationship can see what has been paid.
What This Integration Does
Xero and Salesforce don’t offer their own integration with each other. Breadwinner, which sells one of the alternatives, says as much in a September 2026 article. That leaves three routes: an app from Salesforce’s AppExchange, a general automation platform, or a custom build against both APIs.
On the app side, Breadwinner says its app syncs contacts, invoices, payments and credit notes onto account and opportunity records. TwixRiva’s AppExchange listing adds supplier bills and timesheets. Both run inside your Salesforce org. If each invoice you send matches one closed opportunity, an app like these is usually the quicker option.
A custom build is worth considering when your invoices come from somewhere else. Many Salesforce orgs bill from a custom Project or Contract object, invoice in stages against milestones, or charge for usage tracked in another system. A custom integration reads whichever records drive your invoices. It runs on a server outside Salesforce, so nothing new is installed in your org.
The Workflow
Take a consultancy that runs delivery in Salesforce. Each signed engagement is a Project record with four billing milestones. When the project manager marks the second milestone as signed off, Salesforce publishes an event and the integration picks it up.
First it finds the client in Xero, using the Xero contact ID stored on the Salesforce account. If this is the client’s first invoice, it creates the Xero contact from the account’s billing details instead. It then raises a one-line invoice for the milestone at the value agreed on the project. The account code and VAT rate come from the project’s service type. Finance decides once, at the start, whether milestone invoices arrive as drafts or already approved, so nobody has to choose each time. The milestone record gets the Xero invoice number and a link to the online invoice.
Xero sends a webhook whenever the invoice changes. Once the payment is reconciled, the integration writes the amount paid and the payment date onto the milestone. It also updates a running total of billed and collected amounts on the project and on the account.
Sometimes a client disputes part of a milestone and finance raises a credit note in Xero. The credit note is attached to the same milestone, and the project’s billed total in Salesforce goes down by that amount.
Before and After
Before: the project manager emails finance when a milestone is signed off, or finance runs a report every Friday and works through it. Someone types the invoice into Xero from that email. Sometimes it goes against the wrong contact, because the client trades through two companies, and sometimes it goes out a week late. Nobody in delivery knows what has been collected on a project until month-end.
After: the milestone invoice is in Xero within minutes of the sign-off, at the value the project was sold at. The project record shows billed, paid and credited figures that match Xero. A project manager can see that a client is two milestones behind on payment before agreeing to start the third.
Who Needs This
This is for UK firms of roughly 20 to 150 people that run sales or delivery in Salesforce and keep their books in Xero: consultancies, agencies and B2B service companies, for example.
It becomes worth building in two situations:
- Your invoices come from projects, contracts or usage rather than closed opportunities.
- The business adds a second company with its own Xero organisation. The integration then reads a field on the project or account and raises each invoice in the right organisation, using that organisation’s account codes.
If your CRM is HubSpot, see how we sync Xero and HubSpot. For card payments recorded against Salesforce accounts, see our page on Stripe and Salesforce.
How We Build This
It’s a server-side integration against Salesforce’s REST API and Xero’s Accounting API, hosted and monitored by us. Changes in Salesforce reach it through Platform Events or Change Data Capture, depending on your edition and the objects involved. Changes in Xero arrive by webhook, and a nightly reconciliation picks up anything a webhook missed.
Before anything is built, we agree with finance which Salesforce record drives each invoice and how service types map to account codes and VAT rates. The integration logs every invoice it creates and every payment it writes back, so any figure in Salesforce can be traced to the Xero record behind it. Salesforce’s daily API allowance depends on your edition, and we check it at the start.
Our Xero API and Salesforce API pages cover how we work with each platform. Our API integration pricing page explains how this kind of work is priced.
Get Your Salesforce Billing Into Xero
Tell us which Salesforce records your invoices come from and how many Xero organisations you run. If you’ve already tried an AppExchange app, tell us where it fell short. We’ll tell you whether an app can do the job. If it can’t, we’ll explain how a custom Xero and Salesforce integration would work for your billing. You can talk to us about it, or browse the other pairings on our integrations overview.
Written by
Alex
CEO
I’m a software developer and CEO of Digital Royalty, helping growing teams scale their SaaS platforms without losing quality, visibility, or control. I focus on building structured, maintainable systems with clear processes, reporting, and accountability. With over a decade of experience across agency and in-house roles, I specialise in delivering long-term, scalable solutions that support complex, evolving products.