Skip to main content

List Accounts (V2)

GET 

/api/xero/v2/accounts

Paginated list of Xero accounts with advanced filtering via Spatie QueryBuilder + GroupedFilterSupport.

Authentication: Requires Bearer token.

Query Parameters:

  • page (optional, integer, default 1): Page number
  • per_page (optional, integer, default 15): Records per page
  • sort (optional, string): Allowed sorts: id, Name, Code, Type, Status, Class, created_at. Default: Name
  • filter[search] (optional, string): Search across id, Name, Code

Advanced Filters (filter_groups): Supports all operators: is, is_not, contains, does_not_contain, starts_with, ends_with, is_empty, is_not_empty, is_one_of (text fields); greater_than, less_than, between (numeric). Filterable columns: id (numeric), Name (text), Code (text), Type (text), Class (text), Status (text)

Request

Responses

Successful response