For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Search docs
/
Ask AI
Dev Portal
Docs
API Reference
Learn
Community
Changelog
Developer
Developer
Developer
Developer
GraphQL
B2B
Queries
invoiceStats
Copy page
Get the stats of an invoice. Requires IP authentication.
Arguments
status
Integer
Required
The invoice status.
(0-open, 1-partial paid, 2-completed).
This field is required.
companyIds
list of optional Integers
Optional
Filter by one or more company IDs.
decimalPlaces
Integer
Optional
The decimal places, not required
Returns
an optional InvoiceStatsType
totalBalance
Double
The total balance of invoice.
overDueBalance
Double
Amount not paid when the invoice is due.
hasDueInvoice
Boolean
Has due invoice?
hasOverDueInvoice
Boolean
Has over due invoice?