Connecting FreshBooks to BigQuery
FreshBooks is invoicing for people who bill for their time, which puts an unavoidable gap between winning the work and being paid for it. BigQuery has no attribution model, no deduplication rules and no opinion about your data — which makes it the only destination on this site where every number is exactly as good as the query that produced it. The join between them succeeds or fails on one thing: whether whatever join key you decide on reaches the FreshBooks invoice before the conversion happens, because BigQuery can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
FreshBooks in BigQuery: days-to-payment beside your ad clicks
Load FreshBooks invoices and payments into BigQuery as separate tables keyed by FreshBooks IDs, with issue, due and payment dates, amount, currency and appended status history, merged nightly from the API. Store click identifiers and UTMs from the first inquiry in their own table under an ID also written onto the FreshBooks client, so time-to-cash per channel is one join.
BigQuery is where the FreshBooks gap between invoice and payment stops being a reporting argument and becomes a query. Load invoices and payments as separate tables keyed by FreshBooks IDs, with issue date, due date, payment date, amount and status, and time-to-cash for each acquisition channel is one join away.
The channel comes from the first enquiry, not from FreshBooks. Store click identifiers and UTM values when the prospect first submits your form, keep them in their own table keyed by an enquiry or client ID, and write that same ID onto the FreshBooks client when you create it. Without that ID on the FreshBooks side, the only join left is client email or company name, and company names are typed by hand and drift.
Watch currency and status. FreshBooks supports invoices in multiple currencies, so store the currency on every row and convert in a view, not at load. Invoices move through states (sent, viewed, partially paid, paid, written off), so append status changes instead of overwriting, or a write-off three months later quietly disappears from history. Pull from the FreshBooks API on a schedule and MERGE on the FreshBooks ID; a nightly load is plenty for a business whose cash arrives on thirty-day terms.
FreshBooks → BigQuery · what breaks
Why this join usually fails — FreshBooks → BigQuery
- 01
Whatever join key you decide on 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.
- 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.
- 03
The warehouse quietly disagreeing with every platform
This is not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.
- 04
Nothing reconciles afterwards
BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.
FreshBooks → BigQuery · the fix
What working looks like — FreshBooks → BigQuery
Whatever join key you decide on on every invoice
Conversions arriving in BigQuery
The row lands in a table you own, joinable to every other table you own, with no window and no expiry.
Reconciled against the source
FreshBooks → BigQuery · architecture
How FreshBooks and BigQuery actually connect
- 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
BigQuery needs a click to match
BigQuery needs a schema and consistent types. The failure mode is not rejection, it is silent divergence: a column that arrives as a string in one load and an integer in the next, or a timestamp in the wrong zone, which produces answers that look plausible and are not.
- 3
The identifier is the bridge
Whatever join key you decide on, captured at the visit and carried into the FreshBooks invoice.
- 4
The event source decides reliability
Send invoices at the point of payment, at the amount received after any processing fee.
- 5
Deduplication at the destination
Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.
FreshBooks → BigQuery · normal or broken
Working vs. broken, side by side — FreshBooks → BigQuery
Normal, not a fault
Whatever join key you decide on present on the invoice
Sent from the FreshBooks payment record
Deduplicated correctly
Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.
Reconciles with the source
Actually broken
Whatever join key you decide on 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
This is not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.
Nobody has reconciled it
FreshBooks → BigQuery · diagnose
Diagnostic order — FreshBooks → BigQuery
- 01
Count invoices carrying whatever join key you decide on
- 02
Follow one real conversion end to end
- 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.
- 04
Reconcile warehouse order counts against each platform for one closed window
The gaps localize the problem: a gap against all platforms is a collection issue, a gap against one is that platform's window or matching.
- 05
Read the match rate, not the success message
BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.
FreshBooks → BigQuery · prove
How it gets proven — FreshBooks → BigQuery
Source of truth
FreshBooks invoices by payment date, not by issue date.
- Whatever join key you decide on confirmed present on a live invoice.
- Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
- Payments received reconciled against imported conversions over a window longer than your payment terms.
FreshBooks → BigQuery · free audit
What we check in the free audit
- Count invoices carrying whatever join key you decide on
- Follow one real conversion end to end
- Measure your average days-to-payment and your write-off rate
- Reconcile warehouse order counts against each platform for one closed window
- Read the match rate, not the success message
Checked against
FreshBooks invoices by payment date, not by issue date.
Free30 minutesNo obligation
FreshBooks → BigQuery · when not to buy
When you don't need this — FreshBooks → BigQuery
- Measure identifier coverage yourself first — pull your last hundred invoices and count how many carry whatever join key you decide on.
- If you take payment upfront, issue and payment coincide and this whole distinction disappears.
- If you have one store and one ad platform, a warehouse is infrastructure you will maintain for a reconciliation you could do in a spreadsheet.
FreshBooks → BigQuery · what we deliver
What gets built — FreshBooks → BigQuery
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 BigQuery
Streaming inserts or scheduled batch loads from your order system, with the raw event retained alongside whatever you derive from it.
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.
From $400 · See packages
FAQ
FreshBooks → BigQuery questions, answered
Pull invoices, payments and clients from the FreshBooks API on a schedule, or use a connector you already pay for, and MERGE on FreshBooks IDs. Keep status history rather than overwriting rows.
Store the click ID at first enquiry with an enquiry ID, put that ID on the FreshBooks client record, and join payments to it. Email-only joins break when invoices go to a billing contact.
Almost always because whatever join key you decide on never reached the FreshBooks invoice. 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. Measure coverage before debugging the dispatch.
There is no vendor identifier here. You choose the key — order ID, user ID, click identifier, hashed email — and you live with the consequences. That is the whole appeal and the whole risk: nothing is standardised for you and nothing is silently wrong in a vendor's favour either.
The FreshBooks payment record. Send invoices at the point of payment, at the amount received after any processing fee.
BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.
More on FreshBooks → BigQuery
- Stripe → BigQueryConnecting Stripe to BigQuery
- PayPal → BigQueryConnecting PayPal to BigQuery
- Shopify → BigQueryConnecting Shopify to BigQuery
RELATED GUIDES
Where FreshBooks → BigQuery fits in the rest of your tracking
- Xero → BigQueryConnecting Xero to BigQuery
- QuickBooks → BigQueryConnecting QuickBooks to BigQuery
- Wave → BigQueryConnecting Wave to BigQuery
- FreshBooks → SnowflakeConnecting FreshBooks to Snowflake
- FreshBooks → SegmentConnecting FreshBooks to Segment
- BookkeepingConversion tracking for bookkeeping firms, valued on the retainer not the enquiry
- BILL → BigQueryConnecting BILL to BigQuery
- Harvest → BigQueryConnecting Harvest to BigQuery
Free · 30 min
Get FreshBooks and BigQuery joined properly
Free30 minutesNo obligation
