apply_incoming_payment
Apply incoming payments to multiple invoices and reconcile accounts receivable by proportionally distributing amounts across open balances.
Instructions
Apply an incoming payment to one or more invoices and reconcile A/R. Amount is distributed proportionally across open invoice balances.
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": {
"cardCode": "<cardCode>",
"amount": "<amount>",
"invoiceDocEntries": "<invoiceDocEntries>"
},
"name": "apply_incoming_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| docDate | No | YYYY-MM-DD | |
| remarks | No | ||
| cardCode | Yes | ||
| cashAccount | No | ||
| transferAccount | No | ||
| invoiceDocEntries | Yes | ||
| transferReference | No |