get-aged-payables
Get the aged payables report for a company: what it owes suppliers as of dateTo, from approved purchase documents still unpaid on that date. Returns report grouped by supplier, one line per document (date, due date, reference), with each open amount under Current (not yet due) or < 1 Month, 1 Month, 2 Months, 3 Months or Older (30-day steps past due), plus supplier and overall totals in the company's base currency. Use get-aged-receivables for what customers owe, or get-invoice-pending-summary with movement out for payables totals only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Company ID, as returned by list-companies | |
| dateTo | No | As-of date for the aging (YYYY-MM-DD). Defaults to today. | |
| dateFrom | No | Not used: the aging report runs as of dateTo. |