---
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}`

Retrieve a ledger entry


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

## Path parameters

- `id` integer, required

## 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 file attached to the ledger entry.
    - `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

---

[API](https://skmtc.net/pennylane/apis/company-v2.md) · [All operations](https://skmtc.net/pennylane/apis/company-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pennylane/company-v2/versions/a5b7236473c6/schema)
