List documents
list_documentsList documents (invoices, receipts, bills, offers/Angebote, orders & delivery notes) for the current tenant.
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 | Max rows (default 20, max 200) | |
| offset | No | Pagination offset (default 0) | |
| search | No | Free-text search over supplier/customer name, file name, invoice number, offer number and the document's header line | |
| date_to | No | Only rows with issue_date <= this (YYYY-MM-DD) | |
| date_from | No | Only rows with issue_date >= this (YYYY-MM-DD) | |
| direction | No | expense | income — the booking direction as sevDesk reported it (raw.creditDebit: C=expense, D=income). total_amount is UNSIGNED on vouchers, so a sum over it is blind to refunds; use signed_amount instead. Empty on sevDesk orders, because an order is not a booking. NOT the same as invoice_direction: that one steers which side a PUSH writes, this one records what the booking actually is. | |
| contact_id | No | Filter by contact_id | |
| cost_centre | No | Kostenstelle / cost bearer, e.g. "1583" for Innov-AI-tive. LOCAL ONLY — the sevDesk v1 API has no such field on Voucher, Invoice, CreditNote or Order (checked against 657 real API responses), so this never reaches sevDesk. cost_centre_source says whether it was set by hand, prescribed by the accountant, or derived from a rule. | |
| legal_entity | No | toasternet | innov-ai-tive — which legal entity this document belongs to. ToasterNET and Innov-AI-tive are two separate legal entities sharing one bookkeeping until the split is done. Determined at the INVOICE RECIPIENT, never at the paying account. Empty means unresolved, which is the correct value while it is unresolved — ask, do not guess. | |
| document_type | No | invoice | receipt | contract | offer | order | other. 'offer' is a sevDesk Angebot (orderType AN); 'order' is an Auftragsbestätigung or Lieferschein (AB/LI) — order_type on the row says which. | |
| account_source | No | sevdesk_accounting_type | vendor_history | rule | manual — where skr_account_number came from. account_source_detail says which accountingType, which rule, or which supplier. | |
| document_source | No | mail | portal | manual | sevdesk — where the document itself came from. | |
| has_skr_account | No | true = only documents booked to a chart account, false = only those still missing one. Combine with the `total` in the result to count them without paging. | |
| processing_status | No | Filter by processing_status | |
| account_confidence | No | VERIFIZIERT | ABGELEITET | UNSICHER — the tax office's 'Sicherheit' column, computed from account_source. VERIFIZIERT = taken from the actual sevDesk booking or set by a person; ABGELEITET = inferred from a rule or from the supplier's history; UNSICHER = no account. |