Lexware Office icon

Lexware Office

Interact with the Lexware Office API

Actions40

Voucher → Update

AI-generated

Summary

Update an existing voucher in Lexware Office by specifying its UUID and providing the full voucher data as a JSON object.

Inputs

  • Voucher ID (required) — The UUID of the voucher to update.
  • Voucher Data (JSON) (required) — The complete voucher data as a JSON string. The 'type' field must be one of salesinvoice, salescreditnote, purchaseinvoice, or purchasecreditnote. Include the 'version' field for updates.

Output shape

a single updated voucher record as JSON

Requires specifying the voucher UUID and providing the full voucher data JSON including version for update. The response returns the updated voucher object.

Examples

Example 1: Updating a voucher with new status and line items

Set resource to 'Voucher', operation to 'Update', specify the voucher ID, and provide the updated voucher JSON including fields like voucherStatus, voucherNumber, voucherItems, and version.

Links

Discussion