W-Systems joins SugarCRM! Read Blog

Xero Accounting to SugarCRM Integration

Our customers often use Sugar to generate and manage quotes and proposals; however, once the sale is made, orders and invoices are managed via separate accounting software. This leaves sales agents without valuable information about their customers and it requires additional data entry work for accounting.

The Xero Adapter to SugarCRM helps you generate orders and invoices quickly.

To solve this problem, we created a custom integration of SugarCRM and Xero Online Accounting Software. Xero Accounting is a cloud-based accounting system that has established itself as a solid alternative to QuickBooks.

In the screens below, we show Sugar Quote Forms customized for our customer's unique needs. We then show a screen of how a user would convert this quote into a Xero invoice.

xero xero connector integration sugarcrm


xero integration

xero crm integration

We developed functionality that would create records in a custom invoices module in Sugar while simultaneously utilizing Xero’s API to create the invoice record in your Xero accounting software and link the two via the Xero invoice URL. From the point of creation forward, the two records in Sugar and Xero are synchronized in real-time to reflect payment status.

xero invoice sugarcrm

The new Sugar invoices module contains all the information needed to create an invoice in Xero, taken directly from the Sugar Quote record including:

  • Billing Company and Contact
  • PO Number
  • Date Issued
  • Date Due
  • All Line Items and Quantities
  • Applicable Taxes, and Grand Total Due

This is nicely summarized in Sugar for the sales agent in an invoices subpanel on the customer record, giving them quick visibility to key invoice details without having to make an inquiry to accounting.

xero invoice

If the user wishes to see the full accounting history there is a quick link that will navigate directly to the invoice in Xero itself as shown below.

xero invoice

Another key feature requirement for this customer was the ability to generate recurring invoices for their orders. To accomplish this, we added to our Xero to Sugar adapter a Start and End Date to the Sugar Quote, as well as Contract Length (in months) and Billing Interval (integer), which then calculates the number of Billing Periods. 


So, for example, if a yearly subscription plan is sold, starting on November 1, 2015, the customer sets a Start Date of 11/1/2015 and an End Date of 10/31/2016. Contract Length is then set to 12. From here they can decide to generate invoices annually, bi-annually, quarterly, or monthly. By entering a Billing Interval of 1, Sugar is going to generate 12 monthly invoices for this order and push them to the Xero integrator.

xero sugarcrm

xero sugarcrm

The Generate recurring invoices process creates a separate Sugar Invoice record for each Billing Period.

xero sugarcrm

The matching invoices are created in the Xero software on the date specified in the invoice’s Date Issued field.

With this solution, Sugar is used as the front-end for accounting, putting the power of creating invoices in sales agents’ hands, eliminating data entry for the accounting staff, and providing real-time updates on all of their invoices in Sugar. This is a great example of modern web-based and best-of-breed applications speaking together using API's to accomplish a very specific business process.

Get in touch with us to learn more about our Xero Accounting to SugarCRM Integration!

Contact Us

« Back to Portfolio