invoiceStats

Get the stats of an invoice. Requires IP authentication.

Arguments

statusIntegerRequired

The invoice status.
(0-open, 1-partial paid, 2-completed).
This field is required.

companyIdslist of optional IntegersOptional
Filter by one or more company IDs.
decimalPlacesIntegerOptional
The decimal places, not required

Returns

an optional Object
totalBalanceDouble
The total balance of invoice.
overDueBalanceDouble
Amount not paid when the invoice is due.
hasDueInvoiceBoolean
Has due invoice?
hasOverDueInvoiceBoolean
Has over due invoice?