Skip to main content
Affirm → SalesforceIntegration guide

Connecting Affirm to Salesforce

Affirm is longer-term financed BNPL, typically on higher-ticket items, which adds a credit decision between the checkout and the sale. Sending conversions into Salesforce rather than out of it is how marketing data reaches the place sales actually works. The join between them succeeds or fails on one thing: whether the Lead or Contact identity reaches the Affirm charge before the conversion happens, because Salesforce can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Affirm financing status on Salesforce Opportunities

For rep-led high-ticket sales, write payment method, Affirm charge ID and financing status onto the Opportunity in custom fields, joined by a non-editable order or charge ID, and close won only on capture. Map gclid and fbc from Lead fields through conversion. Record only that financing didn't complete, and reopen or close-lose cancelled ones.

This pair makes sense when high-ticket sales involve a rep: a showroom visit, a quote, a consultation before the buyer commits. The Opportunity is where that deal lives, and Affirm is how it gets paid. Write the financing outcome onto it with custom fields such as payment method, Affirm charge ID and financing status (applied, authorized, captured, cancelled), and move the Opportunity to Closed Won only when the charge is captured.

The click identifiers come from the web Lead: gclid, fbc and similar values in custom Lead fields, mapped through Lead conversion to the Contact and Opportunity. Check that mapping specifically, because the Affirm payment usually happens after conversion, and an Opportunity without the click ID can't be sent back to an ad platform as an offline conversion. The join between store order and Opportunity is the order ID or Affirm charge ID, in a field reps can't edit.

Be careful with what a decline means here. A rep seeing that financing didn't complete is useful, because they can offer another way to pay. Record only that the Affirm checkout didn't complete, nothing about why, and keep that status out of any audience or conversion Salesforce sends to ad platforms. Financing cancelled after approval should reopen or close-lose the Opportunity, or pipeline reports keep revenue the business never received.

Affirm → Salesforce · what breaks

Why this join usually fails — Affirm → Salesforce

  1. 01

    The Lead or Contact identity 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

    Writes that succeed and change nothing

    Field-level security, validation rules and required-field constraints can reject a write while the API reports success. Open the record and look rather than trusting the response.

  4. 04

    Nothing reconciles afterwards

    Check the record in Salesforce itself, not the API response. Then confirm the value survives Lead conversion onto the Contact, Account and Opportunity — the mapping is separate and is usually the thing that was missed.

Affirm → Salesforce · the fix

What working looks like — Affirm → Salesforce

  • The Lead or Contact identity on every order

  • Conversions arriving in Salesforce

    The marketing context appears on the record and flows into the opportunity, where sales and reporting can both use it.

  • Reconciled against the source

Affirm → Salesforce · architecture

How Affirm and Salesforce 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

    Salesforce needs a click to match

    Salesforce needs a resolvable record and a custom field to write to. Field-level security and validation rules can silently reject writes, which is a Salesforce-specific failure that returns success at the API level and changes nothing.

  3. 3

    The identifier is the bridge

    The Lead or Contact identity, 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

    Salesforce deduplicates according to whatever matching rules your org has configured, which vary enormously between instances. Duplicate Leads are the standard failure and merging them afterwards is manual work.

Affirm → Salesforce · normal or broken

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

Normal, not a fault

  • The Lead or Contact identity present on the order

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

  • Deduplicated correctly

    Salesforce deduplicates according to whatever matching rules your org has configured, which vary enormously between instances. Duplicate Leads are the standard failure and merging them afterwards is manual work.

  • Reconciles with the source

Actually broken

  • The Lead or Contact identity 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

    Field-level security, validation rules and required-field constraints can reject a write while the API reports success. Open the record and look rather than trusting the response.

  • Nobody has reconciled it

Affirm → Salesforce · diagnose

Diagnostic order — Affirm → Salesforce

  1. 01

    Count orders carrying the Lead or Contact identity

  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

    Write a test value and open the record in the UI

    The API saying it worked and the field actually holding the value are different things in Salesforce more than anywhere else.

  5. 05

    Read the match rate, not the success message

    Check the record in Salesforce itself, not the API response. Then confirm the value survives Lead conversion onto the Contact, Account and Opportunity — the mapping is separate and is usually the thing that was missed.

Affirm → Salesforce · prove

How it gets proven — Affirm → Salesforce

Source of truth

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

  • The Lead or Contact identity confirmed present on a live order.
  • A test value confirmed present on the record in the UI, and confirmed to survive Lead conversion.
  • An approved Affirm order confirmed to report and a declined one confirmed not to.

Affirm → Salesforce · free audit

What we check in the free audit

  • Count orders carrying the Lead or Contact identity
  • Follow one real conversion end to end
  • Compare Affirm checkouts started, approved and captured
  • Write a test value and open the record in the UI
  • 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 → Salesforce · when not to buy

When you don't need this — Affirm → Salesforce

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the Lead or Contact identity.
  • If your average order value is low, Affirm is a poor fit for the payment method and the integration follows that.
  • If your Salesforce org is administered by a team you cannot get time with, scope their availability before starting — this build is usually blocked on admin access rather than on the work.

Affirm → Salesforce · what we deliver

What gets built — Affirm → Salesforce

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

    API writes to the Lead or Contact record, or a platform event, carrying the marketing context as custom field values.

  • 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 → Salesforce questions, answered

When the Affirm charge is captured. Approval can still be cancelled before the order ships, and a stage change on approval pushes revenue into reports and offline conversion uploads too early.

Free · 30 min

Get Affirm and Salesforce joined properly

Free30 minutesNo obligation