Consolidate / Rename a Payee
ynab_consolidate_payeeRename a payee and consolidate all its transactions into a canonical name to clean up messy imports and merge duplicates. Preview before applying.
Instructions
Rename a payee and update all its transactions to use a canonical name.
Use this to clean up messy imported payee names:
"AMZN*1A2B3C4D" → "Amazon"
"WHOLEFDS MKT #123" → "Whole Foods"
Merge two duplicate payees into one
IMPORTANT — always call with preview_only=true first. This shows you exactly which transactions will be affected. Only set preview_only=false after reviewing and approving the preview.
How it works:
Finds all transactions belonging to source_payee_id
Renames the payee itself to target_name
All linked transactions automatically reflect the new name
Note: YNAB does not have a "delete payee" endpoint. Renaming the payee is the correct approach — it handles deduplication internally.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes | ConsolidatePayeeInput with plan_id, source_payee_id, target_name, preview_only |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |