A tiny tool that allows you to sync transactions one-way from Up to YNAB.
I recommend setting up a cron job with Render.com (https://render.com/docs/cronjobs). It's easy, inexpensive, and will run this script every hour, or at the interval of your choosing.
You will need to set the following environment variables:
UP_KEY: Your UP API key (instructions here)YNAB_KEY: Your YNAB API key (instructions here)UP_ACCOUNT_ID: You can get this by running theget_up_accounts()function inget_stats.jsYNAB_ACCOUNT_ID: You can get this by running theget_ynab_accounts()function inget_stats.jsBUDGET_ID: You can get this by running theget_ynab_budgets()function iniget_stats.js
- This doesn't yet understand transactions in YNAB that have been renamed, so may import duplicates if this is the case.
- I haven't put any error handling in this yet, so it may fail with unclear error messages.
- It would be great if this could import both cleared and uncleared transactions, and update any uncleared ones
- No support for savers as yet
Be careful with any tool that can access your bank account or budget (I encourage anyone using this to read the source code, no responsibility is taken for any damages). Make sure you keep your API keys safe.