v1

latestOpenAPI 3.0.12026-07-144840447.2 KB
Ledger Entry Lines

Retrieve a Ledger entry line

Retrieve a ledger entry line

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

get/api/external/firm/v1/companies/{company_id}/ledger_entry_lines/{id}

Path parameters

company_idinteger required

Existing company identifier (id)

idinteger required

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/firm/v1/companies/45/ledger_accounts/987"
  },
  "journal": {
    "id": 123,
    "url": "https://app.pennylane.com/api/external/firm/v1/companies/45/journals/123"
  },
  "date": "2023-08-30",
  "ledger_entry": {
    "id": 123,
    "url": "https://app.pennylane.com/api/external/firm/v1/companies/45/ledger_entries/567"
  },
  "lettered_ledger_entry_lines": {
    "ids": [
      42,
      1271004
    ],
    "url": "http://www.pennylane.com/api/external/firm/v1/companies/2034940/ledger_entry_lines/45849/lettered_ledger_entry_lines"
  },
  "imputation_dates": [
    {
      "start_date": "2023-01-01",
      "end_date": "2023-01-31"
    }
  ],
  "created_at": "2023-08-30T10:08:08.146343Z",
  "updated_at": "2023-08-30T10:08:08.146343Z"
}