Using Postman to Test the APIs
The Postman Collection already includes all the Data and Payment API endpoints with a correct set-up.
Before you can start calling all the endpoints, you must first set up the Connect Layer. You can use the sandbox environment and log in with a created sanbox user. You can also use the production environment option and log in with real bank credentials. (This is possible only if you have been given access to production)
- After successful login in the Connect Layer, we are interested in the response values. If you use the default set-up in QuickStart, the response values should also be displayed in the console. Copy the following values to your Postman environment:
- Copy
accessCodefrom Connect Layer and paste to Current Value field ofaccess_code - Copy
connectionIDfrom Connect Layer and paste to Current Value field ofconnection_id - Copy
userSecretfrom Connect Layer and paste to Current Value field ofuser_secret
- Send the exchangeToken request on Postman. If successful, the
access_tokenvalue will be automatically updated in your environment variables.
You are ready to test the Data and Payment APIs!
Pay attention to required fields!For example,
Account BalanceorAccount Transactionsendpoints requireaccount_idin the request body. Hence, you would first need to call theAccountsendpoint -> choose the desired account and copy itsid-> set theidas the Current Value foraccount_idin the environment.
Sandbox user restrictionsSince all banks listed in the sandbox are simulations, all endpoints can only be used on sandbox users. You cannot send money or interact with real users using the sandbox environment.
This means that during a transfer, the beneficiary should also be a sandbox user.
Changing userIf you want to change the user, simply repeat the steps 1 & 2 with a new user.
Updated 5 months ago