edit_vendor_credit
Modify an existing vendor credit by updating vendor, date, memo, reference number, and line items. Add, update, or delete lines with account and amount.
Instructions
Modify an existing vendor credit. Can update vendor, date, memo, ref number, and/or lines. For lines: provide line_id to update existing line, omit line_id to add new line (requires amount and account_name), set delete=true to remove. Note: DepartmentRef is header-level only — lines do not support department.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Vendor Credit ID to edit | |
| vendor_name | No | New vendor display name (auto-resolved to ID) | |
| txn_date | No | New transaction date in YYYY-MM-DD format (optional) | |
| memo | No | New private memo (optional) | |
| doc_number | No | New reference number (optional) | |
| lines | No | Line modifications. Provide line_id to update existing line, omit to add new line. | |
| draft | No | If true, validate and show preview without saving (default: true) |