list_invoices
List the invoices this company issued, newest first.
One document type at a time: pass nfse for services or nfe for goods. A company that issues both has to be asked twice.
Use it for "my last invoices", "what was rejected today", and to find a document whose access key the user does not have at hand. Read-only.
An authorized document is stored as issued, which is the value the rows carry; authorized is accepted as a synonym and asks for the same thing.
Every row carries both identifiers the other tools need: id, which reissue_invoice takes, and access_key, which consult_invoice, cancel_invoice and get_invoice_pdf take. A rejected row has an id and no access key — the authorizer never assigned one.
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": "list_invoices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Rows per page, 1 to 100. | |
| offset | No | Rows to skip, for the next page: offset + limit. | |
| status | No | Only rows in this state. authorized is a synonym for issued. All states when omitted. | |
| company_id | No | UUID of the company acted for. Omit for a single company; else see list_authorized_companies. Send one, never both. | |
| document_type | No | nfse for a service invoice, nfe for goods. | nfse |
| include_items | No | Keep each row's item lines and fiscal_operation. Off by default: they are most of the size, and a page of 100 NF-e with them is about 130 KB. consult_invoice brings one document's lines back. | |
| company_tax_id | No | CNPJ or CPF of the company acted for, never the recipient or a taxpayer looked up. Omit for a single company; else see list_authorized_companies. Send one, never both. | |
| external_reference | No | Only documents with this external_reference. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | The rows on this page. | |
| page | No | ||
| total | No | How many exist, not how many are here. | |
| per_page | No | ||
| next_page | No | ||
| prev_page | No | ||
| total_pages | No |