Sync approved Xero invoices to Infusionsoft orders

AccountingUtilitiesCRMMarketing

What it does

When a new or updated invoice is approved in Xero, this automation searches Infusionsoft to see if it already exists. If not, it creates the contact and items as needed, then syncs the invoice as an order with all line items and sales tax.

Who it's for

Accounting teams who need invoices from Xero synced to Infusionsoft without manual entry.

How teams use this

Sync invoices without duplicate orders

Approved invoices from Xero are synced to Infusionsoft as orders only once. The automation checks for existing orders and stops if a match is found, preventing duplicates.

Create missing contacts during sync

When a Xero invoice references a contact that does not exist in Infusionsoft, the automation creates that contact with the email address and marks it as marketable before syncing the order.

Handle products and tax on the order

Products from Xero line items are created in Infusionsoft if they do not exist, and sales tax is added as a separate line item on the order instead of at the product level.

Route invoices by sales region

Extend this automation to filter invoices by a custom field in Xero and route them to different Infusionsoft accounts or add a region tag to the order.

How it works

  1. Watch for new invoices in Xero. Monitor Xero for invoices that are approved and do not already have an Infusionsoft reference in the notes field.
  2. Search for the contact in Infusionsoft. Look up the contact by email address from the Xero invoice. If the contact does not exist in Infusionsoft, create it and mark it as marketable.
  3. Search for and create items. Find each product in Infusionsoft by matching the Xero item code to the product name. Create any missing products without tax status since Infusionsoft handles tax at the order level.
  4. Check if order already exists. Search Infusionsoft orders to confirm this invoice has not been synced before. Stop the automation if a match is found to prevent duplicates.
  5. Create the order with line items. Create the order in Infusionsoft with all line items from Xero, including a separate line for sales tax. Add the Xero invoice ID to the order reference field.