list_gl_journal_entries
List journal entries.
period_ids narrows to specific fiscal periods, and is how a caller asks for
one fiscal year — the year's period ids (ZET-285). Without it this route
listed, and counted, every fiscal year the company has: the Journal page cut the
year out of the fetched page client-side while total stayed company-wide,
so a year whose entries sat past the first page rendered as "no entries match"
with no way to reach them. The service applies the filter before the count, so
total is the filtered total and the pager is the year's.
untagged_subledger_control=true narrows to the entries that posted to an
AR/AP control account without touching the subledger, under
allow_untagged_control (ZET-150) — the postings a subledger-vs-control
divergence traces back to.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | ||
| sort | No | posting_date | |
| limit | No | ||
| order | No | desc | |
| offset | No | ||
| status | No | ||
| company_id | Yes | ||
| period_ids | No | ||
| untagged_subledger_control | No |