# InvoiceAgingReportDto

A model the API reference uses in a request or a response. The operation pages link every field typed as this model here.

The result of an accounts-receivable aging report: outstanding balances bucketed
by days past due, grouped by biller or recipient, with per-currency grand totals.

## Fields
- `asOfDate` (string(date-time)): The date balances were aged against.
- `groupBy` ([InvoiceAgingGroupBy](https://devportal.demo.winkpg.io/docs/api/models/InvoiceAgingGroupBy.md)): The dimension the report grouped by.
  Values:
  - `Recipient`: Group outstanding balances by the recipient being billed (the customer).
  - `Biller`: Group outstanding balances by the biller issuing the invoices.
- `groups` (array<[InvoiceAgingGroupDto](https://devportal.demo.winkpg.io/docs/api/models/InvoiceAgingGroupDto.md)>): One row per (group, currency), ordered by group name then currency. (nullable)
  Fields of each item:
  - `current` (number(double)): Outstanding balance not yet due.
  - `days1To30` (number(double)): Outstanding balance 1 to 30 days past due.
  - `days31To60` (number(double)): Outstanding balance 31 to 60 days past due.
  - `days61To90` (number(double)): Outstanding balance 61 to 90 days past due.
  - `days90Plus` (number(double)): Outstanding balance more than 90 days past due.
  - `total` (number(double)): Sum of all buckets: the total outstanding balance.
  - `groupId` (string(uuid)): The grouped entity's id (recipient id or biller id depending on the report's group-by).
  - `groupName` (string): Display name from the invoice party snapshot, or empty when unavailable. (nullable)
  - `currency` (string): ISO 4217 currency code these totals are expressed in. (nullable)
  - `invoiceCount` (integer(int32)): Number of outstanding invoices in this group.
  - `lines` (array<[InvoiceAgingLineDto](https://devportal.demo.winkpg.io/docs/api/models/InvoiceAgingLineDto.md)>): The individual outstanding invoices making up this group. Populated only when  `includeLineDetail` is requested. (nullable)
- `currencyTotals` (array<[InvoiceAgingCurrencyTotalsDto](https://devportal.demo.winkpg.io/docs/api/models/InvoiceAgingCurrencyTotalsDto.md)>): Grand totals, one entry per currency present in `groups`. (nullable)
  Fields of each item:
  - `current` (number(double)): Outstanding balance not yet due.
  - `days1To30` (number(double)): Outstanding balance 1 to 30 days past due.
  - `days31To60` (number(double)): Outstanding balance 31 to 60 days past due.
  - `days61To90` (number(double)): Outstanding balance 61 to 90 days past due.
  - `days90Plus` (number(double)): Outstanding balance more than 90 days past due.
  - `total` (number(double)): Sum of all buckets: the total outstanding balance.
  - `currency` (string): ISO 4217 currency code these totals are expressed in. (nullable)
  - `invoiceCount` (integer(int32)): Number of outstanding invoices contributing to these totals.

## See also

- [All documentation](https://devportal.demo.winkpg.io/llms.txt): the machine-readable index of every public page on this site.
