Provides integration with Xero, an online accounting platform used to manage organizations, contacts, invoices, payments and other finance records, through the Xero Accounting API.
Use this Node to read and change Xero data from a Workflow, for example to query invoices by status, download invoice PDFs and attachments, create contacts and invoices from incoming data, or email invoices to customers.
0.0.0.1 - Initial release.
0.0.0.8 - Maintenance release.
0.0.0.9 - Get rows now return Xero data unchanged, and mutation rows include a top-level Flowgear object.
0.0.0.10 - Renamed the methods to Query, Create, Update, and Delete.
0.1.0.0 - Runtime overhaul.
0.1.1.0 - Query now retrieves the first page before returning and loads later pages as the Workflow consumes rows.
0.1.1.1 - Designer templates now retain inherited fields when OpenAPI schemas use constraints-only allOf overlays.
0.1.1.3 - Maintenance release.
0.1.1.9 - Added the Get, List, Download, Upsert, and Action Methods, moved record IDs onto each item, and renamed the Connection Properties. Query now requires a filter, and the Node pages through results itself. Existing Steps must reselect their templates.
0.1.1.10 - Download now stops when the Workflow is cancelled.
The Xero Connection stores the OAuth settings, tokens, and the organization that every request acts on.
| Property |
Type |
Description |
XeroTenantId |
String |
tenantId of the Xero organization to use, from ListOfTenants. |
ClientId |
String |
OAuth client identifier from your Xero app. |
ClientSecret |
Masked |
OAuth client secret from your Xero app. |
Scopes |
String |
Space-separated Xero scopes requested when you connect the account. |
AccessToken |
Masked |
Hidden. Populated when you connect the account and renewed automatically. |
RefreshToken |
Masked |
Hidden. Populated when you connect the account and saved again on every renewal. |
ListOfTenants |
String |
Organizations the Connection can reach, populated by Acquire Metadata. |
- Create a Xero OAuth 2.0 Web app and add the Flowgear OAuth callback URL,
https://app.flowgear.net/r/auth, to its redirect URIs.
- Create a Connection for
Xero and enter ClientId and ClientSecret. Leave Scopes blank to use the default scopes, or enter the scopes your Workflows need.
- Click
Connect Account and authorize the Xero organization so the Connection can store the AccessToken and RefreshToken.
- Click
Acquire Metadata to populate ListOfTenants, then set XeroTenantId to the organization you want to use. When the account reaches only one organization, it is selected automatically.
- Test and save the
Connection. The test confirms that the selected organization can be read.
The default scopes are offline_access accounting.transactions accounting.reports.read accounting.journals.read accounting.settings accounting.contacts accounting.attachments. Xero apps created since March 2026 must list granular scopes instead.
This Node runs on the Cloud Cluster.
Select a template for each Step. Templates supply OperationId and the inputs for the selected Xero operation, and each template belongs to one Method.
Gets one Xero record by ID or number, or a report.
| Parameter |
Type |
Description |
Connection |
Connection |
Xero Connection to use. |
OperationId |
String |
Operation selected by the template. |
Options |
Object |
Record ID or number, and any controls for the selected operation. |
| Return |
Type |
Description |
Response |
Array |
The Xero record or report rows. |
Lists a whole Xero collection, or the attachments or history of a record.
| Parameter |
Type |
Description |
Connection |
Connection |
Xero Connection to use. |
OperationId |
String |
Operation selected by the template. |
Options |
Object |
Controls for the selected operation, such as order or includeArchived. |
| Return |
Type |
Description |
Response |
Array |
One row per Xero record, across every page. An empty collection returns zero rows. |
Reads the Xero records that match one or more filters.
| Parameter |
Type |
Description |
Connection |
Connection |
Xero Connection to use. |
OperationId |
String |
Operation selected by the template. |
Options |
Object |
At least one filter, such as where, If-Modified-Since, an ID or number list, or searchTerm, plus any controls. |
| Return |
Type |
Description |
Response |
Array |
One row per matching Xero record, across every page. No matches return zero rows. |
A Query Step with no filter fails. Use List to read a whole collection.
Downloads an attachment, or a record as a PDF.
| Parameter |
Type |
Description |
Connection |
Connection |
Xero Connection to use. |
OperationId |
String |
Operation selected by the template. |
Options |
Object |
Record ID and, for attachments, the file name and contentType. |
| Return |
Type |
Description |
Content |
Stream |
The attachment or PDF content. |
Creates Xero records, including payments and attachments.
| Parameter |
Type |
Description |
Connection |
Connection |
Xero Connection to use. |
OperationId |
String |
Operation selected by the template. |
Items |
Array |
Records to create. Each item carries its own parent IDs, such as InvoiceID and FileName for an attachment. |
Options |
Object |
Operation controls, such as unitdp. |
| Return |
Type |
Description |
Response |
Array |
One row per item: the Xero record plus a Flowgear object with IsSuccess, Message, and Request. |
Updates existing Xero records.
| Parameter |
Type |
Description |
Connection |
Connection |
Xero Connection to use. |
OperationId |
String |
Operation selected by the template. |
Items |
Array |
Records to update. Each item carries its own record ID, such as InvoiceID, and the fields to change. |
Options |
Object |
Operation controls, such as unitdp. |
| Return |
Type |
Description |
Response |
Array |
One row per item: the Xero record plus a Flowgear object with IsSuccess, Message, and Request. |
Creates Xero records, or updates them when they already exist.
| Parameter |
Type |
Description |
Connection |
Connection |
Xero Connection to use. |
OperationId |
String |
Operation selected by the template. |
Items |
Array |
Records to create or update. |
Options |
Object |
Operation controls, such as unitdp. |
| Return |
Type |
Description |
Response |
Array |
One row per item: the Xero record plus a Flowgear object with IsSuccess, Message, and Request. |
Deletes Xero records, or sets their status to DELETED where Xero deletes by status.
| Parameter |
Type |
Description |
Connection |
Connection |
Xero Connection to use. |
OperationId |
String |
Operation selected by the template. |
Items |
Array |
Records to delete. Each item carries its own record ID. |
Options |
Object |
Operation controls for the selected operation. |
| Return |
Type |
Description |
Response |
Array |
One row per item, with a Flowgear object containing IsSuccess, Message, and Request. |
Emails invoices from Xero.
| Parameter |
Type |
Description |
Connection |
Connection |
Xero Connection to use. |
OperationId |
String |
Operation selected by the template. |
Items |
Array |
One item per invoice, each with its InvoiceID. |
Options |
Object |
Operation controls for the selected operation. |
| Return |
Type |
Description |
Response |
Array |
One row per item, with a Flowgear object containing IsSuccess, Message, and Request. |
- When upgrading to version
0.1.1.9, reselect the template on every Xero Step. Move single-record reads from Query to Get, whole-collection reads to List, and attachment and PDF reads to Download. The old Update operations are now under Create, and the old Create operations are under Update or Upsert.
- When upgrading to version
0.1.1.9, map record IDs into Items instead of Options. Delete and Action now take Items. Saved Connections keep their values after the Property renames.
- The Node pages through results itself, so
page and pageSize are not inputs. Each page counts as one Xero API call.
- List filters take comma-separated values, for example
Statuses set to DRAFT,AUTHORISED. A value that itself contains a comma is not supported.
Create, Update, Upsert, Delete and Action send one request per item. A failure on the first item fails the Step. A rejection on a later item returns a row with Flowgear.IsSuccess set to false, and later items still run.
- Writes are not retried. When a later item returns a server error or times out, its row says the result is unknown, so check Xero before sending that item again.
- Xero allows 60 calls a minute and a daily call limit per organization. The Node waits out a short per-minute limit and stops when the daily limit is reached.
- When Xero reports that the Connection lacks a scope, add the scope to
Scopes and connect the account again. Journals require accounting.journals.read, which Xero grants only to approved apps.
- When the connected account has access to more than one Xero organization, you must choose the correct
tenantId manually from ListOfTenants.
- Downloads are read whole into memory before the
Content stream is returned.