/
Xero Integration

Xero Integration

This article details the standard Xero Integration between Salesforce and Xero to extend the Maica and Field Service solution.

ITEM

NOTES

ITEM

NOTES

Base Integration and Authentication

https://developer.xero.com/documentation/guides/oauth2/overview/

Establish a secure connection between Xero and Salesforce.

Configure the architecture to enable data services.

Create Suppliers

https://developer.xero.com/documentation/api/accounting/accounts

PUT Suppliers in Xero if they meet the specified criteria (to be defined) on an Account Record in Salesforce.

Return the Xero ID to the Supplier Record in Salesforce.

One way sync. Salesforce to Xero.

Scheduled Process nightly sync.

Update Suppliers

https://developer.xero.com/documentation/api/accounting/accounts

POST Supplier updates where a Xero ID has been established in Salesforce on the Account record.

One way sync. Salesforce to Xero.

Scheduled Process nightly sync.

Create Contacts

https://developer.xero.com/documentation/api/accounting/contacts

PUT all Client Contacts from Salesforce to Xero when a new Service Agreement is created.

Return the Xero ID to the Contact Record in Salesforce.

One way sync. Salesforce to Xero.

Scheduled Process nightly sync.

Update Contacts

https://developer.xero.com/documentation/api/accounting/contacts#post-contacts

POST all Client Contacts from Salesforce to Xero when a new Service Agreement is created.

One way sync. Salesforce to Xero.

Scheduled Process nightly sync.

Create Invoices

https://developer.xero.com/documentation/api/accounting/invoices#post-invoices

Create an Invoice and Invoice Line Item when Invoice Line Item is created in Salesforce.

Retrieve the Status of the Invoice when it's updated in Xero via webhook.

Two way Sync. POST Invoice to Xero, update in Salesforce via webhook.

Scheduled Process nightly sync.

Retrieve Expenses

https://developer.xero.com/documentation/api/accounting/invoices

GET Invoice (Bills) from Xero and match them to Suppliers and Agreement Items in Salesforce.

One way sync. Xero to Salesforce.

Scheduled Process nightly sync.

Expense Claims API is deprecated with a note in the documentation:

Important Update – October 2018: Last year, we announced the arrival of our new Xero Expenses product. Access to classic expense claims functionality is only available to customers who used it in the 6 months prior to 10 July 2018.

If you're planning on building a new expenses integration we suggest you create ACCPAY Invoices (bills) in Xero instead of using ExpenseClaims and Receipts.

Create Products/Items

https://developer.xero.com/documentation/api/accounting/items

POST Products from Salesforce to Xero. This will be triggered via a Quick Action on a Price Book.

One way sync. Salesforce to Xero.

Need to confirm that this is the accurate API service for creating Products in Xero.

Related content