delete_voucher
Delete an unposted employee expense voucher and its associated entries. For posted vouchers, unpost first, then delete.
Instructions
Delete an unposted employee expense voucher.
Automatically removes associated entries. Posted vouchers
cannot be deleted — unpost first via unpost_invoice,
then delete.
Args:
id: Voucher ID (e.g., "000001"). Preferred parameter
name — matches get_invoice / post_invoice / etc.
voucher_id: Legacy alias for id. Accepted for
back-compat; pass exactly one of id or
voucher_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| voucher_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |