API access

To begin development you will need API keys to the BankTech Sandbox API which can be requested by signing up for an account through our public websitearrow-up-right or by contacting our support teamarrow-up-right if you already have an account. API keys are issued per environment and per user.

Environments:

The Sandbox environment allows users to utilise all of our services, subject to fair usage policy, and obtain simulated collection and live verification and authentication results. These Sandbox services are normally provided free of charge to new users with API keys looking to get to know our product.

API keys:

  • ClientKey: the system-assigned private identifier for your user account

  • ClientSecret: the system-assigned private password

You can also requestarrow-up-right to have a service user created for the purposes of issuing an API key that is not associated with a real person and instead represents your organisation's integration solution's services and workers. For example, one could create a separate service user for various departments or entities.

triangle-exclamation

To use our API, you will need to authenticate yourself by using your API key to obtain a token. You must have a valid token to make requests. Tokens are valid for a 15 minutes. They can be extended before expiry, otherwise a new token must be created.

The quickest way to get started is to explore the rest of the developer guide to familiarise yourself with the major feature workflows. Thereafter you can simply visit the Sandbox environment's Swagger pagearrow-up-right to authenticate yourself, obtain a token and try out some of our methods.

Click "Try it Out", enter your API KeyID and KeySecret and click "Execute"

If you have entered your details correctly, you should have a 200 (successful) status code response and a token issued to you as part of the response. You can now authorise yourself with this token, but keep in mind it will expire in 15-minutes and you may need to refresh the token's expiry or get a new token.

Hit the Authorise button
Enter your token here in format "bearer [token]" and hit Authorise

If this token was correctly entered, you are now authorised and can use our methods. Happy exploring!

For those more interested in a code-driven approach, the below outlines two very simple cURL examples of how you could achieve the same result as above without using the Swagger interface:

If you would like to convert this cURL into your preferred language, many tools exist online to do exactly that. One of these is ReqBinarrow-up-right and will allow you to convert to Python, Java, Java Script, PHP and C#.

Last updated

Was this helpful?