πŸ“ͺTest and Go Live

Test Keys

We will provide API keys for a test environment to make test API calls

You can download our postman collection to make testing the API easier

What is your Business Alias?

Your Business Alias is the name you entered during registration/onboarding. It is also your unique subdomain name on Lenda (example - https://<your_business_alias>.lendastack.io).

To make API calls use your business alias as part of the base URL (example - https://<your_business_alias>.lendastack.io/api/<path_parameter>)

How to get your Live API keys

  1. Login to the Lenda application

  2. Navigate to the Loan Module

  3. Click on profile on the left navigation menu

  4. Click on the API access management tab to generate and manage your API keys.

Authenticating API calls with your keys in Postman

Here are the steps to authenticate your API call.

VARIABLE                INITIAL VALUE                                        CURRENT VALUE
baseUrl            https://<your_business_alias>.lendastack.io        https://<your_business_alias>.lendastack.io
ApiPublicKey       4a4f164bdc009087a8ae9afbba454990                   4a4f164bdc009087a8ae9afbba454990
ApiPrivateKey      OTk4Mzc0MTUxZjBiZGJiOWZiZGZlMDU0YzI1...            OTk4Mzc0MTUxZjBiZGJiOWZiZGZlMDU0YzI1...
  • Encode the combination of your keys as a base64 string

const apiPublicKey = pm.variables.get("ApiPublicKey");
const apiPrivateKey = pm.variables.get("ApiPrivateKey");

var rawStr = CryptoJS.enc.Utf8.parse(apiPublicKey + ":" +apiPrivateKey)

var encodedKeys  =  CryptoJS.enc.Base64.stringify(rawStr);

postman.setGlobalVariable('encodedKeys', encodedKeys);
  • Add the encoded API key to the Authorization header of your API request

Sample Authorization Header

Authorization:

OTk4Mzc0MTUxZjBiZGJiOWZiZGZlMYDU0YzI1Zjc3ZmQwZWRlNDJhZDc5MjkwNDU3ZThhZDY2NzQ4Nzk3MmRkYthhgjjo1YTRkNDdhNi0xYmI4LTQxNDAtYmIyZC0zMzgzYjZlZDM2Mzg=

Last updated

Was this helpful?