ynab_update_transaction
Update an existing YNAB transaction by modifying its amount, date, payee, category, memo, or status. Preview changes with dry_run, then confirm to apply.
Instructions
Update fields on an existing YNAB transaction.
Args:
budget_id (string, optional): Budget UUID. Omit to use the default budget.
transaction_id (string, required): Transaction UUID to update.
amount_decimal (number, preferred): New amount in decimal currency units.
amount_milliunits (int, alternative): Explicit raw YNAB milliunits.
amount (int, deprecated): Backward-compatible alias for amount_milliunits.
date (string, optional): New date YYYY-MM-DD.
payee_name / payee_id (string, optional): New payee.
category_id (string, optional): New category UUID.
memo (string, optional): New memo.
cleared (string, optional): "cleared", "uncleared", or "reconciled".
approved (boolean, optional): Approval status.
dry_run (boolean, optional): Preview without saving.
Returns: updated transaction with updated_balance.
Write safety: call without confirmation_token to preview. Execute the identical validated request with the short-lived confirmation_token returned by that preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| memo | No | ||
| amount | No | Deprecated legacy alias for amount_milliunits. Use amount_decimal for currency input or amount_milliunits for raw YNAB values. | |
| cleared | No | ||
| dry_run | No | ||
| approved | No | ||
| payee_id | No | ||
| budget_id | No | ||
| account_id | No | ||
| flag_color | No | ||
| payee_name | No | ||
| category_id | No | ||
| amount_decimal | No | Preferred: amount in decimal currency units (for example, -12.34). Rounded exactly to the nearest YNAB milliunit. | |
| transaction_id | Yes | ||
| amount_milliunits | No | Raw YNAB milliunits. Use only when the value is already converted. | |
| confirmation_token | No | Short-lived, single-use token returned by the immediately preceding preview of this exact validated request. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||