This node contains information related to aggregation. This can specify if the invoice is part of an aggregation parent invoice or if it is a parent itself. Contained in Invoice Document Record
|
|
True if the invoice was aggregated into a parent invoice. |
bool |
|
|
True if the invoice is an aggregation parent. This means that it aggregates child invoices. An invoice cannot be both isClient and isParent. Note: The invoice document includes references to all child invoices for parents. |
bool |
|
|
If the invoice is a child then this is the ID of the parent invoice. |
int? |
|
|
The period start of aggregation (year-month-day). Populated with child and parent invoices only. |
date |
|
|
The period end of aggregation (year-month-day). Populated with child and parent invoices only. |
date |
EXAMPLES
Example payload:
{
"isChild": false,
"isParent": false,
"parentInvoiceId": null,
"periodFrom": null,
"periodTo": null
}
An aggregation parent:
{
"isChild": false,
"isParent": true,
"parentInvoiceId": null,
"periodFrom": "2020-12-04",
"periodTo": "2020-12-04"
}
An aggregation child:
{
"isChild": true,
"isParent": false,
"parentInvoiceId": 1835,
"periodFrom": "2020-12-04",
"periodTo": "2020-12-04"
}