get_daily_ledger
Retrieve ledger entries for a date range to get journal lines with accounts, debit, and credit for balance-sheet and tax figures.
Instructions
Get ledger entries / journal (asientos) for a date range (Holded API v2, GET /ledger-entries). Returns one row per ledger line with entryNumber, line, timestamp, type (collect/payment/purchase/…), description, account (PGC num), debit, and credit. This is the authoritative source for balance-sheet and tax-return figures.
Date arguments (at least one form of each bound is required — the v2 API returns 422 without both):
• Primary form : start_date / end_date — ISO 8601 date strings (YYYY-MM-DD)
• Legacy form : starttmp / endtmp — Unix timestamps in seconds; converted automatically to ISO
If both forms are supplied for the same bound, the ISO string takes precedence.
Cursor-paginated: pass nextCursor from a previous response as cursor to retrieve subsequent pages. Large date ranges may require multiple pages. Set groupByEntry to nest lines into full double-entry entries with per-entry debit/credit totals (applied page-scoped).
See also: list_ledger_entries in ledger tools — both tools target the same v2 endpoint. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max items per cursor page (server-paginated; use limit to control page size) | |
| cursor | No | Cursor token from a previous response nextCursor | |
| endtmp | No | Range end as a Unix timestamp in seconds (legacy form, converted to ISO). Use end_date when possible. | |
| end_date | No | Range end as an ISO 8601 date (YYYY-MM-DD, inclusive). Required unless endtmp is provided. | |
| starttmp | No | Range start as a Unix timestamp in seconds (legacy form, converted to ISO). Use start_date when possible. | |
| start_date | No | Range start as an ISO 8601 date (YYYY-MM-DD, inclusive). Required unless starttmp is provided. | |
| groupByEntry | No | Group lines by entryNumber into full journal entries (each with totalDebit/totalCredit), applied to the current page. Default: false (flat lines) |