Invoice Aggregation Record

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 https://wordbee.atlassian.net/wiki/spaces/API2/pages/2487255083

isChild

True if the invoice was aggregated into a parent invoice.

bool

isParent

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

parentInvoiceId

If the invoice is a child then this is the ID of the parent invoice.

int?

periodFrom

The period start of aggregation (year-month-day). Populated with child and parent invoices only.

date

periodTo

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" }

 

 

 

Copyright Wordbee - Buzzin' Outside the Box since 2008