Sync new or updated FreshBooks invoices to Google Sheets

AccountingDeveloperAPIUtilities

What it does

When a FreshBooks invoice is created or updated, this automation syncs it to Google Sheets with client and tracking details. If the invoice row exists, it updates the row; if not, it creates one and sends an email when delivery is confirmed.

Who it's for

Accounting teams who track invoices and shipments in a shared spreadsheet without manual data entry.

How teams use this

Keep invoice records current in Google Sheets

Sync FreshBooks invoices to a shared Google Sheet so the team sees client name, invoice number, and tracking status without opening FreshBooks. The spreadsheet becomes the single source of truth for billing and shipment status.

Notify clients when shipments arrive

When tracking confirms delivery, send an automated email to the client with invoice details and confirmation. This reduces manual follow-up and keeps clients informed at the right moment.

Track consignments by PO number

Use the PO number field in FreshBooks to link invoices to shipment tracking via REST API. Only invoices with delivered status sync to a separate sheet for reconciliation and reporting.

Sync invoices to a finance dashboard

Route all new invoices to Google Sheets so finance teams can build pivot tables and charts for revenue tracking. Add a column for payment status to check against FreshBooks payment records.

How it works

  1. Monitor for new or updated invoice. FreshBooks detects when an invoice is created or updated and starts this automation with the invoice number, client, and PO number.
  2. Retrieve client and invoice details. Fetch the client name, email, and invoice details from FreshBooks so the spreadsheet row has complete information.
  3. Get tracking status via REST API. Query the tracking API using the PO number stored in FreshBooks to retrieve the current shipment status and delivery confirmation from the carrier.
  4. Add or update the spreadsheet row. Search Google Sheets for the invoice number. If found, update the row with new details; if not found, create a new row with all invoice and tracking data.
  5. Send delivery confirmation email. When tracking shows the shipment is delivered, send an email to the client with the invoice number and delivery confirmation via Rest.