Payment Allocation to Invoices
payment_allocationApply one customer payment across that customer's open invoices (accounts receivable cash application). Send the payment amount and the open invoices (invoice number, due date, open amount). By default the payment goes to the invoice that fell due first, then the next. Or send the remittance (which invoices the customer said to pay, and how much each, or the application the creditor chose) and it is applied exactly so. Get back what goes to each invoice, what stays open on each, the open total before and after, any unapplied cash, and every remittance line that names an invoice not in the list or pays more than is open. Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO's key (check it at https://llpro.ai/payment-allocation). Labels are your own text: emails, web addresses and long digit runs are refused. Not legal, tax or financial advice.
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": {
"payment_amount": "<payment_amount>",
"invoices": "<invoices>"
},
"name": "payment_allocation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Optional label for the payment (your own text, echoed back; not a person; up to 6 digits in a row). | |
| method | No | oldest_first (default) or remittance (apply as the customer's remittance says). | oldest_first |
| invoices | Yes | The customer's open invoices (up to 200). | |
| remittance | No | With method remittance: the invoices the customer said the payment is for, and the amount for each. | |
| payment_amount | Yes | The payment received from the customer. |