Get a list of purchase invoices
list_purchase_invoicesRetrieve purchase invoices with line items. Filter by status, edit date, or relation, and sort or paginate results.
Instructions
Get a list of purchase invoices.
Get a paginated list of all purchase invoices with their line items.
[Purchase Invoices] GET /invoices/purchase
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_purchase_invoices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (default = 1). | |
| sort | No | Sort order. Format: field.direction (e.g. date.desc). Available fields: created, name, number, date, expiry_date, amount, invoiceAmountPaid, invoiceAmountOpen. | |
| filter | No | Filter purchase invoices by status. | |
| records | No | Number of records per page. | |
| last_edit | No | Only return invoices edited after this date (format: YYYY-mm-dd). | |
| relation_id | No | Only return invoices for the relation with this ID. | |
| administration | No | The client administration to act on. Only one is configured: default. |