---
title: "Retrieve a Ledger entry"
method: GET
path: "/api/external/v2/ledger_entries/{id}"
tags: ["Ledger Entries"]
---

# Retrieve a Ledger entry

`GET /api/external/v2/ledger_entries/{id}`

## Request

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

Retrieve a ledger entry


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

## Path parameters

- `id` integer, required

## Headers

- `X-Company-Id` string

## Response `200`

Ledger entry details

- object
  - `id` integer, required: ID of the ledger entry
  - `label` string, required: Label that describes the ledger entry
  - `piece_number` string, nullable, required
  - `date` string, date, required: Date of the ledger entry (ISO 8601)
  - `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
  - `created_at` string, date-time, required: Created at
  - `updated_at` string, date-time, required: Last update
  - `journal` object, required
    - `id` integer, required
    - `url` string, required
  - `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 primary accounting file of this ledger entry. For invoices and most document types this is auto-generated by Pennylane. For miscellaneous entries (OD) it can be set via `file_attachment_id` on create/update, though that behavior will soon be deprecated. Files attached through the Pennylane UI are exposed separately via `GET /api/external/v2/ledger_entries/{id}/dms_files`.
    - `filename` string, required
    - `url` string, required: URL to the uploaded file.
  - `ledger_entry_lines` object[], required: Array of entry lines
    - `id` integer, required: ID of the entry line
    - `debit` string, required: Debit amount for the entry line
    - `credit` string, required: Credit amount for the entry line
    - `ledger_account` object, required
      - `id` integer, required: Ledger account ID
      - `number` string, required: Ledger account number
      - `url` string, required: The URL to the ledger account
    - `label` string, required: Label that describes the entry line

## 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** `871f863307e5`: 1 info
  - added the new optional `header` request parameter `X-Company-Id`

[Operation history](https://skmtc.dev/pennylane/apis/company-v2/changes/api/external/v2/ledger_entries/:id/get.md)

---

[API](https://skmtc.dev/pennylane/apis/company-v2.md) - [All operations](https://skmtc.dev/pennylane/apis/company-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/pennylane/apis/company-v2/revisions/871f863307e5?raw)
