get_payments
Retrieve a voucher's payment status, outstanding amount, currency, and recorded payments to determine whether it is paid or still open.
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.
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. |