Authentication
All requests must use HTTPS. Authentication is achieved using an API Key and API Secret, passed in the
headers X-Api-Key and X-Api-Secret.
If the authentication fails when making a request to the API, a 401 Unauthorized response is returned to the client. In that case you will need to verify that you are using the correct credentials
and that the API key is active, or contact The Kingdom Bank support. A missing header returns error code 1000; wrong, inactive or disabled
credentials return 1001. If API access is not enabled on your account you will receive 409 with code 1052.
You can view and manage your API keys from the Merchant dashboard.
IP whitelisting
By default we allow requests from any public IP provided that the API credentials are correct.
For an extra layer of security you can enable the IP whitelisting feature from the Merchant dashboard.
This means that we will block any API request not coming from an IP which you have explicitly whitelisted on your Merchant account
and a 403 Forbidden response with error code 1006 will be returned to the client. Both single IPs and CIDR ranges (e.g. 203.0.113.0/24)
can be whitelisted.