Here you can find the bash scripts to test your connection with the ING sandbox for Open Banking APIs.
- bash (Git Bash for Windows users)
- curl
- openssl
- Change directory:
cd scripts/bash
- Run
./call_premium.sh
to test your connection to ING Premium APIs - Run either
./call_psd2_auth_url.sh
or./call_psd2_account_info.sh
to test your connection to ING PSD2 APIs
The scripts provided under 'Quick Start' are a composition of scripts that describe the individual steps necessary to connect to ING Open Banking APIs. They are built in such a way that you can pipe the result from one script in to the next as shown by the quick start scripts. The steps are for:
Configuration: apps/sandbox/config-premium.env
- Request an application token:
./premium_01_RequestApplicationToken.sh
- Call the ShowCaseAPI with the token:
./premium_01_Showcase.sh
or - Call Payment Request API with the token:
./premium_02_CallPaymentRequestRegistration.sh
or - Run
./call_premium.sh
which calls both ShowCaseAPI and Payment Request API
Certain premium api's can be called using mTLS only, excluding the signature header.
- Request an application token
./premium_01_RequestApplicationToken_mtls_only.sh
- Call the Showcase API with the token
./premium_01_Showcase_mtls_only.sh
or - Call the Payment Request API with the token
./premium_02_CallPaymentRequestRegistration_mtls_only.sh
or - Run
./call_premium_mtls_only.sh
which calls both ShowCaseAPI and Payment Request API
Certain premium api's require a JWS message signature to ensure message integrity.
- Request an application token
./premium_01_RequestApplicationToken_mtls_only.sh
- Call the Showcase API
./premium_01_Showcase_jws.sh
or - Run
./call_premium_jws.sh
If you want to learn more about JWS message signing and/or signature verification for the signed responses by ING, please refer to the Getting Started Guide where the text of the Getting Started Guide links to https://developer.ing.com/openbanking/resources/get-started/premium#jws
Configuration: apps/sandbox/config-psd2.env
- Request an application token:
./psd2_01_RequestApplicationToken.sh
. The above script outputs the access token value into a txt file which is then picked up automatically by the following scripts, so there is no need to pass the application access token on each request - Request an authorization URL:
./psd2_02_RequestAuthorizationURL.sh
(the authorization URL subsequently needs additional parameters according to instructions on the ING Developer Portal) - Request authorisation code:
./psd2_03_RequestAuthorizationCode.sh
- Request a customer access token:
./psd2_04_RequestCustomerToken.sh
- Call the Account Information API:
./psd2_05_CallAccountInformationAccount.sh