Connecting Affirm to AppsFlyer
Affirm is longer-term financed BNPL, typically on higher-ticket items, which adds a credit decision between the checkout and the sale. 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 Affirm charge 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
Affirm to AppsFlyer: in-app financed purchases, sent on capture
Store the appsflyer_id and customer user ID when the in-app checkout starts, then send a server-to-server af_purchase with af_revenue and currency when the Affirm charge is captured, not on the success screen. Never fire it from the SDK too. Capture at shipment can miss SKAdNetwork's first window, so consider mapping approved financing into the conversion value.
An Affirm purchase can only reach AppsFlyer if it was placed in your app by a user whose appsflyer_id you stored on the order. Save that ID, plus your customer user ID, when the in-app checkout starts; Affirm's approval step typically opens a web flow outside your native screens, and the return to the app is the step most likely to fail. Send the server-to-server af_purchase event, with af_revenue and currency, when the Affirm charge is captured, not when the app shows a success screen.
Affirm's capture timing collides with iOS measurement. Many merchants capture at shipment, and a high-ticket purchase captured several days after install can land after SKAdNetwork's first measurement window, where the fine-grained conversion value is set. If financed orders matter to your SKAN schema, consider mapping an earlier, reliable step such as approved financing into the conversion value and keeping captured revenue for the server event.
Do not fire the purchase from both the SDK and the server. AppsFlyer forwards revenue to connected ad networks, so a doubled Affirm order inflates ROAS on every network at once, and at Affirm's order sizes one duplicate is visible. Cancelled financing and refunds need a reversing event too; check how your AppsFlyer setup records negative revenue before launch rather than after the first refund.
Affirm → AppsFlyer · what breaks
Why this join usually fails — Affirm → AppsFlyer
- 01
The AppsFlyer device identifier, appsflyer_id never reaches Affirm
The shopper leaves for Affirm's flow, is assessed, and returns only if approved. Both the redirect and the decline create paths where nothing fires on your site.
- 02
A credit decision inside the checkout
Declines are real volume that reached checkout and produced nothing. Counting checkout starts rather than captured charges overstates performance by the decline rate.
- 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.
Affirm → AppsFlyer · the fix
What working looks like — Affirm → AppsFlyer
The AppsFlyer device identifier, appsflyer_id on every order
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
Affirm → AppsFlyer · architecture
How Affirm and AppsFlyer actually connect
- 1
Affirm holds the truth
Affirm runs a real credit decision, so a shopper who reaches checkout may be declined. The order only exists if the financing was approved and captured.
- 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 Affirm charge.
- 4
The event source decides reliability
Fire on capture after approval, and tag the payment method — Affirm orders skew to higher ticket values that will distort a blended average.
- 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.
Affirm → AppsFlyer · normal or broken
Working vs. broken, side by side — Affirm → AppsFlyer
Normal, not a fault
The AppsFlyer device identifier, appsflyer_id present on the order
Sent from your store's order webhook, on Affirm charge capture
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
The shopper leaves for Affirm's flow, is assessed, and returns only if approved. Both the redirect and the decline create paths where nothing fires on your site.
Sent from the browser
Declines are real volume that reached checkout and produced nothing. Counting checkout starts rather than captured charges overstates performance by the decline rate.
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
Affirm → AppsFlyer · diagnose
Diagnostic order — Affirm → AppsFlyer
- 01
Count orders carrying the AppsFlyer device identifier, appsflyer_id
- 02
Follow one real conversion end to end
- 03
Compare Affirm checkouts started, approved and captured
The decline rate is a genuine cost of this payment method and it belongs in the report.
- 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.
Affirm → AppsFlyer · prove
How it gets proven — Affirm → AppsFlyer
Source of truth
Your store's orders financed through Affirm, cross-checked against Affirm's settlement.
- The AppsFlyer device identifier, appsflyer_id confirmed present on a live order.
- In-app revenue events reconciled per transaction against your billing system, with the organic share stated rather than assumed away.
- An approved Affirm order confirmed to report and a declined one confirmed not to.
Affirm → AppsFlyer · free audit
What we check in the free audit
- Count orders carrying the AppsFlyer device identifier, appsflyer_id
- Follow one real conversion end to end
- Compare Affirm checkouts started, approved and captured
- Check what share of your revenue happens in the app at all
- Read the match rate, not the success message
Checked against
Your store's orders financed through Affirm, cross-checked against Affirm's settlement.
Free30 minutesNo obligation
Affirm → AppsFlyer · when not to buy
When you don't need this — Affirm → AppsFlyer
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the AppsFlyer device identifier, appsflyer_id.
- If your average order value is low, Affirm is a poor fit for the payment method and the integration follows that.
- 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.
Affirm → AppsFlyer · what we deliver
What gets built — Affirm → AppsFlyer
Identifier capture into Affirm
Capture the identifier before checkout and store it on the order, so approved financing is attributable regardless of the return journey.
Event source: your store's order webhook, on Affirm charge capture
Fire on capture after approval, and tag the payment method — Affirm orders skew to higher ticket values that will distort a blended average.
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
Refunds and cancelled financing both exist and should reduce the reported figure.
Written guarantee
95%+ tracking accuracy
Measured against Your store's orders financed through Affirm, cross-checked against Affirm's settlement.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Affirm → AppsFlyer questions, answered
Usually because the order carries no appsflyer_id: it was placed on mobile web, or the app lost the session during Affirm's approval flow. Store the ID on the order when checkout starts and send from your server on capture.
Capture is the revenue event and belongs in af_purchase. Approval can be a separate in-app event if you need an earlier signal for SKAdNetwork conversion values.
Almost always because the AppsFlyer device identifier, appsflyer_id never reached the Affirm charge. The shopper leaves for Affirm's flow, is assessed, and returns only if approved. Both the redirect and the decline create paths where nothing fires on your site. 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.
Your store's order webhook, on Affirm charge capture. Fire on capture after approval, and tag the payment method — Affirm orders skew to higher ticket values that will distort a blended average.
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 Affirm → AppsFlyer
- Affirm → Google AdsConnecting Affirm to Google Ads
- Affirm → MetaConnecting Affirm to Meta Conversions API
- Affirm → GA4Connecting Affirm to GA4
Using Affirm for bookings? How Affirm bookings get tracked end to end
RELATED GUIDES
Where Affirm → AppsFlyer fits in the rest of your tracking
- Acima → AppsFlyerConnecting Acima to AppsFlyer
- Maxio → AppsFlyerConnecting Maxio to AppsFlyer
- Helcim → AppsFlyerConnecting Helcim to AppsFlyer
- SubscriptionsConversion tracking for subscription businesses, across the whole lifecycle
- Chargebee → AppsFlyerConnecting Chargebee to AppsFlyer
- Paddle → AppsFlyerConnecting Paddle to AppsFlyer
- Adyen → AppsFlyerConnecting Adyen to AppsFlyer
- Razorpay → AppsFlyerConnecting Razorpay to AppsFlyer
Free · 30 min
Get Affirm and AppsFlyer joined properly
Free30 minutesNo obligation
