# Xero
Xero (opens new window) is a cloud-based accounting software for small to medium businesses, used to manage invoicing, bank reconciliation, bookkeeping, and more.
Workato allows you to synchronize data between Xero and the other apps you use in your organization. For example, you can sync Xero contact data into your CRM app as customer data, Xero sales data into your point-of-sales app, or Xero inventory data into your ERP app.
# Supported triggers and actions
The latest triggers and actions can be found on the Xero connector page (opens new window).
# Sales tax type when using create/update items action in Xero
To find out what types of sales tax to key in when using the Create/update items action in Xero, users can select the URL below the box (highlighted in image).
List of different types of sales taxes
This will lead users to the Tax type page as below, and they will have to key it in manually.
List of tax types
# Xero API rate limiting
According to the Xero Developer Help Center (opens new window), there is a daily limit of 1000 API calls that a provider can make against a particular Xero organization in a rolling 24 hour period. If you exceed this rate limit you will receive a HTTP 401 response with the message oauth_problem=rate%20limit%20exceeded&oauth_problem_advice=please%20wait%20before%20retrying%20the%20xero%20api
in the http response body.
# How to find different IDs in Xero
A Xero ID is a unique identifier for a record in the API. All IDs can be obtained in one of two ways.
IDs can be found in one of two ways. The first way is less common when it comes to Workato recipes - to retrieve IDs directly from the Xero site. The ID of a specific item, such as a Contact or Manual journal can be found at the end of the URL of its respective page in Xero. By using this method, you would be hardcoding the recipe to always use this ID - this is typically only used for testing.
The second, more common way is to use the Search, Create, or Update actions. Whenever Workato interacts with a record in Xero, it will receive in the API response the ID of the record. In your next action, you can use the datapill from the Xero datatree for the ID returned by the preceding action to specify what record Workato should interact with in this step. Some examples are given below.
# Contact ID
Contact ID is an unique identifier for each contact in the Xero. It can be found at the end of the URL of a particular contact page.
Contact ID in the contact page URL
You can also make use of the output datapill from the following actions to obtain Contact ID, depending on your workflow:
- New/updated contact in Xero
- Search contacts
- Create contact
For example, when you want to add persons to a contact, you could conduct Search contact by contact name or email and make use of the output datapill as shown below:
Search for contacts by name or email
# Manual Journal ID
Manual journal ID is an unique identifier for each manual journal in Xero.
You can make use of the output datapill from the following actions to obtain Manual journal ID, depending on your workflow:
- Create manual journal
- Search manual journal
- Update manual journal
Manual journal ID identifier
# Payment ID
You can make use of the output datapill from the following actions to obtain Payment ID, depending on your workflow:
- Create payment
- Search payments
Payment ID
# Employee ID
You can make use of the output datapill from the following triggers/actions to obtain Employee ID, depending on your workflow:
- New/updated employee
- Create employee
# Account ID
You can make use of the output datapill from the following triggers/actions to obtain bank Account ID, depending on your workflow:
- New/updated payment
- Create invoice payment
- Get payment
Alternatively, you can change the toggle to Account code, which can be found in Xero settings > Chart of accounts
Last updated: 7/2/2021, 8:43:36 AM