Update Voucher
lexware_update_voucherUpdate a bookkeeping voucher using its current version for optimistic locking; set an unchecked voucher's status to open during the update.
Instructions
Update a bookkeeping voucher with the current version for optimistic locking. If the existing voucher is unchecked, the update must transition voucherStatus to open.
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": {
"id": "<id>",
"body": "<body>"
},
"name": "lexware_update_voucher"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Voucher UUID | |
| body | Yes | Voucher JSON with the current version field required for optimistic locking. If the existing voucher is unchecked, the update must transition voucherStatus to open; this constraint does not apply to vouchers already in other statuses. |