Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jordancrawfordnz/goodbudget-to-ynab
Imports transactions from GoodBudget to YNAB.
https://github.com/jordancrawfordnz/goodbudget-to-ynab
budgeting finance goodbudget import ynab
Last synced: 7 days ago
JSON representation
Imports transactions from GoodBudget to YNAB.
- Host: GitHub
- URL: https://github.com/jordancrawfordnz/goodbudget-to-ynab
- Owner: jordancrawfordnz
- Archived: true
- Created: 2018-07-26T10:16:09.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-15T04:57:05.000Z (over 1 year ago)
- Last Synced: 2024-08-01T22:42:29.301Z (4 months ago)
- Topics: budgeting, finance, goodbudget, import, ynab
- Language: JavaScript
- Homepage:
- Size: 19.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-ynab - GoodBudget to YNAB
README
# GoodBudget to YNAB Importer
---
**Please note:** This project is not actively maintained, it may no longer work and may depend on out of date dependencies.
---
## What is this?
[YNAB (You Need a Budget)](https://www.youneedabudget.com/) and [GoodBudget](https://goodbudget.com/) are personal finance apps.I've used GoodBudget for a few years but wanted to give YNAB a try. In order to give it a good go I wanted to import my data over from GoodBudget.
GoodBudget allows users to export transactions from an account to a CSV file. This has the columns:
* Date
* Envelope
* Account
* Name
* Notes
* Amount
* Status
* DetailsYNAB has a CSV upload feature but this is designed to get transactions from an export from your bank account but it doesn't know how to link up the GoodBudget Envelope to the YNAB category. No one wants to re-categorise 1000+ transactions!
Fortunately, YNAB has an API which lets users upload transactions. This project takes your GoodBudget CSV files, reformats them a bit, then pushes them up to your YNAB account!
## What does it do?
* Matches the envelope name to a YNAB category name.
* Uploads transactions to YNAB in batches of 200.
* Marks all transactions as 'cleared' but won't automatically approve them - this way you'll still get a chance to review the transactions in YNAB.
* Uses the `import_id` field when uploading in order to prevent duplicate transactions being uploaded. YNAB uses this to decide if the transaction already exists. The importer attempts to uniquely identify transactions within the file such that re-importing the same file (or part of the file, as long as it's split by day) won't result in the transaction being imported again.
* If your new budget category cannot be found, the original budget category will be filled into the memo field.
* Handles split transactions from GoodBudget. There is currently no support in the YNAB API so this results in seperate transactions for each split (rather than sub-transactions).
* `[Unallocated]` transactions are treated as income and sent to the "To be Budgeted" category in YNAB.## What can't it do?
* The YNAB API doesn't currently support transfer transactions, so you'll also need to manually assign the payee to the transaction to make it a transfer. Once you've got all your accounts in YNAB the "All Accounts" view makes it easy to figure out which account these are meant to link to and YNAB will automatically match the other side of the transfer.## How do I use it?
### Setting up on your computer
1. [Install Node on your computer](https://nodejs.org/en/download/)
2. Clone this repo.
3. Run `npm install` to install dependencies.
4. Follow the below instructions to run the importer.### Getting data from GoodBudget
The importer has been designed to import one account at a time. Lets download a CSV for one of your accounts.1. Login to GoodBudget.
2. Click the "Accounts" tab.
3. Select one of your accounts.
4. Click the "Export CSV" button.### Preparing YNAB
#### Getting your token
1. Go to the ["Developer Settings"](https://app.youneedabudget.com/settings/developer) page under your YNAB "My Account" page.
2. Click "New Token", confirm your password and click "Generate".
3. Take a note of the token that shows at the top of the page - this is the only time you will get this so you don't want to lose it!#### Get your account an budget IDs
On the sidebar, click on the account you want to import. Now lets grab the budget and account ID from the URL. This has the format: `https://app.youneedabudget.com/[budget ID]/accounts/[account ID]`#### Setting up categories
Head back into your budget and setup your YNAB categories with the same name as your GoodBudget envelopes. We need to do this before running an import because the importer needs to provide the `category_id` to the YNAB API, so must request a list of your categories in order to match your transactions. Don't worry about the category group as these are ignored.*Finding missing categories:*
It's frustrating to run an import to find that you missed out on a category, especially if you have a lot of deleted categories (but don't worry if you do forget one, the importer will just not set the category and include the original envelope name in the memo!).
Theres a seperate tool you can run to check if you've got all the missing categories.
Run this with:
`node bin/find_missing_categories.js [GoodBudget input file] [YNAB Access Token] [YNAB budget ID]`* **GoodBudget input file:** This is the path to the CSV file you downloaded from GoodBudget above.
* **YNAB Access Token:** This is the access token we generate from YNAB above.
* **YNAB budget ID:** This is the YNAB budget ID we grabbed from the page URL above.
### Running the importer
Run the importer with the following command:`node bin/import.js [GoodBudget input file] [YNAB Access Token] [YNAB budget ID] [YNAB account ID] [optional - date format] [optional - rerun index]`
* **GoodBudget input file:** This is the path to the CSV file you downloaded from GoodBudget above.
* **YNAB Access Token:** This is the access token we generate from YNAB above.
* **YNAB budget ID:** This is the YNAB budget ID we grabbed from the page URL above.
* **YNAB account ID:** This is the YNAB account ID we grabbed from the page URL above.
* **Date format** (default: `MM/DD/YYY`):
GoodBudget lets you set your preferred date format in the settings. This defaults to the US format of `MM/DD/YYYY` but if you're like me and use `DD/MM/YYYY` in GoodBudget then you'll need to provide this as an argument.
* **Re-run index** (default: 0):
This is a bit of a weird option that you probably don't need to use. This relates to the `import_id` we provide to YNAB. While experimenting with the importer I wanted to delete my transactions but even after deleting the transactions YNAB still recognised the transactions as being duplicates. If you ever do want to re-import transactions on purpose then just set this to a different value to any previous exports and the `import_ids` will all change!