packages/docs/docs/transactions/payees.md
A payee is a description of the source of a transaction. Actual provides a powerful way of managing payees.
When importing transactions, by default Actual will create new payees based on the imported name. Often this ends up with some ugly names like Target Debit Crd Ach Tran Co Id:Xxxxx15170. With payee management, you can clean these names up, set rules for how payees are resolved, and even set a default category to use.
:::info[Payee Management]
To manage payees, either select the More > Payees from the sidebar or click the Manage Payees button when editing a transaction's payee.
:::
When importing transactions from a file, Actual tries to automatically match the imported names to existing payees. It does this by running through rules that you can edit. If no existing payee is found, it will create one.
If a payee is found with an exact match as the imported name, it will always use that payee. Otherwise, it will look for payees with rules that match. These rules specify whether it should match a string exactly, or if it should contain a string. For example, a Target payee might have a rule that says "if a name contains 'Target', use this payee", and the ugly payee above would be resolved to the Target payee.
When a payee is matched, if it has a default category the transaction will automatically be assigned to it.
:::tip[Category Learning]
Actual defaults with Category Learning enabled. You can find this setting in the bottom left corner of the Payees page. A more in depth discussion of Payee Rules and Category Learning can be found in the Rules documentation. You can turn this off for one, several or all Payees. Learn more
:::
A powerful feature is merging payees. You may already have months worth of data and a lot of ugly Morrisons payees that all vary slightly. You may want to merge all of these together into one payee.
Open the Payees page
Type "Morrisons" into the filter to only show those payees.
You can individually select payees and merge them if you like, but filtering & merging is a powerful way to quickly clean up your payees.
Transfers are just special payees that indicate which account to transfer to/from. Since they are payees, you can create rules like normal which will automatically create transfers. You will find them at the bottom of the Payees page if you want to create custom rules.