Skip to main content
Affirm → BranchIntegration guide

Connecting Affirm to Branch

Affirm is longer-term financed BNPL, typically on higher-ticket items, which adds a credit decision between the checkout and the sale. Branch's real job is the web-to-app seam — a person clicks a link in a browser, installs the app, and something has to carry the context across an install that destroys every cookie involved. The join between them succeeds or fails on one thing: whether the Branch link click identifier and the deferred deep link payload reaches the Affirm charge before the conversion happens, because Branch can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Affirm and Branch: the return from Affirm is not a campaign click

Send the purchase from your backend when the Affirm charge is captured, with the same user identity the app sets in Branch and the Affirm charge ID as event identifier, never from the SDK as well. Use a plain return URL from Affirm, or exclude it from attribution, so the return isn't credited as a link re-engagement.

Branch matters for Affirm only if shoppers finance purchases inside your app. In that flow the shopper leaves the app for Affirm's approval and comes back through a return URL. If that return URL is a Branch link, or sits on a link domain Branch handles, the return can be recorded as an app open from a link, a re-engagement that may take credit from the campaign that actually brought the shopper in. Use a plain return URL, or confirm in Branch that it is excluded from attribution.

The purchase event itself should come from your backend when the Affirm charge is captured, sent with the same user identity the app sets in Branch and the Affirm charge ID as the event identifier. Do not also fire it from the app SDK; Branch forwards to downstream ad partners, and a doubled financed order is a large doubled number.

The web-to-app seam Branch is built for is a weaker fit for Affirm than for impulse purchases. High-ticket shoppers often research on the web, check what they would pay monthly, and buy on whichever device they are holding, so an install followed by an Affirm purchase may owe little to the install. Before crediting financed revenue to an app campaign, check how many Affirm buyers had a web session before installing.

Affirm → Branch · what breaks

Why this join usually fails — Affirm → Branch

  1. 01

    The Branch link click identifier and the deferred deep link payload 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.

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

  3. 03

    The install that erases the campaign

    Someone clicks a paid ad on the mobile web, hits the app store, installs, and opens the app as a brand new anonymous user. Without deferred deep linking that campaign produced an organic install, and the ad account shows nothing for a conversion it genuinely caused.

  4. 04

    Nothing reconciles afterwards

    Branch shows the attributed link and campaign on the event in its dashboard. Check that the install carries a link click rather than showing as organic, which is the failure this product exists to prevent.

Affirm → Branch · the fix

What working looks like — Affirm → Branch

  • The Branch link click identifier and the deferred deep link payload on every order

  • Conversions arriving in Branch

    The event is attributed to the originating link and campaign, and forwarded to any configured downstream partners.

  • Reconciled against the source

Affirm → Branch · architecture

How Affirm and Branch actually connect

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

    Branch needs a click to match

    Branch needs the link click context matched to the app open, plus the event and its revenue. Without the deferred deep link payload there is nothing to join the install to.

  3. 3

    The identifier is the bridge

    The Branch link click identifier and the deferred deep link payload, captured at the visit and carried into the Affirm charge.

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

    Deduplication at the destination

    Branch deduplicates on the event identifier you supply. Firing a purchase from both the SDK and your server without a shared identifier double-counts, and Branch forwards to downstream partners, so the duplicate propagates.

Affirm → Branch · normal or broken

Working vs. broken, side by side — Affirm → Branch

Normal, not a fault

  • The Branch link click identifier and the deferred deep link payload present on the order

  • Sent from your store's order webhook, on Affirm charge capture

  • Deduplicated correctly

    Branch deduplicates on the event identifier you supply. Firing a purchase from both the SDK and your server without a shared identifier double-counts, and Branch forwards to downstream partners, so the duplicate propagates.

  • Reconciles with the source

Actually broken

  • The Branch link click identifier and the deferred deep link payload 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

    Someone clicks a paid ad on the mobile web, hits the app store, installs, and opens the app as a brand new anonymous user. Without deferred deep linking that campaign produced an organic install, and the ad account shows nothing for a conversion it genuinely caused.

  • Nobody has reconciled it

Affirm → Branch · diagnose

Diagnostic order — Affirm → Branch

  1. 01

    Count orders carrying the Branch link click identifier and the deferred deep link payload

  2. 02

    Follow one real conversion end to end

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

  4. 04

    Measure your organic install share and ask whether it is plausible

    An implausibly large organic share is usually broken attribution rather than genuine word of mouth.

  5. 05

    Read the match rate, not the success message

    Branch shows the attributed link and campaign on the event in its dashboard. Check that the install carries a link click rather than showing as organic, which is the failure this product exists to prevent.

Affirm → Branch · prove

How it gets proven — Affirm → Branch

Source of truth

Your store's orders financed through Affirm, cross-checked against Affirm's settlement.

  • The Branch link click identifier and the deferred deep link payload confirmed present on a live order.
  • Attributed installs and in-app purchases reconciled against your own user records, with the unattributed share stated.
  • An approved Affirm order confirmed to report and a declined one confirmed not to.

Affirm → Branch · free audit

What we check in the free audit

  • Count orders carrying the Branch link click identifier and the deferred deep link payload
  • Follow one real conversion end to end
  • Compare Affirm checkouts started, approved and captured
  • Measure your organic install share and ask whether it is plausible
  • Read the match rate, not the success message

Checked against

Your store's orders financed through Affirm, cross-checked against Affirm's settlement.

Get my free conversion tracking audit

Free30 minutesNo obligation

Affirm → Branch · when not to buy

When you don't need this — Affirm → Branch

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the Branch link click identifier and the deferred deep link payload.
  • 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 app, or no web surface driving app installs, there is no seam here to bridge and the integration solves nothing.

Affirm → Branch · what we deliver

What gets built — Affirm → Branch

  • 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 Branch

    The Branch server-to-server events API, posted from your backend with the user identity and event data.

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

Get my free conversion tracking audit

From $400 · See packages

FAQ

Affirm → Branch questions, answered

Likely because the return from Affirm's approval flow opens the app through a link Branch treats as a click. Use a non-Branch return URL and send the purchase from your server.

Free · 30 min

Get Affirm and Branch joined properly

Free30 minutesNo obligation