get_daily_ledger
Retrieve daily ledger entries (journal lines) between two Unix timestamps. Optionally group by entry to see full double-entry transactions with totals. Ideal for balance-sheet and tax-return data.
Instructions
Get the daily ledger (journal / asientos) between two Unix timestamps (Accounting API). 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. Range must not exceed 1 year. Set groupByEntry to nest lines into full double-entry entries with per-entry debit/credit totals. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endtmp | Yes | Range end as a Unix timestamp in seconds (inclusive) | |
| starttmp | Yes | Range start as a Unix timestamp in seconds (inclusive) | |
| groupByEntry | No | Group lines by entryNumber into full journal entries (each with totalDebit/totalCredit). Default: false (flat lines) |