apply_payment
Apply a payment to an existing invoice by specifying invoice number, amount, and date. Optionally include payment method, reference, or memo.
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": {
"invoiceNumber": "<invoiceNumber>",
"amount": "<amount>",
"date": "<date>"
},
"name": "apply_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Date of payment (YYYY-MM-DD format) | |
| memo | No | Notes about the payment | |
| amount | Yes | Payment amount | |
| clientName | No | Client name (required only if duplicate invoice numbers exist) | |
| paymentType | No | Payment method type | |
| invoiceNumber | Yes | Invoice number to apply payment to (e.g., E-2023-79) | |
| referenceNumber | No | Informational reference number for payment history |