Company stats count voided invoices by how they were voided
invoice_count and last_invoice_at now leave out invoices voided as issued by mistake, and keep an invoice voided by a total corrective.
The documents counted by invoice_count in the company stats change for voided invoices. Drafts, scheduled invoices and proformas still never count, and a corrective still counts as a document of its own.
What else changed
- Do not count: an invoice voided with the void endpoint (issued by mistake), a simplified invoice replaced by a standard one, and any corrective of an invoice voided that way.
- Count: an invoice voided by a total corrective keeps counting, together with that corrective, so the pair counts as two.
- Still not a cursor. Voiding an invoice lowers the count and rectifying one for its full amount raises it by one.
last_invoice_atfollows the same set and can move backwards.
Endpoints
- GET/v1/accounts/{account_id}/companies/statsNew rule for
invoice_countandlast_invoice_at
Where to go next
Resources under the NIF
An account can now hold several NIFs, each named in the path. The old flat routes are deprecated with a Sunset date and a successor — here's what moved where, when the old routes retire, and how to tell whether it affects you.
Exports add a Suplidos sheet for disbursements
When an exported invoice has `SUPLIDO` lines, the Excel export adds a `Suplidos` sheet with one row per source invoice.