Merit List Purchase Invoices
merit_list_purchase_invoicesRetrieve purchase invoices for a date range, including vendor, amounts, and payment status. Filter to unpaid invoices to see what the company still owes vendors.
Instructions
Purchase invoices (ostuarved) in a period: bill number, dates, vendor, amounts, paid or not. Use unpaid_only for what the company still owes vendors. TotalAmount is without VAT, TotalSum with VAT. Invoices waiting for approval are not in the books yet: approve, correct or delete them in Merit (merit_get_purchase_invoice cannot open them).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"period_start": "<period_start>",
"period_end": "<period_end>"
},
"name": "merit_list_purchase_invoices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows to return (totals still cover all) | |
| status | No | booked: invoices in the books; waiting_approval: entered but not yet approved in Merit | booked |
| vendor | No | Only vendors whose name contains this | |
| date_type | No | Filter on document date, or on when it was last changed (for waiting_approval: when it was entered) | document |
| period_end | Yes | Last day, YYYY-MM-DD (periods over 3 months are fetched in pieces; max 36 months) | |
| unpaid_only | No | Only unpaid ones (booked invoices only) | |
| period_start | Yes | First day, YYYY-MM-DD |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||