Connecting Xero to Salesforce Marketing Cloud
Xero holds the invoice and the reconciliation, which makes it the definitive revenue record for many service and trade businesses. Marketing Cloud is a different product from Salesforce CRM with a different identity model, which catches out almost everyone who assumes a contact in one is a contact in the other. The join between them succeeds or fails on one thing: whether the Subscriber Key reaches the Xero invoice before the conversion happens, because Marketing Cloud can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Xero invoices into Marketing Cloud: company vs. subscriber
A Xero contact is the paying organization, often with a finance email, so map paid invoices to the buyer's Subscriber Key rather than matching on billing email. With Salesforce CRM, sync invoices to the account and contact and let Marketing Cloud Connect carry them; otherwise insert into a data extension via a ContactID lookup, only on the transition to paid.
A Xero contact is the organization paying the invoice; a Marketing Cloud subscriber is a person with a Subscriber Key. Sending a paid Xero invoice to Marketing Cloud means choosing which person it belongs to, and the email on the Xero contact usually belongs to someone in finance, not to the buyer your journeys are written for. Matching on that email creates a subscriber no journey was designed to handle.
If the org runs Salesforce CRM with Marketing Cloud Connect, sync paid invoices into the CRM first, onto the account and its primary contact, and let the Subscriber Key follow the Contact through the connector. Without a CRM, insert paid invoices into a data extension using a lookup from Xero ContactID to the Subscriber Key you have chosen for the buyer, and keep the billing email only as an attribute.
Decide what the data is for before building a journey on it. Paid date and total are useful for renewal reminders and for suppressing promotions to customers with unpaid balances. They are not a reason to email a receipt, which Xero already sends. A record re-inserted on every invoice edit will re-enter the journey, so insert only on the transition to paid, keyed on InvoiceID.
Xero → Marketing Cloud · what breaks
Why this join usually fails — Xero → Marketing Cloud
- 01
The Subscriber Key never reaches Xero
Like any accounting system, Xero has no marketing context of its own. The identifier must be written onto the contact record by whatever creates it, and in many businesses that is a manual step which will be applied inconsistently unless it is automated.
- 02
Payment terms separating the sale from the money
An invoice issued in March and paid in May is one sale and two dates. Which one the conversion uses has to be a decision rather than an accident.
- 03
Two identity models treated as one
Marketing Cloud's Subscriber Key and CRM's Contact ID are separate concepts, and Contact Builder's configuration decides whether they relate at all. Getting this wrong does not produce an error — it produces a customer who exists twice, receives everything twice, and appears in reporting as two people.
- 04
Nothing reconciles afterwards
Check the subscriber record and the journey history, not the API response. A successful insert into an unwatched data extension looks identical to a successful one into the right extension.
Xero → Marketing Cloud · the fix
What working looks like — Xero → Marketing Cloud
The Subscriber Key on every invoice
Conversions arriving in Marketing Cloud
The record lands in the data extension, the journey's entry criteria evaluate on its schedule, and sends follow.
Reconciled against the source
Xero → Marketing Cloud · architecture
How Xero and Marketing Cloud actually connect
- 1
Xero holds the truth
Xero's bank reconciliation is what makes it unusually trustworthy as a source of truth — an invoice marked paid and reconciled is money that actually arrived, which is a stronger guarantee than most systems offer.
- 2
Salesforce Marketing Cloud needs a click to match
The Subscriber Key, the data extension the journey listens to, and the fields its decision splits reference. An event landing in the wrong data extension will be stored correctly and trigger nothing.
- 3
The identifier is the bridge
The Subscriber Key, captured at the visit and carried into the Xero invoice.
- 4
The event source decides reliability
Fire on payment, not on invoice issue. Trade businesses on thirty-day terms will otherwise report revenue a month before it exists.
- 5
Deduplication at the destination
Marketing Cloud does not deduplicate journey entries for you. A record inserted twice can enter a journey twice, and because journeys span email, SMS and push the duplicate reaches the customer more than once.
Xero → Marketing Cloud · normal or broken
Working vs. broken, side by side — Xero → Marketing Cloud
Normal, not a fault
The Subscriber Key present on the invoice
Sent from the Xero invoice payment webhook
Deduplicated correctly
Marketing Cloud does not deduplicate journey entries for you. A record inserted twice can enter a journey twice, and because journeys span email, SMS and push the duplicate reaches the customer more than once.
Reconciles with the source
Actually broken
The Subscriber Key missing on most records
Like any accounting system, Xero has no marketing context of its own. The identifier must be written onto the contact record by whatever creates it, and in many businesses that is a manual step which will be applied inconsistently unless it is automated.
Sent from the browser
An invoice issued in March and paid in May is one sale and two dates. Which one the conversion uses has to be a decision rather than an accident.
Counted twice, or not at all
Marketing Cloud's Subscriber Key and CRM's Contact ID are separate concepts, and Contact Builder's configuration decides whether they relate at all. Getting this wrong does not produce an error — it produces a customer who exists twice, receives everything twice, and appears in reporting as two people.
Nobody has reconciled it
Xero → Marketing Cloud · diagnose
Diagnostic order — Xero → Marketing Cloud
- 01
Count invoices carrying the Subscriber Key
- 02
Follow one real conversion end to end
- 03
Check whether the conversion fires on issue or on payment
On terms-based businesses this single choice moves the numbers by a full billing cycle.
- 04
Confirm what Subscriber Key is actually set to in this org
Before sending anything. It is a configuration decision made once, often years ago, and every integration built afterwards inherits it.
- 05
Read the match rate, not the success message
Check the subscriber record and the journey history, not the API response. A successful insert into an unwatched data extension looks identical to a successful one into the right extension.
Xero → Marketing Cloud · prove
How it gets proven — Xero → Marketing Cloud
Source of truth
Xero's paid invoices by payment date, reconciled against the bank feed.
- The Subscriber Key confirmed present on a live invoice.
- Records confirmed on single subscriber records in the correct data extension, with the triggered journey verified in a non-production business unit first.
- A paid invoice confirmed reconciled against the bank feed before being counted.
Xero → Marketing Cloud · free audit
What we check in the free audit
- Count invoices carrying the Subscriber Key
- Follow one real conversion end to end
- Check whether the conversion fires on issue or on payment
- Confirm what Subscriber Key is actually set to in this org
- Read the match rate, not the success message
Checked against
Xero's paid invoices by payment date, reconciled against the bank feed.
Free30 minutesNo obligation
Xero → Marketing Cloud · when not to buy
When you don't need this — Xero → Marketing Cloud
- Measure identifier coverage yourself first — pull your last hundred invoices and count how many carry the Subscriber Key.
- If your work is paid at point of sale with no invoicing, the accounting system is not where the conversion should come from.
- If you are on Salesforce CRM but sending email through a simpler platform, adding Marketing Cloud brings an identity model to reconcile that you currently do not have to think about.
Xero → Marketing Cloud · what we deliver
What gets built — Xero → Marketing Cloud
Identifier capture into Xero
Write the click identifier to a tracking category or a custom field on the Xero contact at creation, so subsequent invoices inherit the association.
Event source: the Xero invoice payment webhook
Fire on payment, not on invoice issue. Trade businesses on thirty-day terms will otherwise report revenue a month before it exists.
Dispatch to Marketing Cloud
A server-side insert into the data extension the journey is configured against, keyed on Subscriber Key.
Reversals where they exist
Credit notes reverse against the original invoice and should reduce the reported figure.
Written guarantee
95%+ tracking accuracy
Measured against Xero's paid invoices by payment date, reconciled against the bank feed.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Xero → Marketing Cloud questions, answered
Either sync paid invoices to Salesforce CRM and use Marketing Cloud Connect, or insert them into a data extension keyed on a Subscriber Key mapped from the Xero ContactID.
Because the integration keyed on the Xero contact's email, which is usually a finance address. Map the ContactID to the buyer's Subscriber Key instead.
Almost always because the Subscriber Key never reached the Xero invoice. Like any accounting system, Xero has no marketing context of its own. The identifier must be written onto the contact record by whatever creates it, and in many businesses that is a manual step which will be applied inconsistently unless it is automated. Measure coverage before debugging the dispatch.
Marketing Cloud identifies people by Subscriber Key, which you define. It is not the CRM Contact ID unless somebody deliberately made it so, and in many orgs the two are unrelated. Sending an event keyed on the wrong one creates a second subscriber rather than updating the first, which splits the person across two journeys.
The Xero invoice payment webhook. Fire on payment, not on invoice issue. Trade businesses on thirty-day terms will otherwise report revenue a month before it exists.
Check the subscriber record and the journey history, not the API response. A successful insert into an unwatched data extension looks identical to a successful one into the right extension.
More on Xero → Marketing Cloud
- Stripe → Marketing CloudConnecting Stripe to Salesforce Marketing Cloud
- PayPal → Marketing CloudConnecting PayPal to Salesforce Marketing Cloud
- Shopify → Marketing CloudConnecting Shopify to Salesforce Marketing Cloud
RELATED GUIDES
Where Xero → Marketing Cloud fits in the rest of your tracking
- BILL → Marketing CloudConnecting BILL to Salesforce Marketing Cloud
- Wave → Marketing CloudConnecting Wave to Salesforce Marketing Cloud
- Harvest → Marketing CloudConnecting Harvest to Salesforce Marketing Cloud
- Xero → Customer.ioConnecting Xero to Customer.io
- Xero → KlaviyoConnecting Xero to Klaviyo
- Accounting and CPAConversion tracking for accounting firms, measured in engagements
- FreshBooks → Marketing CloudConnecting FreshBooks to Salesforce Marketing Cloud
- QuickBooks → Marketing CloudConnecting QuickBooks to Salesforce Marketing Cloud
Free · 30 min
Get Xero and Marketing Cloud joined properly
Free30 minutesNo obligation
