Update Transaction
ynab_update_transactionUpdates an existing YNAB transaction by changing only the fields you specify; also splits an ordinary transaction across multiple categories.
Instructions
Updates an existing transaction. All fields except transactionId are optional - only provide fields you want to change. Pass subtransactions to split an ordinary transaction across categories; YNAB cannot re-split a transaction that is already split.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | The date of the transaction in ISO format (e.g. 2024-03-24) | |
| memo | No | A memo/note for the transaction | |
| amount | No | The amount in dollars (e.g. -10.99 for outflow, 10.99 for inflow) | |
| planId | No | The plan ID (optional, defaults to YNAB_PLAN_ID; budgetId is a deprecated alias) | |
| cleared | No | The cleared status | |
| payeeId | No | The ID of the payee | |
| approved | No | Whether the transaction is approved | |
| budgetId | No | Deprecated alias of planId (still accepted) | |
| accountId | No | Move transaction to a different account | |
| flagColor | No | The transaction flag color, or an empty string to clear the flag | |
| payeeName | No | The name of the payee (creates new payee if doesn't exist) | |
| categoryId | No | The category ID for the transaction | |
| transactionId | Yes | The ID of the transaction to update | |
| subtransactions | No | Splits an ordinary transaction across categories, in the same shape ynab_get_transactions returns. Needs at least two entries summing to amount (or the current amount if amount is omitted); omit categoryId. Not allowed on a transaction that is already split. |