Skip to content
For LLMsView as Markdown·

Xero ​

Cloud accounting API for invoices, contacts, bank transactions, and financial reports.

DetailValue
CategoryFinance
Base URLhttps://api.xero.com/api.xro/2.0
AuthenticationOAuth2
Endpoints6
Connector keyxero

Using Xero in a workflow ​

  1. Go to Connections and click New Connection.
  2. Pick Xero from the marketplace.
  3. Enter your credentials (see Authentication above for what's expected).
  4. In a workflow, drop an API Call node and select this connection.
  5. Pick the operation you need from the Operation dropdown. The full list is below.

Available endpoints ​

EndpointSummary
GET /InvoicesList all invoices
POST /InvoicesCreate an invoice
GET /ContactsList all contacts
POST /ContactsCreate a contact
GET /BankTransactionsList bank transactions
GET /AccountsList chart of accounts

Each endpoint is documented in full below. Use the outline on the right to jump to one.

GET /Invoices ​

List all invoices

DetailValue
Operation IDfinance.listInvoices
MethodGET
Path/Invoices

Parameters ​

NameLocationTypeRequired
pagequeryintegerNo
wherequerystringNo

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your Xero connection from the Connection dropdown.
  3. In the Operation dropdown, select finance.listInvoices.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Xero API reference.

POST /Invoices ​

Create an invoice

DetailValue
Operation IDfinance.createInvoice
MethodPOST
Path/Invoices

Parameters ​

No parameters.

Request Body ​

FieldType
Typestring
Contactobject
LineItemsarray

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your Xero connection from the Connection dropdown.
  3. In the Operation dropdown, select finance.createInvoice.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Xero API reference.

GET /Contacts ​

List all contacts

DetailValue
Operation IDfinance.listContacts
MethodGET
Path/Contacts

Parameters ​

NameLocationTypeRequired
pagequeryintegerNo

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your Xero connection from the Connection dropdown.
  3. In the Operation dropdown, select finance.listContacts.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Xero API reference.

POST /Contacts ​

Create a contact

DetailValue
Operation IDfinance.createContact
MethodPOST
Path/Contacts

Parameters ​

No parameters.

Request Body ​

FieldType
Namestring
EmailAddressstring

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your Xero connection from the Connection dropdown.
  3. In the Operation dropdown, select finance.createContact.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Xero API reference.

GET /BankTransactions ​

List bank transactions

DetailValue
Operation IDfinance.listBankTransactions
MethodGET
Path/BankTransactions

Parameters ​

NameLocationTypeRequired
pagequeryintegerNo

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your Xero connection from the Connection dropdown.
  3. In the Operation dropdown, select finance.listBankTransactions.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Xero API reference.

GET /Accounts ​

List chart of accounts

DetailValue
Operation IDfinance.listAccounts
MethodGET
Path/Accounts

Parameters ​

No parameters.

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your Xero connection from the Connection dropdown.
  3. In the Operation dropdown, select finance.listAccounts.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Xero API reference.