Connecting Square to Salesforce
Square holds the transaction, and for most Square businesses the majority of those transactions are a card tapped at a counter with no browser anywhere near them. 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 Square payment or order 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
Square and Salesforce: payments onto deals for service businesses
Store the Salesforce Account or Contact ID on the Square customer when the invoice is created, then use Square's invoice and payment webhooks to write paid amounts back to the Opportunity. Move it to Closed Won only when payment clears, and roll up deposits and final payments, or Closed Won fires on the deposit and offline conversions report a fraction.
Square-to-Salesforce matters for service and B2B businesses that quote and sell in Salesforce and collect payment through Square invoices or a terminal, such as contractors, agencies and event companies. The question is whether the deal marketing sourced actually got paid, and the join is the customer: store the Salesforce Account or Contact ID on the Square customer record when the invoice is created, using a reference ID field if your Square account exposes one.
From Square's invoice and payment webhooks, write paid amounts back to the Opportunity, either updating a custom paid-amount field or creating a related payment record, and move the stage to Closed Won only when payment clears. That makes the Opportunity the moment of revenue, which is what you would later upload offline to Google or Meta, using the click identifiers captured on the original inquiry form. Check whether an app from the Square App Marketplace or AppExchange already does this sync for your setup.
The pair-specific break is partial payments and deposits. Square records each payment separately, so an Opportunity with a deposit and a final payment needs both rolled up, or Closed Won fires on the deposit and the offline conversion reports a fraction of the deal.
Square → Salesforce · what breaks
Why this join usually fails — Square → Salesforce
- 01
The Lead or Contact identity never reaches Square
Square Online checkout is hosted, so the identifier must be carried deliberately rather than by cookie. For in-person payments there is no identifier at all unless the customer booked an appointment or is in the customer directory — a walk-in who taps a card cannot be joined to an ad click by anyone.
- 02
Most of the revenue has no browser
A card at a terminal has no click, no session and no identifier. That is a boundary to measure rather than a bug to fix, and the honest deliverable includes how much of your revenue sits outside it.
- 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.
- 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.
Square → Salesforce · the fix
What working looks like — Square → Salesforce
The Lead or Contact identity on every transaction
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
Square → Salesforce · architecture
How Square and Salesforce actually connect
- 1
Square holds the truth
Square records every payment with its amount, channel and, where the customer is identified, a link to the customer directory. That directory is the only bridge between a counter payment and anything that happened online.
- 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
The identifier is the bridge
The Lead or Contact identity, captured at the visit and carried into the Square payment or order.
- 4
The event source decides reliability
Subscribe to payment and order events and send from your server. This covers online orders cleanly, and covers in-person payments only for the share you can join to an identity.
- 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.
Square → Salesforce · normal or broken
Working vs. broken, side by side — Square → Salesforce
Normal, not a fault
The Lead or Contact identity present on the transaction
Sent from the Square payment webhook
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
Square Online checkout is hosted, so the identifier must be carried deliberately rather than by cookie. For in-person payments there is no identifier at all unless the customer booked an appointment or is in the customer directory — a walk-in who taps a card cannot be joined to an ad click by anyone.
Sent from the browser
A card at a terminal has no click, no session and no identifier. That is a boundary to measure rather than a bug to fix, and the honest deliverable includes how much of your revenue sits outside it.
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
Square → Salesforce · diagnose
Diagnostic order — Square → Salesforce
- 01
Count transactions carrying the Lead or Contact identity
- 02
Follow one real conversion end to end
- 03
Split Square revenue by channel before anything else
Online versus in-person. Every subsequent number depends on that split, and blending them makes both unreadable.
- 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.
- 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.
Square → Salesforce · prove
How it gets proven — Square → Salesforce
Source of truth
Square's transaction list, split by channel — online and in-person are different questions.
- The Lead or Contact identity confirmed present on a live transaction.
- A test value confirmed present on the record in the UI, and confirmed to survive Lead conversion.
- The in-person join rate measured and stated as a number before any coverage claim is made.
Square → Salesforce · free audit
What we check in the free audit
- Count transactions carrying the Lead or Contact identity
- Follow one real conversion end to end
- Split Square revenue by channel before anything else
- Write a test value and open the record in the UI
- Read the match rate, not the success message
Checked against
Square's transaction list, split by channel — online and in-person are different questions.
Free30 minutesNo obligation
Square → Salesforce · when not to buy
When you don't need this — Square → Salesforce
- Measure identifier coverage yourself first — pull your last hundred transactions and count how many carry the Lead or Contact identity.
- If nearly all your revenue is in person with no appointments and no identified customers, there is very little here to attribute and we will say so rather than build a bridge to nothing.
- 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.
Square → Salesforce · what we deliver
What gets built — Square → Salesforce
Identifier capture into Square
Capture the click identifier and carry it into Square Online checkout, and for in-person work use an appointment booking as the bridge so the eventual payment can be joined through the customer record.
Event source: the Square payment webhook
Subscribe to payment and order events and send from your server. This covers online orders cleanly, and covers in-person payments only for the share you can join to an identity.
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
Square exposes refunds clearly, and in hospitality and services voids and comps are frequent enough that wiring the reversal matters.
Written guarantee
95%+ tracking accuracy
Measured against Square's transaction list, split by channel — online and in-person are different questions.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Square → Salesforce questions, answered
Store the Salesforce ID on the Square customer or invoice, then write each payment from Square's webhooks to the matching Opportunity. Close it won when payment clears.
Roll up every Square payment for the deal before marking it won; otherwise the conversion reports the deposit, not the deal value.
Almost always because the Lead or Contact identity never reached the Square payment or order. Square Online checkout is hosted, so the identifier must be carried deliberately rather than by cookie. For in-person payments there is no identifier at all unless the customer booked an appointment or is in the customer directory — a walk-in who taps a card cannot be joined to an ad click by anyone. Measure coverage before debugging the dispatch.
Salesforce resolves on its own record identity — a Lead, a Contact, or an Account — rather than on a click identifier. What you are doing here is attaching marketing context to a record so the pipeline carries it, which means the click identifier arrives as a custom field value rather than as a matching key. The hazard is duplicates: two Leads for one person means two records with half the history each.
The Square payment webhook. Subscribe to payment and order events and send from your server. This covers online orders cleanly, and covers in-person payments only for the share you can join to an identity.
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.
More on Square → Salesforce
- Square Online → SalesforceConnecting Square Online to Salesforce
- Square Appointments → SalesforceConnecting Square Appointments to Salesforce
- Square → Marketing CloudConnecting Square to Salesforce Marketing Cloud
RELATED GUIDES
Where Square → Salesforce fits in the rest of your tracking
- Helcim → SalesforceConnecting Helcim to Salesforce
- Mollie → SalesforceConnecting Mollie to Salesforce
- Recharge → SalesforceConnecting Recharge to Salesforce
- Square → 6senseConnecting Square to 6sense
- Square → HubSpotConnecting Square to HubSpot
- Financial servicesConversion tracking for financial services, built for the compliance review
- Checkout.com → SalesforceConnecting Checkout.com to Salesforce
- Affirm → SalesforceConnecting Affirm to Salesforce
Free · 30 min
Get Square and Salesforce joined properly
Free30 minutesNo obligation
