Ledger Entry Lines

Retrieve a Ledger entry line

Changed on

Retrieve a ledger entry line

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

get/api/external/v2/ledger_entry_lines/{id}

Request

  • Base URL
    https://app.pennylane.com
  • URL
    https://app.pennylane.com/api/external/v2/ledger_entry_lines/{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

Path parameters

idinteger required

The unique identifier of the ledger entry line

Headers

X-Company-Idstring
Example:12345

Numeric ID of the company to act on. Required when authenticating with a firm token. Ignored when the token is already bound to a company.

Response

A ledger entry line

idinteger required

ID of the entry line

debitstring required

Debit amount for the entry line

creditstring required

Credit amount for the entry line

labelstring required

Label that describes the entry line

datestring date required

Date of the ledger entry line (ISO 8601)

created_atstring date-time required

The time the entry line has been created

updated_atstring date-time required

The last time the entry line has been updated

Example response

{
  "id": 42,
  "debit": "100.00",
  "credit": "0.00",
  "label": "Employees - Jean Dupont / Salary May 2023",
  "categories": [
    {
      "id": 421,
      "label": "HR - Salaries",
      "weight": "0.25",
      "category_group": {
        "id": 229
      },
      "analytical_code": "CODE123",
      "created_at": "2023-08-30T10:08:08.146343Z",
      "updated_at": "2023-08-30T10:08:08.146343Z"
    }
  ],
  "ledger_account": {
    "id": 987,
    "number": "411000",
    "url": "https://app.pennylane.com/api/external/v2/ledger_accounts/42"
  },
  "journal": {
    "id": 123,
    "url": "https://app.pennylane.com/api/external/v2/journals/42"
  },
  "date": "2023-08-30",
  "ledger_entry": {
    "id": 123001
  },
  "lettered_ledger_entry_lines": {
    "ids": [
      42,
      1271004
    ],
    "url": "https://app.pennylane.com/api/external/v2/ledger_entry_lines/42/lettered_ledger_entry_lines"
  },
  "created_at": "2023-08-30T10:08:08.146343Z",
  "updated_at": "2023-08-30T10:08:08.146343Z"
}

Changes