beel_get_fiscal_summary
Returns VAT and IRPF totals for a company's issued invoices in a requested period, plus annual IRPF projection and bracket breakdown, with an optional invoice list.
Instructions
Returns the VAT and IRPF summary of the invoices issued under this company over the requested period, together with the annual IRPF projection and its progressive bracket breakdown.
start_date and end_date go together: send both, or neither. Omitting both defaults to the current month; sending only one answers 400, because a period you did not ask for is worse than an error. The range may not exceed 366 days, and every fault names itself in details.reason.
The totals are always computed over every invoice in the period. The list of those invoices is not returned unless you ask for it with include=invoices: it grows with the period and is not paginated, so request it only when you need the per-invoice figures.
BeeL API endpoint: GET /v1/companies/{company_id}/fiscal-summary (reference: https://docs.beel.es)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"company_id": "<company_id>"
},
"name": "beel_get_fiscal_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include | No | Adds data that is left out by default. `invoices` adds the `invoices` list: one entry per invoice counted in the totals. Omit it and the response carries the totals only; an unsupported value answers `400`. | |
| end_date | No | Period end date (inclusive), as `YYYY-MM-DD`. Goes together with `start_date`: supply both or neither. Omitting both defaults to the current month; supplying only one is rejected with `400` (`PERIOD_INCOMPLETE`). | |
| 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. | |
| start_date | No | Period start date (inclusive), as `YYYY-MM-DD`. Goes together with `end_date`: supply both or neither. Omitting both defaults to the current month; supplying only one is rejected with `400` (`PERIOD_INCOMPLETE`). |