Skip to main content
FreshBooks → SalesforceIntegration guide

Connecting FreshBooks to Salesforce

FreshBooks is invoicing for people who bill for their time, which puts an unavoidable gap between winning the work and being paid for it. 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 FreshBooks invoice 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

FreshBooks to Salesforce: Closed Won is not money received

Push FreshBooks payments back onto the Salesforce Opportunity so pipeline reports show collected revenue, not just Closed Won. Put the Salesforce Account or Opportunity ID on the FreshBooks client at creation and write amount collected, last payment date and write-offs into rollup fields or a custom object. Never match on company name.

Salesforce and FreshBooks disagree about when a deal is done. Sales marks an Opportunity Closed Won when the client signs; FreshBooks says the money arrived thirty or sixty days later, or never. Pushing FreshBooks payments back onto the Opportunity is the useful direction, because it lets pipeline reports show collected revenue per campaign, not just booked revenue.

The join is the account. Put the Salesforce Account ID, or the Opportunity ID for project-based work, on the FreshBooks client when it is created, and write payments into a custom object or rollup fields on the Opportunity: amount collected, last payment date, amount written off. Matching by company name will fail on Acme Inc. versus ACME, Inc. and leave orphaned payments. Check whether a FreshBooks-to-Salesforce connector is available for your account and whether it syncs payments or only invoices before writing your own.

Once collected amounts live on the Opportunity, the lead source and any gclid stored on the original Lead carry through lead conversion, so you can tell which campaigns produce clients who pay on time. If you later upload offline conversions to Google or Meta from Salesforce, consider sending the collected amount from FreshBooks as a later value adjustment rather than treating the Opportunity amount as cash.

FreshBooks → Salesforce · what breaks

Why this join usually fails — FreshBooks → Salesforce

  1. 01

    The Lead or Contact identity never reaches FreshBooks

    The client relationship starts on your website and the invoice is created weeks later by you, in an app, with no session anywhere near it.

  2. 02

    Invoices sent counted as revenue earned

    For a service business with payment terms this systematically reports revenue a month or more early, and it never corrects for the invoices that are simply never paid.

  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.

FreshBooks → Salesforce · the fix

What working looks like — FreshBooks → Salesforce

  • The Lead or Contact identity on every invoice

  • 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

FreshBooks → Salesforce · architecture

How FreshBooks and Salesforce actually connect

  1. 1

    FreshBooks holds the truth

    An invoice sent is a claim; an invoice paid is revenue. On thirty-day terms those are different months, and reporting the first as a conversion books income you have not received and may not.

  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 FreshBooks invoice.

  4. 4

    The event source decides reliability

    Send invoices at the point of payment, at the amount received after any processing fee.

  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.

FreshBooks → Salesforce · normal or broken

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

Normal, not a fault

  • The Lead or Contact identity present on the invoice

  • Sent from the FreshBooks payment record

  • 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 client relationship starts on your website and the invoice is created weeks later by you, in an app, with no session anywhere near it.

  • Sent from the browser

    For a service business with payment terms this systematically reports revenue a month or more early, and it never corrects for the invoices that are simply never paid.

  • 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

FreshBooks → Salesforce · diagnose

Diagnostic order — FreshBooks → Salesforce

  1. 01

    Count invoices carrying the Lead or Contact identity

  2. 02

    Follow one real conversion end to end

  3. 03

    Measure your average days-to-payment and your write-off rate

    Two numbers. Together they tell you how far your reported revenue sits from your bank balance.

  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.

FreshBooks → Salesforce · prove

How it gets proven — FreshBooks → Salesforce

Source of truth

FreshBooks invoices by payment date, not by issue date.

  • The Lead or Contact identity confirmed present on a live invoice.
  • A test value confirmed present on the record in the UI, and confirmed to survive Lead conversion.
  • Payments received reconciled against imported conversions over a window longer than your payment terms.

FreshBooks → Salesforce · free audit

What we check in the free audit

  • Count invoices carrying the Lead or Contact identity
  • Follow one real conversion end to end
  • Measure your average days-to-payment and your write-off rate
  • Write a test value and open the record in the UI
  • Read the match rate, not the success message

Checked against

FreshBooks invoices by payment date, not by issue date.

Get my free conversion tracking audit

Free30 minutesNo obligation

FreshBooks → Salesforce · when not to buy

When you don't need this — FreshBooks → Salesforce

  • Measure identifier coverage yourself first — pull your last hundred invoices and count how many carry the Lead or Contact identity.
  • If you take payment upfront, issue and payment coincide and this whole distinction disappears.
  • 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.

FreshBooks → Salesforce · what we deliver

What gets built — FreshBooks → Salesforce

  • Identifier capture into FreshBooks

    Store the identifier on the client record at first enquiry and carry it onto every invoice raised against that client.

  • Event source: the FreshBooks payment record

    Send invoices at the point of payment, at the amount received after any processing fee.

  • 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

    Credit notes and refunds reverse. Written-off invoices should reverse too, and usually never do.

Written guarantee

95%+ tracking accuracy

Measured against FreshBooks invoices by payment date, not by issue date.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

FreshBooks → Salesforce questions, answered

Check the FreshBooks app marketplace and the Salesforce AppExchange for a current connector, and whether it syncs payments rather than just invoices. Many teams write payments to Salesforce through the FreshBooks API.

Free · 30 min

Get FreshBooks and Salesforce joined properly

Free30 minutesNo obligation