beel_get_recurring_invoice_stats
Retrieve company-wide recurring invoice statistics: count of active schedules, total monthly forecast, and monthly amount halted by failed automatic generation.
Instructions
How many recurring schedules this company has alive, what they add up to per month, and how much invoicing is stopped because the unattended generation broke.
It is the whole company, and it takes no filters. It is an anchor, not a summary of whatever the list is showing: narrowing the list by customer or by status does not move these figures. Pagination does not apply either — the numbers cover every schedule of the company, not a page of them.
The two amounts are never added together. active.monthly_amount is a forecast of
what is going to be invoiced; stopped.monthly_amount is invoicing that should be
happening and is not. There is deliberately no grand total in the response.
The per-schedule figures behind them are the same ones
GET /v1/companies/{company_id}/recurring-invoices publishes as amount, so the rows
and this header cannot drift: adding the amount of every active row by hand gives
active.monthly_amount exactly, to the cent.
Filters of the list are rejected, not ignored: sending status, customer_id or any
other unknown parameter answers 400 naming it. Asking for a filtered header and getting
whole-company figures back with a 200 would be worse than being told no.
Endpoint: GET /v1/companies/{company_id}/recurring-invoices/stats
⚠️ Read before calling:
Fiscal rules, domains simplified, taxes: beel_rules_list with domain, or resource beel://guardrails/.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company_id | Yes | Unique identifier (UUID) of the company the operation acts on — its identifier, not its NIF. It is the only source of context: the account that owns it is derived from it, and the `BeeL-Active-Company` header plays no part. A company you do not reach answers `403`, and so does a company that does not exist, so the existence of a company in another account is never disclosed. |