Sync new Xero invoices to FreshBooks

AccountingUtilities

What it does

When a new or updated invoice is created in Xero with approved status, this automation syncs it to FreshBooks. It matches or creates the contact, then creates the invoice with synced line items and tax settings.

Who it's for

Accounting teams who use both Xero and FreshBooks and need invoices synced between systems without manual entry.

How teams use this

Sync invoices between accounting systems

Approved invoices from Xero automatically create matching records in FreshBooks with the same line items and amounts, eliminating manual data entry and keeping both systems in sync.

Match contacts by email or name

The automation searches FreshBooks for an existing client by email address first, then by first and last name if email is missing, ensuring the invoice links to the correct client record.

Create missing items during sync

If a line item from the Xero invoice does not exist in FreshBooks, the automation creates it with the specified account code and item name, then includes it on the invoice.

Prevent duplicate invoice creation

The automation adds the FreshBooks Invoice ID to the Xero reference field as a flag. Future runs check for this flag and skip already-synced invoices, avoiding duplicates.

How it works

  1. Monitor for new approved invoices. Watch Xero for invoices with approved status that do not contain FreshBooks Invoice ID in the reference field, indicating they have not been synced yet.
  2. Retrieve the contact details. Pull the contact information from the Xero invoice, including email address, first name, and last name for matching in FreshBooks.
  3. Search or create the client. Search FreshBooks for a matching client by email first, then by name if email is not available. Create a new client record if no match is found.
  4. Create the invoice in FreshBooks. Create a new invoice in FreshBooks with the synced line items, amounts, and tax settings. Add the FreshBooks Invoice ID to the Xero reference field to prevent duplicate syncs.