Skip to main content
Stripe Billing → AppsFlyerIntegration guide

Connecting Stripe Billing to AppsFlyer

Stripe Billing sits on top of Stripe payments, and the difference matters: a payment succeeding is not the same event as a subscription beginning, and most implementations wire the wrong one. 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 Stripe subscription 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

Stripe Billing renewals in AppsFlyer: send them, but flagged

Save the appsflyer_id and customer_user_id from the app onto the Stripe Customer metadata, then post Stripe Billing invoices through AppsFlyer's server-to-server API: the first paid invoice as subscription start, subscription_cycle invoices as a separate renewal event, and trial start without revenue. Send cancellations and refunds too. Check each partner's postback window for renewals.

Subscription apps that bill through Stripe on the web while the product lives in the app need AppsFlyer to see that revenue, so ad networks optimize toward payers rather than installs. The device link is the appsflyer_id plus your customer_user_id, saved on your user record by the app and written to the Stripe Customer metadata at checkout. Every Stripe Billing invoice for that Customer can then be posted through AppsFlyer's server-to-server API.

Unlike acquisition-only destinations, AppsFlyer's cohort and lifetime value reports benefit from renewals, but as their own events. Send the first paid invoice as the subscription start, renewals (invoices whose billing_reason is subscription_cycle) as a renewal event with revenue, and trial start without revenue. If renewals arrive as the same purchase event, networks receiving postbacks treat each month as a new acquisition.

Renewals land months after install, outside most networks' postback windows, so forwarded renewal events often go nowhere; check each partner's settings rather than assuming. Send cancellations and refunds from customer.subscription.deleted and charge.refunded too, so cohorts show real churn instead of assumed retention.

Stripe Billing → AppsFlyer · what breaks

Why this join usually fails — Stripe Billing → AppsFlyer

  1. 01

    The AppsFlyer device identifier, appsflyer_id never reaches Stripe Billing

    Stripe Checkout takes the customer to a Stripe-hosted page, and trials mean the subscription and the first payment can be weeks apart.

  2. 02

    Every renewal firing as a new conversion

    The most common Stripe Billing error and the easiest to make, because payment success is the obvious webhook. It inflates conversion counts by exactly your retention rate, which makes long-lived customers look like a marketing achievement every month.

  3. 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.

  4. 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.

Stripe Billing → AppsFlyer · the fix

What working looks like — Stripe Billing → AppsFlyer

  • The AppsFlyer device identifier, appsflyer_id on every subscription

  • 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

Stripe Billing → AppsFlyer · architecture

How Stripe Billing and AppsFlyer actually connect

  1. 1

    Stripe Billing holds the truth

    Every renewal produces a successful payment intent. Wire the conversion to payment success and a customer who stays two years generates twenty-four conversions against one acquisition.

  2. 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. 3

    The identifier is the bridge

    The AppsFlyer device identifier, appsflyer_id, captured at the visit and carried into the Stripe subscription.

  4. 4

    The event source decides reliability

    Send the first successful payment on a new subscription, not every invoice. Trial starts belong on a separate lower-value action.

  5. 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.

Stripe Billing → AppsFlyer · normal or broken

Working vs. broken, side by side — Stripe Billing → AppsFlyer

Normal, not a fault

  • The AppsFlyer device identifier, appsflyer_id present on the subscription

  • Sent from the Stripe subscription lifecycle webhooks

  • 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

    Stripe Checkout takes the customer to a Stripe-hosted page, and trials mean the subscription and the first payment can be weeks apart.

  • Sent from the browser

    The most common Stripe Billing error and the easiest to make, because payment success is the obvious webhook. It inflates conversion counts by exactly your retention rate, which makes long-lived customers look like a marketing achievement every month.

  • 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

Stripe Billing → AppsFlyer · diagnose

Diagnostic order — Stripe Billing → AppsFlyer

  1. 01

    Count subscriptions carrying the AppsFlyer device identifier, appsflyer_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare monthly conversion count against new subscription count

    If conversions exceed new subscriptions, renewals are being counted and the acquisition figure is wrong by that amount.

  4. 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.

  5. 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.

Stripe Billing → AppsFlyer · prove

How it gets proven — Stripe Billing → AppsFlyer

Source of truth

Stripe subscriptions by creation date, separated from the invoice payments that recur against them.

  • The AppsFlyer device identifier, appsflyer_id confirmed present on a live subscription.
  • In-app revenue events reconciled per transaction against your billing system, with the organic share stated rather than assumed away.
  • New subscriptions reconciled against imported conversions for a settled month, with renewals demonstrably excluded.

Stripe Billing → AppsFlyer · free audit

What we check in the free audit

  • Count subscriptions carrying the AppsFlyer device identifier, appsflyer_id
  • Follow one real conversion end to end
  • Compare monthly conversion count against new subscription count
  • Check what share of your revenue happens in the app at all
  • Read the match rate, not the success message

Checked against

Stripe subscriptions by creation date, separated from the invoice payments that recur against them.

Get my free conversion tracking audit

Free30 minutesNo obligation

Stripe Billing → AppsFlyer · when not to buy

When you don't need this — Stripe Billing → AppsFlyer

  • Measure identifier coverage yourself first — pull your last hundred subscriptions and count how many carry the AppsFlyer device identifier, appsflyer_id.
  • If you take one-off payments and no subscriptions, the plain Stripe integration covers you and this adds nothing.
  • 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.

Stripe Billing → AppsFlyer · what we deliver

What gets built — Stripe Billing → AppsFlyer

  • Identifier capture into Stripe Billing

    Capture on your own domain and pass the identifier into the Checkout session metadata, so it lands on the customer and survives to the first real charge.

  • Event source: the Stripe subscription lifecycle webhooks

    Send the first successful payment on a new subscription, not every invoice. Trial starts belong on a separate lower-value action.

  • 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

    Cancellations inside the first period reverse.

Written guarantee

95%+ tracking accuracy

Measured against Stripe subscriptions by creation date, separated from the invoice payments that recur against them.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Stripe Billing → AppsFlyer questions, answered

Yes, as a distinct renewal event with revenue, so cohort value is right without counting renewals as new purchases.

Free · 30 min

Get Stripe Billing and AppsFlyer joined properly

Free30 minutesNo obligation