Bank Alerts to YNAB
This project routes spending alert emails from your bank to YNAB so your transactions appear in YNAB seconds after they occur.
- Bank of America (Credit)
- Wells Fargo (Credit)
2 minute setup
Setup is free, easy, and should take less than 2 minutes. You will be cloning a Glitch project to act as a webhook server, creating a free CloudMailin account which will give you an email address that will route to your webbook, and then telling your bank to send spending alerts to your CloudMailin email address.
Setup Demo Video
Click "Remix This" button on the right side of this page. This will clone this Glitch project so you are working with your own project.
Edit the .env of this project and specify a YNAB API Access Token. It should look something like this:
As long as you leave secrets in the
.envfile, they should be safe.
- Go to https://www.cloudmailin.com and create an account
- Specify your POST target as
https://awesome-app.glitch.me/webhook(given your project name is "awesome-app") and POST Format as "JSON Format".
- Note the new @cloudmailin.net address assigned to you (it will look something like: email@example.com)
- Go to your bank's website and setup spending alerts to be sent to your @cloudmailin.net address. If your bank does not allow you to setup a secondary alert email address you can setup a forwarding rule on your email service. The Alert Setup section below has information and screenshots for specific banks.
Now, spend something
In general, you need to setup an email alert notifcation to be sent to your unique CloudMailin email address when any activity happens on your account. Most of the supported banks let you configure a secondary email for these alerts but in the case where they don't you can setup a forwarding rule from your email service. When given the option for text or HTML format, chosing text will be more reliable.
On the Profile & settings page:
On the Profile & settings page:
On the Settings > Account Alerts page:
Bank of America
On the Accounts > Alerts page:
On the Account Summary > Alerts page:
Discover does not allow you to specify a secondary email address for alerts so you will need to setup a rule to forward emails received from
firstname.lastname@example.org to your CloudMailin email address.
On Manage > Account Alerts page:
PayPal always sends email alerts when any activity occurs on the account and you cannot specify a secondary email address for these. You will need to setup a rule to forward emails received from
email@example.com to your CloudMailin email address.
Routing to Specific YNAB Accounts
With the 2 minute setup above, transactions will be routed to the first account on your budget, to keep things simple initially. To route to a specific YNAB account:
- Determine the target YNAB account ID by either enumerating your accounts through
GET /budgets/:id/accountson the YNAB API or by navigating to a specific account in YNAB from your desktop browser and grabbing the account ID from the URL (format is: https://app.youneedabudget.com/<budget_id>/accounts/<account_id>).
- Append your YNAB account ID to the CloudMailin POST target URL. For example, if your Glitch app name is "awesome-app" and your YNAB account ID is 66187f1-FAKE-8d05 your CloudMailin Incoming Address setting should look like this:
- If you want to setup multiple banks associated to separate YNAB accounts, you can create additional email addresses in CloudMailin and use a different POST target for each.