edit_deposit
Modify an existing QuickBooks deposit—update date, memo, account, department, and lines. Lines merge with existing; include all line IDs to keep unchanged lines.
Instructions
Modify an existing deposit. Can update date, memo, deposit account, department, and/or lines. CRITICAL for line changes: The QB Deposit API does NOT replace lines - it merges them. Lines WITH line_id update existing lines. Lines WITHOUT line_id are ADDED as new. Lines NOT included are KEPT unchanged. To 'delete' a line, you must include ALL existing lines with their line_ids and set unwanted lines to amount: 0. Line amounts must sum to the original deposit total (use expected_total to override for corrupted deposits).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Deposit ID to edit | |
| txn_date | No | New transaction date in YYYY-MM-DD format (optional) | |
| memo | No | New private memo (optional) | |
| deposit_to_account | No | New deposit account name/number (Bank account) | |
| department_name | No | Header-level department/location name (auto-resolved to ID) | |
| lines | No | IMPORTANT: You MUST include ALL existing lines with their line_ids. Lines without line_id are ADDED (not replaced). Lines not included are KEPT (not deleted). To 'delete' a line, set its amount to 0. Line amounts must sum to original deposit total. | |
| draft | No | If true, validate and show preview without saving (default: true) | |
| expected_total | No | Override total validation with this expected amount (for fixing corrupted deposits). Lines must sum to this value instead of current deposit total. |