get_payments
Check whether a voucher is paid, what amount and currency remain outstanding, and which individual payments are recorded to determine settlement.
Instructions
Show whether a voucher has been paid, and what is still open.
Returns the payment status, the amount still outstanding, the currency and the individual payments recorded against it. Costs one API call.
Takes the id of the voucher, not of a payment. An openAmount of 0 is the answer to "is it settled" and is reported rather than omitted. For the document itself use get_voucher or get_sales_document.
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": {
"voucher_id": "<voucher_id>"
},
"name": "get_payments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| voucher_id | Yes | The voucher's Lexware id, as returned by search_vouchers. Not the voucher number a human reads off the document. |