---
title: "List Ledger Accounts"
method: GET
path: "/companies/{company_id}/ledger-accounts"
tags: ["accounting-settings"]
---

# List Ledger Accounts

`GET /companies/{company_id}/ledger-accounts`

## Request

- Base URL: `https://app.zeno-works.ch` (the document declares no server; this is the origin it was published from)
- URL: `https://app.zeno-works.ch/companies/{company_id}/ledger-accounts`
- Auth: none declared

List the chart of accounts with filters + pagination (CompanyMember).

Reads one fiscal year's postable GL chart (``gl_account``, FY-scoped): the
``fiscal_year`` param, else the company's most recent year; a year the company does
not have reads back empty. The ``LedgerAccountOut`` shape is preserved by
synthesizing the legacy provenance fields (``journal_usage_count=0``;
``sources=["gl"]``; first/last-seen ``None``); ``fiscal_year`` is the year read, so
``available_fiscal_years`` holds at most that one year.

## Path parameters

- `company_id` string, required

## Query parameters

- `category` 'asset' | 'liability' | 'equity' | 'income' | 'expense' | 'tax' | 'other' | 'unknown': The account-type axis of a ledger account (Swiss-KMU chart of accounts). Distinct from — but derived from — ``LineRole`` (the journal-line semantic role). ``unknown`` is the conservative default when classification can't decide; ``other`` covers genuinely ambiguous / closing (9xxx) accounts.
- `is_profit_loss` boolean, nullable
- `fiscal_year` integer, nullable
- `q` string, nullable
- `limit` integer
- `offset` integer

## Headers

- `authorization` string, nullable

## Cookies

- `access_token` string, nullable

## Response `200`

Successful Response

- LedgerAccountsResponse: List envelope for ``GET /companies/{id}/ledger-accounts``.
  - `ledger_accounts` LedgerAccountOut[], required
    - `id` string, required
    - `company_id` string, required
    - `fiscal_year` integer, required
    - `account_number` string, required
    - `account_name` string, nullable
    - `category` 'asset' | 'liability' | 'equity' | 'income' | 'expense' | 'tax' | 'other' | 'unknown', required: The account-type axis of a ledger account (Swiss-KMU chart of accounts). Distinct from — but derived from — ``LineRole`` (the journal-line semantic role). ``unknown`` is the conservative default when classification can't decide; ``other`` covers genuinely ambiguous / closing (9xxx) accounts.
    - `is_profit_loss` boolean, required
    - `is_contra` boolean
    - `is_intentional` boolean
    - `account_number_guess` string, nullable
    - `first_seen_date` string, date, nullable
    - `last_seen_date` string, date, nullable
    - `journal_usage_count` integer, required
    - `sources` string[]
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
  - `total` integer, required
  - `available_fiscal_years` integer[]

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zeno-works/apis/zeno-api.md) · [All operations](https://skmtc.dev/zeno-works/apis/zeno-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zeno-works/apis/zeno-api/revisions/1eb93dde146c?raw)
