TipBecause we will need to use our Secret Key and a Link Token, some sensitive information needs to be replaced by you to make the code from this guide fully functional. From now on, we will write
FINTOC_SECRET_KEY to represent the Secret Key that you need to get and LINK_TOKEN to represent the Link Token required for any of this code to work.Tooling
This guide shows how to use the Fintoc API using the Python SDK, the Node SDK and cURL. ThecURL tool can be replaced with any tool that allows HTTP requests to be issued through the terminal and shell scripts (for example, Wget).
The SDKs can be installed with the following commands:
Python
Node
Getting the correct account
As the guide for creating a Link from the dashboard mentions, a Link represents the username/password combination of the bank. This means that a Link might have more than one account (for example, maybe you have a checking account and a savings account under the same username/password combination). Let’s decide which of our accounts has the information that we need! First, let’s list all of our accounts:Node
cURL
Python
Node
cURL
acc_O38ioEA4QejjnGeb to search for our movements. The id of your account should be different, but it should also start with acc_.
TipFrom now on, we will write
ACCOUNT_ID to represent the id of the account that we want to use.Getting the movements
Now that we know the id of the account that we want to use, we just need to use it to get the movements!Node
cURL
Node
cURL