edit_bill
Modify an existing bill by updating vendor, date, due date, memo, department, or lines. Add, change, or remove line items with account, amount, and description.
Instructions
Modify an existing bill. Can update vendor, date, due date, memo, and/or lines. For lines: provide line_id to update existing line, omit to add new line, set delete=true to remove. Note: DepartmentRef is header-level only — lines do not support department.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Bill ID to edit | |
| vendor_name | No | New vendor display name (e.g., 'Simplisafe', 'PG&E'). Auto-resolved to ID. | |
| txn_date | No | New transaction date in YYYY-MM-DD format (optional) | |
| due_date | No | New due date in YYYY-MM-DD format (optional) | |
| memo | No | New private memo (optional) | |
| department_name | No | Header-level department/location name (auto-resolved to ID) | |
| doc_number | No | Reference number for the bill (optional) | |
| lines | No | Line modifications. Provide line_id to update existing, omit to add new. | |
| draft | No | If true, validate and show preview without saving (default: true) |