v1
latestOpenAPI 3.0.12026-07-141671231.8 MBList ledger entry lines of a Ledger Entry
List ledger entry lines of a Ledger Entry
ℹ️ This endpoint requires one of the following scopes: ledger_entries:readonly, ledger_entries:all
Path parameters
Existing Ledger Entry (id)
Query parameters
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.
Number of items to return per request. Defaults to 20 if not specified. Must be between 1 and 100.
You can choose to filter items on specific fields. Available fields : ledger_account_id Available operators : lt, lteq, gt, gteq, eq, not_eq, in, not_in
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
Response
Returns Ledger Entry lines of requested Ledger Entry
Example response
{
"items": [
{
"id": 42,
"debit": "100.00",
"credit": "0.00",
"label": "Employees - Jean Dupont / Salary May 2023",
"ledger_account_id": 987,
"ledger_account": {
"id": 987,
"number": "411000",
"url": "https://app.pennylane.com/api/external/v2/ledger_accounts/42"
}
}
],
"has_more": true,
"next_cursor": "MjAyNS0wMS0wOVQwODoyNDozOC44MTI0NTha"
}