---
title: "List Ledger Entries"
method: GET
path: "/api/external/firm/v1/companies/{company_id}/ledger_entries"
tags: ["Ledger Entries"]
deprecated: true
---

# List Ledger Entries

`GET /api/external/firm/v1/companies/{company_id}/ledger_entries`

## Request

- Base URL: `https://app.pennylane.com`
- URL: `https://app.pennylane.com/api/external/firm/v1/companies/{company_id}/ledger_entries`
- Auth: OAuth 2
  - Authorization code: `https://app.pennylane.com/oauth/authorize`
  - Token URL: `https://app.pennylane.com/oauth/oauth/token` scopes: `ledger_entries:all`, `ledger_entries:readonly`

> **Deprecated.**

> ⚠️ This endpoint is deprecated. Use [List Ledger Entries](https://pennylane.readme.io/reference/getledgerentries) from the Company API v2 instead. Your firm token can call it for any company of your firm through the `X-Company-Id` header. [Learn how to use your firm token with the Company API v2](https://pennylane.readme.io/docs/firm-api#using-your-firm-token-with-the-company-api-v2).

Returns a list of ledger entries.
By default, entries from fiscal periods that are closed or frozen are excluded.
However, if a 'date' filter is provided, it will return all entries within the specified date range, even if they fall within a closed or frozen fiscal period.


> ℹ️
> This endpoint requires one of the following scopes: `ledger_entries:all`, `ledger_entries:readonly`

## Path parameters

- `company_id` integer, required

## Query parameters

- `cursor` string
- `limit` integer
- `filter` string
- `sort` string

## Response `200`

Returns a list of ledger entries.
By default, entries from fiscal periods that are closed or frozen are excluded.
However, if a 'date' filter is provided, it will return all entries within the specified date range, even if they fall within a closed or frozen fiscal period.

- object
  - `items` object[], required
    - `id` integer, required: ID of the ledger entry
    - `created_at` string, date-time, required: Created at
    - `updated_at` string, date-time, required: Last update
    - `label` string, nullable, required: Label that describes the ledger entry
    - `piece_number` string, nullable, required
    - `date` string, date, required: Date of the ledger entry (ISO 8601)
    - `journal` object, required
      - `id` integer, required
      - `url` string, required
    - `due_date` string, date, nullable, required: The date the invoice is due
    - `invoice_number` string, nullable, required: Invoice number of the document linked to the ledger entry
    - `status` 'accounting_needed' | 'archived' | 'complete' | 'draft' | 'entry' | 'validation_needed' | 'waiting_details', nullable, required: The accounting state of the entry. - `archived`: The entry has been archived. - `draft`: The customer invoice is still in draft and has not been finalized. - `entry`: The invoice is incomplete, some information is missing and needs to be completed. - `waiting_details`: The entry is awaiting additional accounting details. - `validation_needed`: The entry is sent to the accountant and needs validation. - `accounting_needed`: The entry needs to be processed by the accountant. - `complete`: The entry has been validated by the accountant. - `null` : The entry is neither a transaction nor an invoice that needs to be processed on Pennylane
    - `categories` object[], required
      - `id` integer, required
      - `label` string, required
      - `weight` string, required
      - `category_group` object, required
        - `id` integer, required
      - `analytical_code` string, nullable, required
      - `created_at` string, date-time, required
      - `updated_at` string, date-time, required
    - `attachment` object, nullable, required: The file attached to the ledger entry.
      - `filename` string, required
      - `url` string, required: URL to the uploaded file.
  - `has_more` boolean, required: Indicates whether additional results are available beyond this set. Use this flag to determine if another request is needed.
  - `next_cursor` string, nullable, required: Cursor to retrieve the next set of results. Include this value in the cursor parameter of your next request to fetch subsequent items. A `null` `next_cursor` in the response indicates no further results.

## Other responses

- `400`: Bad request
- `401`: Access token is missing or invalid
- `403`: Access to this resource forbidden
- `404`: The resource was not found

## Changes

- **2026-11-03** `256ecc544f85`: 1 info
  - endpoint deprecated

[Operation history](https://skmtc.dev/pennylane/apis/referentials/changes/api/external/firm/v1/companies/:company_id/ledger_entries/get.md)

---

[API](https://skmtc.dev/pennylane/apis/referentials.md) - [All operations](https://skmtc.dev/pennylane/apis/referentials/llms.txt) - [OpenAPI document](https://skmtc.dev/pennylane/apis/referentials/revisions/256ecc544f85?raw)
