update_transaction
Update existing GnuCash transactions by GUID, modifying description, date, splits, or notes; supports batch updates with the same values across multiple transactions.
Instructions
Update an existing transaction — or broadcast to several.
Pass a LIST of GUIDs to apply the SAME supplied values to
every listed transaction in one book open / one save
(all-or-nothing) — the batch-annotation case: one note
across 35 related entries, one call. splits stays
single-transaction. For per-row DIFFERENT values, use
update_transactions.
Args:
guid: Transaction GUID (32-character hex string, or 8+ char prefix), or a list of them
description: New transaction description (optional)
transaction_date: New date in ISO format YYYY-MM-DD (optional)
splits: List of split updates with 'account' and 'amount' (optional).
Must match existing splits by account name and balance to zero.
For cross-currency splits, include 'quantity' (amount in account's commodity).
Include 'memo' to set that split's memo (omit to leave it unchanged).
amount/quantity are decimal strings (e.g. "94.87").
notes: New transaction notes (optional). Pass empty string to clear.
force: Allow modifying transactions with reconciled splits —
required for split changes AND for moving the date of a
transaction with reconciled splits (a date move shifts
it out of its reconciled statement period).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guid | Yes | ||
| force | No | ||
| notes | No | ||
| splits | No | ||
| description | No | ||
| transaction_date | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |