create_purchase_invoice_for_approval
Send a purchase invoice to the approval queue without posting a GL entry; it stays pending until approved in Merit.
Instructions
Send a purchase invoice to the approval queue (Kinnitamata ostuarved); no GL entry until approved in Merit. Body: Vendor {Id or Name, VatAccountable, CountryCode, RegNo, VatRegNo}, DocDate, DueDate, BillNo (max 35), InvoiceRow[] {Item {Code, Description}, Quantity, Price, TaxId, optional GLAccountCode}, TotalAmount (excl. VAT), TaxAmount[] {TaxId, Amount}; optional RefNo, CurrencyCode, Hcomment, Attachment (PDF) as {FileName, FileContent (base64)} or by reference — {Url} (https download) or {GmailMessageId, optional GmailAttachmentId, optional FileName} (server fetches it from Gmail; without an id it picks the attachment named FileName, else the first PDF); ExpenseClaim (bool).
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": "create_purchase_invoice_for_approval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||