# InvoiceAgingGroupDto

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

Aging totals for one group (a single biller or recipient) in one currency.
A biller or recipient that has outstanding balances in more than one currency
produces one group row per currency.

## Fields
- `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)
  Fields of each item:
  - `invoiceId` (string(uuid)): The invoice's unique identifier.
  - `invoiceNumber` (string): The biller-unique invoice number, when assigned. (nullable)
  - `billerId` (string(uuid)): The biller that issued the invoice.
  - `billerName` (string): The biller's display name from the invoice party snapshot, when available. (nullable)
  - `recipientId` (string(uuid)): The recipient being billed.
  - `recipientName` (string): The recipient's display name from the invoice party snapshot, when available. (nullable)
  - `currency` (string): ISO 4217 currency code of the outstanding balance. (nullable)
  - `dueDate` (string(date-time)): The invoice's due date.
  - `daysPastDue` (integer(int32)): Days past due as of the report's as-of date. Zero or negative means not yet due.
  - `bucket` ([InvoiceAgingBucket](https://devportal.demo.winkpg.io/docs/api/models/InvoiceAgingBucket.md)): The aging bucket this invoice falls into.
    Values:
    - `Current`: Not yet due (zero or negative days past due).
    - `Days1To30`: 1 to 30 days past due.
    - `Days31To60`: 31 to 60 days past due.
    - `Days61To90`: 61 to 90 days past due.
    - `Days90Plus`: More than 90 days past due.
  - `balanceDue` (number(double)): The outstanding balance carried by this invoice.

## See also

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