v1

latestOpenAPI 3.0.12026-07-144840447.2 KB
Ledger Entry Lines

List ledger entry lines

List ledger entry lines

ℹ️ 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

Path parameters

company_idinteger required

Existing company identifier (id)

Query parameters

cursorstring
Example:dXBkYXRlZF9hdDoxNjc0MTIzNDU2

Cursor for pagination. Use this to fetch the next set of results. The cursor is an opaque string returned in the previous response's metadata. Leave empty for the first request.

limitinteger
Example:20

Number of items to return per request. Defaults to 20 if not specified. Must be between 1 and 100.

filterstring
Example:[{"field": "date", "operator": "gteq", "value": "2024-01-01"}]

You can choose to filter items on specific fields. Available fields : id, journal_id, ledger_account_id, ledger_entry_id, date Available operators : lt, lteq, gt, gteq, eq, not_eq, in, not_in

sortstring
Example:id

You can choose to sort items on specific attributes Sort field may be prefixed with - for descending order. Example : id will sort by ascending order, -id will sort by descending order. Available fields : id, date

Response

Returns ledger entry lines

has_moreboolean required

Indicates whether additional results are available beyond this set. Use this flag to determine if another request is needed.

next_cursorstring 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.

Example response

{
  "has_more": true,
  "next_cursor": "dXBkYXRlZF9hdDoxNjc0MTIzNDU2",
  "items": [
    {
      "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"
    }
  ]
}