SII invoices
sii_invoicesRetrieve issued and received invoices by SII state—pending, accepted, accepted_with_errors, modified_not_sent, or cancelled—with AEAT CSV and last error; filter by company, partner, and date.
Instructions
Issued and received invoices with their SII (Suministro Inmediato de Información) state: pending, accepted, accepted_with_errors, modified_not_sent (OCA: changed after sending) or cancelled, with the AEAT CSV and the last error.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sii_invoices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| state | No | ||
| company | No | Company id or part of its name. All companies the user can see by default. | |
| date_to | No | Last day (YYYY-MM-DD). Defaults to the end of the current quarter. | |
| partner | No | Customer or vendor name or VAT number (partial match). | |
| date_from | No | First day (YYYY-MM-DD). Defaults to the start of the current quarter. | |
| direction | No | issued = customer invoices, received = vendor bills. Both by default. |