Match payments to invoices
settleMatch payments in the books to the invoices or bills they pay. what=propose: look for the matches the books give evidence for (payments that name their invoice, a bank line booked in parts, a bank line that pays open invoices or bills) and propose them as one batch. what=allocate: propose stated allocations, allocations: [{charge_line_id, payment_line_id, amount}] with a reason (ids of open charges and payments). It moves no money and pays nothing: it records which payment that already happened belongs to which invoice, and every match waits for a release as the owner decided. what=write_off: propose the write off of small differences (the group small of the cleanup): charge_line_ids, the account the owner named for small differences, a reason, and limit when the owner named another than 5.00 (at most 50.00). The account and the limit are the owner's choice. It is a journal per charge that waits for a release. With what=propose, limit is the most matches this run proposes (a whole number); left_for_next_run says how many stay.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "settle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | receivables | |
| what | No | propose | |
| limit | No | ||
| reason | No | ||
| account | No | ||
| company | No | ||
| allocations | No | ||
| charge_line_ids | No | ||
| idempotency_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||