merit_create_purchase_invoice_payment
Record a payment for a purchase invoice, identifying the invoice by vendor name and bill number, with payment date and amount.
Instructions
Record a payment for a purchase invoice (POST /api/v2/sendPaymentV). Identify the bill with vendorName + billNo. paymentDate is ISO date or datetime and is sent as yyyyMMddHHmm (Merit's documented format for this endpoint).
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": {
"vendorName": "<vendorName>",
"billNo": "<billNo>",
"paymentDate": "<paymentDate>",
"amount": "<amount>"
},
"name": "merit_create_purchase_invoice_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iban | No | ||
| refNo | No | ||
| amount | Yes | Payment amount (required) | |
| bankId | No | ||
| billNo | Yes | Vendor bill number (required) | |
| vendorName | Yes | Vendor name (required) | |
| paymentDate | Yes | ISO YYYY-MM-DD or YYYY-MM-DDTHH:mm (required) | |
| currencyCode | No |