@JorisEbben#148476 open the Terminal app, paste those commands, and save the outputted value in the environment variable :)

    For everyone who thinks YNAB is too expensive... You may try an app called 1Money for android, similar functionality and MUCH cheaper. I think free version and 6€ lifetime use.. Just try it... But keep in mind that there's no connection to BUNQ

      8 months later

      @RvdH#146701 ik heb jouw https://github.com/wesselt/bunq2ynab uitgevoerd, maar begrijp eerlijk gezegd niet wat er bedoelt wordt met "You only need to alter the configuration IF your Ynab account names do NOT match your Bunq account names". Ik snap nog niet wat de YNAB account name(s) en BUNQ account name(s) zijn. Hoop dat je die kunt verduidelijken.

        @Hartger-Rozenberg#203144 Hoi Hartger, dat zijn simpelweg de namen van je rekeningen in bunq en ynab. Als die gelijk zijn aan elkaar kopieert ie de transactie op de rekening in bunq naar de rekening met dezelfde naam in ynab. Hoop dat het zo duidelijk is!

          Hi Rick, dank voor je reply. Bedoel je in BUNQ de naam onder "bedank een leuke naam!" (nick name voor het account zal ik maar zeggen) en in YNAB "Account Nickname" bij checking account? Op de een of andere manier lijkt dat niet te werken bij me namelijk.

            @Hartger-Rozenberg#203170 For bunq you need the name you have set for the sub-account that you want to get transactions from. For me that works even with emoji in it, but it probably has to be letter by letter exactly the same name. And for YNAB I have the name of the budget and then the name of the account in that budget in the config file.

              Dank jullie wel. Dit weekend meer tijd om nog eens goed te testen.

                @wesselt#203529 Superfijn, die afbeelding, dat helpt zeker. Toch blijf ik foutmeldingen krijgen als ik de test uitvoer.

                START RequestId: c7e21ba2-b133-41ab-a99d-6ff7ff5406fe Version: $LATEST
                2020-10-24 21:13:23,199 | INFO | config.py:77 | read_ssm_config | Reading config from SSM
                2020-10-24 21:13:23,250 | INFO | lambda_function.py:25 | get_iban_from_event | No request body found
                2020-10-24 21:13:23,250 | INFO | sync.py:58 | populate | Retrieving bunq accounts...
                2020-10-24 21:13:25,004 | INFO | sync.py:60 | populate | Retrieving ynab accounts...
                2020-10-24 21:13:25,119 | ERROR | lambda_function.py:62 | lambda_handler | Exception occurred
                Traceback (most recent call last):
                File "/var/task/lambda_function.py", line 51, in lambda_handler
                sync.populate()
                File "/var/task/lib/sync.py", line 61, in populate
                self.ynab_accounts = list(ynab.get_accounts())
                File "/var/task/lib/ynab.py", line 94, in get_accounts
                result = get("v1/budgets?include_accounts=true")
                File "/var/task/lib/ynab.py", line 175, in get
                return call('GET', method)
                File "/var/task/lib/ynab.py", line 56, in call
                raise Exception("{0} (details: {1})".format(
                Exception: unauthorized (details: Unauthorized)
                END RequestId: c7e21ba2-b133-41ab-a99d-6ff7ff5406fe
                REPORT RequestId: c7e21ba2-b133-41ab-a99d-6ff7ff5406fe Duration: 1921.84 ms Billed Duration: 2000 ms Memory Size: 512 MB Max Memory Used: 97 MB

                Snap jij wat ik verkeerd doe?

                  Unauthorized uit YNAB.py betekent dat je YNAB token niet klopt. Dat is het developer token uit YNAB settings.

                    Dat dacht ik al. Ik heb het token ' revoked' en een nieuwe aangevraagd en geconfigureerd, maar hij blijft problemen geven. Is het gebruikelijk dat de token met veel X-en begint, want hoe vaak ik ook een aanvraag doe, het begint telkens met veel X-en.
                    En super dank voor het meedenken met mijn rookie vragen :-)

                      @Hartger-Rozenberg#203674 The "Personal Access Token" (from YNAB) is 64 hexadecimal digits. So there can't be any X or characters other than A to F in it. I think the bunq API token has the same format.

                      Edit: You can only see the full token when you first create it. After that it will never be shown again in full on the https://app.youneedabudget.com/settings/developer page. Make sure you store it somewhere safe (it gives access to your YNAB account so treat it like a password).

                        @Jakob-Y#203679 @wesselt#203646 You Guys are the best! Working now!

                          a year later

                          Guys, I just noticed that YNAB is adding support for many European Countries, but still not for Bunq. I'm guessing this will come soon!

                            3 months later

                            BTW, I just sent a feature request to YNAB and gave a nice speech why they should add support for bunq. If you guys also do that, it would greatly increase our chances! You can do it by following this link https://youneedabudget.typeform.com/to/Pt6cek ... help us out 😊

                              a year later

                              @Jakob-Y#203679 well is it stil save to submit these tokens to AWS?

                                Write a Reply...