Connecting Xero to AppsFlyer
Xero holds the invoice and the reconciliation, which makes it the definitive revenue record for many service and trade businesses. AppsFlyer exists because mobile app attribution is a different problem from web attribution, and on iOS a large share of it is now aggregated and delayed by design rather than by accident. The join between them succeeds or fails on one thing: whether the AppsFlyer device identifier, appsflyer_id reaches the Xero invoice before the conversion happens, because AppsFlyer can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Xero invoices in AppsFlyer only when the app knows the device
AppsFlyer needs a device's AppsFlyer ID, which a Xero invoice lacks, so this works only if your app backend stores each user's appsflyer_id and links that user to the Xero contact. Then post the paid invoice server-to-server as a purchase with subtotal, currency and paid date, once, to the account owner. Expect it in lifetime value, not campaign decisions.
AppsFlyer attributes in-app revenue to the install that produced it, which requires the AppsFlyer ID of a device. A Xero invoice has a contact, a total and a due date, and nothing about any device, so a paid invoice posted to AppsFlyer as it stands either lands as organic or is rejected. The pair only works when customers use your app, the app's backend stores each user's appsflyer_id, and that user is linked to the Xero contact who receives the invoice.
If that chain exists, post the paid invoice server-to-server as a purchase event with revenue from the invoice subtotal, in the invoice currency, on the date Xero marks it paid. The lag is the real limit. Campaign optimization and the ad networks AppsFlyer forwards to judge installs on early revenue, and an invoice paid sixty days after install arrives long after those reads are made. It will show in lifetime value, not in the campaign decisions.
One Xero contact is often a business with several app users, so attach the invoice to one user, typically the account owner who signed up, rather than sending it once per device; otherwise AppsFlyer and every network downstream count the same revenue several times. Credit notes need a reversal your AppsFlyer setup recognizes, so confirm how your account handles refunds before sending any.
Xero → AppsFlyer · what breaks
Why this join usually fails — Xero → AppsFlyer
- 01
The AppsFlyer device identifier, appsflyer_id 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
Web conversions sent to a mobile attribution platform
This is the common error and it produces confident nonsense. A purchase made on your website has no device identifier and no install behind it. AppsFlyer will either discard it or attribute it to nothing, and the revenue disappears somewhere between the two systems without anyone noticing it went.
- 04
Nothing reconciles afterwards
AppsFlyer shows the event on the raw data export with its attributed media source. Check the raw export, not the aggregate dashboard, and confirm the event carries a device identifier rather than landing as organic.
Xero → AppsFlyer · the fix
What working looks like — Xero → AppsFlyer
The AppsFlyer device identifier, appsflyer_id on every invoice
Conversions arriving in AppsFlyer
The event is attributed to the install source, forwarded to whichever networks are configured, and appears in the cohort reporting.
Reconciled against the source
Xero → AppsFlyer · architecture
How Xero and AppsFlyer 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
AppsFlyer needs a click to match
AppsFlyer needs the device identifier and an event name it recognizes, plus the revenue value for in-app purchases. A server event about a user with no linked device cannot be attributed to an install.
- 3
The identifier is the bridge
The AppsFlyer device identifier, appsflyer_id, 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
AppsFlyer deduplicates in-app events by its own event identifier. Sending the same purchase from both the SDK and your server produces two events and double-counts revenue in every dashboard downstream, including the ad networks AppsFlyer forwards to.
Xero → AppsFlyer · normal or broken
Working vs. broken, side by side — Xero → AppsFlyer
Normal, not a fault
The AppsFlyer device identifier, appsflyer_id present on the invoice
Sent from the Xero invoice payment webhook
Deduplicated correctly
AppsFlyer deduplicates in-app events by its own event identifier. Sending the same purchase from both the SDK and your server produces two events and double-counts revenue in every dashboard downstream, including the ad networks AppsFlyer forwards to.
Reconciles with the source
Actually broken
The AppsFlyer device identifier, appsflyer_id 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
This is the common error and it produces confident nonsense. A purchase made on your website has no device identifier and no install behind it. AppsFlyer will either discard it or attribute it to nothing, and the revenue disappears somewhere between the two systems without anyone noticing it went.
Nobody has reconciled it
Xero → AppsFlyer · diagnose
Diagnostic order — Xero → AppsFlyer
- 01
Count invoices carrying the AppsFlyer device identifier, appsflyer_id
- 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
Check what share of your revenue happens in the app at all
If most purchases are on the web, AppsFlyer is not your conversion destination and the work belongs somewhere else entirely.
- 05
Read the match rate, not the success message
AppsFlyer shows the event on the raw data export with its attributed media source. Check the raw export, not the aggregate dashboard, and confirm the event carries a device identifier rather than landing as organic.
Xero → AppsFlyer · prove
How it gets proven — Xero → AppsFlyer
Source of truth
Xero's paid invoices by payment date, reconciled against the bank feed.
- The AppsFlyer device identifier, appsflyer_id confirmed present on a live invoice.
- In-app revenue events reconciled per transaction against your billing system, with the organic share stated rather than assumed away.
- A paid invoice confirmed reconciled against the bank feed before being counted.
Xero → AppsFlyer · free audit
What we check in the free audit
- Count invoices carrying the AppsFlyer device identifier, appsflyer_id
- Follow one real conversion end to end
- Check whether the conversion fires on issue or on payment
- Check what share of your revenue happens in the app at all
- 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 → AppsFlyer · when not to buy
When you don't need this — Xero → AppsFlyer
- Measure identifier coverage yourself first — pull your last hundred invoices and count how many carry the AppsFlyer device identifier, appsflyer_id.
- 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 have no mobile app, this is not a destination for you. If you have one but sell mostly on the web, send web conversions to your ad platforms directly and use AppsFlyer only for install and in-app events.
Xero → AppsFlyer · what we deliver
What gets built — Xero → AppsFlyer
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 AppsFlyer
The AppsFlyer server-to-server events API, posted from your billing system with the device identifier and revenue.
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 → AppsFlyer questions, answered
Only if the paying customer's app user record carries an AppsFlyer ID you can link to the Xero contact. Without that, the invoice has no install to attribute to.
One, usually the account owner who signed up, and only once. Sending it per device multiplies revenue in AppsFlyer and in the networks it forwards to.
Almost always because the AppsFlyer device identifier, appsflyer_id 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.
AppsFlyer assigns its own device ID and matches installs to clicks through referrer data on Android and Apple's frameworks on iOS. There is no durable cross-device identifier. On iOS without ATT consent, attribution falls back to SKAdNetwork, which returns aggregated conversion values on a delay with no user-level detail at all — so a share of your installs will be attributable only in aggregate, permanently.
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.
AppsFlyer shows the event on the raw data export with its attributed media source. Check the raw export, not the aggregate dashboard, and confirm the event carries a device identifier rather than landing as organic.
More on Xero → AppsFlyer
- Xero → Google AdsConnecting Xero to Google Ads
- Xero → MetaConnecting Xero to Meta Conversions API
- Xero → GA4Connecting Xero to GA4
RELATED GUIDES
Where Xero → AppsFlyer fits in the rest of your tracking
- Wave → AppsFlyerConnecting Wave to AppsFlyer
- QuickBooks → AppsFlyerConnecting QuickBooks to AppsFlyer
- BILL → AppsFlyerConnecting BILL to AppsFlyer
- Accounting and CPAConversion tracking for accounting firms, measured in engagements
- FreshBooks → AppsFlyerConnecting FreshBooks to AppsFlyer
- Harvest → AppsFlyerConnecting Harvest to AppsFlyer
Free · 30 min
Get Xero and AppsFlyer joined properly
Free30 minutesNo obligation
