List received documents (expenses)
list_received_documentsRetrieve received documents from FattureInCloud, including expenses, credit notes, delivery notes, and self invoices, with filtering and pagination.
Instructions
List received documents for a company: expenses (spese), passive credit notes, passive delivery notes, self invoices. Defaults to expenses. Paginated: check current_page/last_page/total.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Filter query, e.g. "date >= '2026-01-01' and date <= '2026-06-30'" or "entity.name like '%acme%'". Write the operators literally (>, <, >=, <=): the string is sent verbatim, so HTML entities like > or < reach the API and are rejected with 422 "Invalid query syntax". | |
| page | No | Page number to retrieve (1-based). | |
| sort | No | Comma-separated sort fields, prefix with "-" for descending. E.g. "-date" or "-date,number". | |
| type | No | The received document type. | expense |
| fieldset | No | "basic" for compact rows (default), "detailed" for full documents including line items. | basic |
| per_page | No | Results per page (min 5, max 100 — the API rejects smaller values). | |
| company_id | No | Fatture in Cloud company ID. Omit to use the default company configured for the session; discover IDs with list_companies. |