To use Token’s APIs effectively, identifying the correct bankId
is a critical first step. Whether you’re working with V1 or V2 of the platform, make sure to use the correct endpoint for retrieving or searching for bank data.
Choosing the Correct Endpoint
Depending on whether you're using version 1 or version 2 of Token’s APIs, the endpoint for retrieving bank information changes slightly:
-
For PIS V2:
Usehttps://api.token.io/v2/banks?ids=
-
For AIS and PIS V1:
Usehttps://api.token.io/banks?ids=
These endpoints allow you to retrieve metadata about one or more banks by providing their bankId
.
Searching for a Bank
If you don’t already know the bankId
, you can search for banks using Token’s search functionality:
-
For PIS V2:
Usehttps://api.token.io/v2/banks?search=
-
For AIS and PIS V1:
Usehttps://api.token.io/banks?search=
Just enter the bank name or keyword you want to search for at the end of the URL.
This approach helps identify the correct bankId
by querying Token’s database using partial or full bank names.
For further information, please refer to the official developer documentation: