apply_payment
Posts a payment to an existing invoice by specifying invoice ID, amount, date, method, and notes. Updates the invoice balance accordingly.
Instructions
Apply a payment to an existing invoice
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": {
"invoiceId": "<invoiceId>",
"amount": "<amount>"
},
"name": "apply_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Notes about the payment | |
| amount | Yes | Payment amount | |
| invoiceId | Yes | ID of the invoice to apply payment to | |
| paymentDate | No | Date of payment (YYYY-MM-DD format) | |
| paymentMethod | No | Payment method (e.g., 'check', 'cash', 'bank transfer') |