# 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.

Oct 16, 2026 · Improved

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_at` follows the same set and can move backwards.

## Endpoints

- `GET /v1/accounts/{account_id}/companies/stats` — New rule for `invoice_count` and `last_invoice_at`

## Where to go next

- [Get invoice stats per company](/companies/listCompanyStats)

---

Full OpenAPI spec: https://docs.beel.es/api/openapi