merit_create_sales_invoice_payment
Record a payment against a sales invoice using customer name and invoice number. Specify amount, payment date, and bank ID or IBAN; partial payments are allowed.
Instructions
Record a payment against a sales invoice (POST /api/v2/sendpayment). Identify the invoice with customerName + invoiceNo. Provide bankId or IBAN (IBAN must match a payment method). paymentDate is ISO YYYY-MM-DD. Partial payments are allowed.
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": {
"customerName": "<customerName>",
"invoiceNo": "<invoiceNo>",
"paymentDate": "<paymentDate>",
"amount": "<amount>"
},
"name": "merit_create_sales_invoice_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iban | No | IBAN of a known payment method | |
| refNo | No | ||
| amount | Yes | Payment amount (required) | |
| bankId | No | Bank / payment-method GUID | |
| invoiceNo | Yes | Sales invoice number (required) | |
| paymentDate | Yes | Payment date YYYY-MM-DD (required) | |
| currencyCode | No | Required if not local currency | |
| customerName | Yes | Customer name (required) |