Quickstart: Verify your user's bank accounts
Learn how to verify a user's bank account in a few quick steps.
To integrate with Verification API in sandbox, do the following:
- Sign up to our Console.
- Generate an authentication link. This link provides a simple user interface for your users to connect their bank accounts.
- Log into our Mock Bank account and obtain an
access_token
. You can use thisaccess_token
to verify an account holder name.
See Account Verification for more information including available data and supported countries.
Step 1: Sign up
- Sign up to the TrueLayer Console to get your sandbox
client_id
andclient_secret
. - Install Postman and download our sandbox Postman collection. It contains sample requests so that you can quickly retrieve data, and generate code snippets in various languages of your choice. It also has our Sandbox environment endpoints preconfigured.
Step 2: Authorise a user
Create a test authentication link to authenticate users via the Auth Link Builder in our Console. With the test auth link, you can easily connect to our mock bank.
To create your test auth link:
- Select the set of Permissions with
info
andaccount
scopes to include in the authentication link. - Choose a Redirect URI where the user will be redirected after authenticating.
- Check that the Mock provider is enabled to use our mock bank user credentials for testing.
- Select Test to open the generated test auth link and connect to our mock bank.
- To get an exchange code, select Mock Bank and fill in the following when asked for credentials:
- First name: john
- Last name: doe
Step 3: Obtain an access token
Use the Postman Exchange Code request in the Authentication folder to exchange the generated code
into an access_token
. To do so:
- Add the missing variables:
client_id
: Your sandboxclient_id
. You can find this value in your Console.client_secret
: Your sandboxclient_secret
. You can find this value in your Console.code
: Thecode
that you generated in Step 2 with a link to the step we're referring to here.
- Send the request and retrieve a response containing an
access_token
andrefresh_token
.
Step 4: Access data
With the access_token
, run any of the requests in the Sandbox Postman collection to verify an account holder name.
Updated 14 days ago
Did this page help you?