NewCompany stats count voided invoices by how they were voided
BeeL
Get startedMulti-NIFVeriFactuRulesStripeAPI referenceChangelog

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.


ChangelogImproved

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/statsNew rule for invoice_count and last_invoice_at

Where to go next