Export Accounts (V2)
GET/api/xero/v2/accounts/export
Download the synced Xero chart of accounts as a CSV or XLSX file. Exports every account matching the given filters (no pagination) using the same filter parameters as List Accounts (V2). The response is a file attachment named xero-accounts-<timestamp>.<format>.
Any valid API token can call this endpoint — no specific scope required. Manage tokens.
Columns: ID, AccountID, Name, Code, Type, Status, Class, SKU Account (the linked SKU.io ledger account name, blank when unlinked), Created At, Updated At.
Query parameters: format (csv, default, or xlsx) plus optional filters — filter[search], exact-match filters on Name/Code/Type/Class/Status/id (each also supports operator variants such as filter[Name.contains] and filter[Status.is_not]), and filter_groups (base64-encoded JSON tree for and/or combinations).
Authentication: Bearer token.
Request
Responses
- 200
- 401
- 403
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.