Xero + icon

Xero +

Consume Xero API

Account → Get Many

AI-generated

Summary

Retrieve a list of accounts from a specified Xero organization, with optional filtering, sorting, and pagination parameters.

Inputs

  • Organization Name or ID (required) — Select or provide the Xero organization tenant ID from which to fetch accounts.
  • Options — Optional parameters to filter accounts modified after a given date, specify order and sort direction, filter by various account properties (such as type, status, class), or provide a custom advanced filter clause to override predefined filters.

Output shape

a list of account objects as returned by the Xero API, each containing details such as account type, status, code, name, and other metadata

Supports filtering accounts based on built-in fields or using a custom where clause that overrides other filters; orders results by a selected field and sort order; returns accounts only from the chosen organization tenant.

Examples

Example 1: Fetch active bank accounts modified since a certain date in a specific organization, ordered by account code ascending.

Set 'Organization Name or ID' to the target tenant; under Options, set 'Modified After' to the desired date, specify 'Type' to 'BANK' and 'Status' to 'ACTIVE' in Where Filters; order by 'Code' ascending.

Links

Discussion