List documents
list_documentsLists the documents (invoices and credit notes) that a company sent, newest first, with their status (queued, sending, delivered, failed). Filter by status. Concise by default; set response_format to detailed for parties and dates. Pages: pass next_cursor as cursor. company_id is optional when the key has one company. Use get_document for the events and the failure reason of one document.
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_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| cursor | No | next_cursor of the previous page. | |
| status | No | ||
| company_id | No | The company ID, for example com_9fJ2kQ7bTx0Lm4Ne1Ry8. | |
| response_format | No | concise (default) for the key fields; detailed for all fields. | concise |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| has_more | Yes | ||
| documents | Yes | ||
| company_id | Yes | ||
| next_cursor | Yes |