API Documentation
  • 🏡Home
  • Overview
    • 💡What we do
    • ✨Our Features
  • General Guide
    • 🏷️Introduction
    • 📪Test and Go Live
    • 💁Configuration
      • Custormers
        • Create Customer
        • Fetch Loan Customers
        • Fetch Customers
      • Loan Types
        • Fetch Loan Types
        • Loan Reasons
      • Country
        • Get all countries
        • Get states by country Id
      • Branch
        • Create Branch
        • Branches
      • Sales Person
        • Create a Salesperson
        • Get Sales Persons
      • Team
        • Create a Team
        • Get Teams
      • Employers
      • Industries
      • Commission
  • Products Guide
    • 🏛️Loans
      • New Loan Application
      • Activate/De-Activate Auto approval
      • Loan Information
      • Active Loans
      • Repayment Schedule Calculation
      • Create payment entries
      • Spool Repayments Due
      • Repayment Activation File
      • Repayment Activation Information
      • Disburse
    • 🪝Webhooks
      • Webhooks Verification.
      • Verification Steps
Powered by GitBook
On this page
  • Test Keys
  • What is your Business Alias?
  • How to get your Live API keys
  • Authenticating API calls with your keys in Postman

Was this helpful?

  1. General Guide

Test and Go Live

PreviousIntroductionNextConfiguration

Last updated 1 year ago

Was this helpful?

Test Keys

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

You can download our 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 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=

Set up your with the generated keys

📪
postman collection
Lenda
Global variables