merit_get_purchase_invoice
Retrieve a specific purchase invoice from Merit Aktiva by its GUID, including all rows and payment details. Optionally omit the attachment to return a smaller response.
Instructions
Get one Merit Aktiva purchase invoice with rows and payments (POST /api/v2/getpurchorder). id is the purchase invoice GUID (PIHId). Set skipAttachment to omit the PDF (smaller response).
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": {
"id": "<id>"
},
"name": "merit_get_purchase_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Purchase invoice GUID / PIHId (required) | |
| skipAttachment | No | Omit attachment file content |