beel_list_stats
Retrieve per-company issued fiscal document counts and last invoice dates, accounting for rectifying and compensated voided invoices. Monitor invoice activity.
Instructions
Returns, for each company (NIF) of the account, how many fiscal documents it has issued and when it last issued one. Drafts, scheduled invoices and proformas are not counted; a rectifying invoice counts as a document of its own, and a voided invoice counts only when a live rectifying invoice compensates it.
The count is therefore not monotonic — voiding an uncompensated invoice lowers it and
moves last_invoice_at backwards — so it is not usable as a synchronisation cursor.
Endpoint: GET /v1/accounts/{account_id}/companies/stats
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | Your own account, or an account you provisioned. It — not the credential — decides which account the operation acts on; a `403` is returned when you do not reach it, the same response an account that does not exist gets. |