ynab-bank-importer icon indicating copy to clipboard operation
ynab-bank-importer copied to clipboard

Testing SaltEdge API to get access to hundreds of PSD2 banks

Open f2cx opened this issue 5 years ago • 0 comments

Currently working on integrating SaltEdge API - I'm using this for the German bank "DKB" and it seems to work for all accounts (including credit cards):

Configuration:

 - dumper: :saltedge
    iban: DEXXXXXXXXXXXXXXXXXXX
    ynab_id: ...
    saltedge_app_id: ...
    saltedge_secret: ...
    saltedge_connection_id: ...
    saltedge_transaction_count: ...
    saltedge_account_id: ...

SALTEDGE API

Refresh the Data

  • Before you can import the transactions to YNAB, you need to make sure to sync the transactions from your bank accounts with Salt Edge.
  • This can be done via the web interface or via the following CURL request (you will get a special link to login to your bank account and enter a valid TAN):

export APP_ID=...
export SECRET=...
export CONNECTION_ID=...

curl --silent -H "Accept: application/json" \
        -H "Content-type: application/json" \
        -H "App-id: $APP_ID" \
        -H "Secret: $SECRET" \
        -X POST \
        -d "{ \
              \"data\": { \
                \"connection_id\": \"$CONNECTION_ID\", \
                \"consent\": { \
                  \"period_days\": 90, \
                  \"scopes\": [ \
                    \"account_details\", \
                    \"transactions_details\" \
                  ] \
                } \
              } \
            }" \
        https://www.saltedge.com/api/v5/connect_sessions/reconnect | jq .

USE IT AT YOUR OWN RISK! IT IS YOUR DECISION IF YOU TRUST SALTEDGE!

f2cx avatar Oct 16 '19 21:10 f2cx