Docs
  • Home
  • Introduction
  • Loans
    • New loan application
    • Activate/De-Activate Auto approval
    • Loan Information
    • Active loans
    • Repayment Schedule Calculation
    • Create payment entries
    • Spool repayments due
    • Repayment Activation
      • Remita
    • Auto Disburse
  • Configuration Helpers
  • Create Person
  • Persons
  • Search Customer
  • Loan Types
  • Branches
  • Salesperson
  • Employer & Industry
    • Industries
  • Web-hook Integration
    • Industries
  • Loan Reasons
  • Guides
    • Test and go live
Powered by GitBook
On this page
  • Test keys
  • What is business your alias?
  • How to get your Live API keys
  • Authenticating API calls with your keys

Was this helpful?

  1. Guides

Test and go live

PreviousLoan Reasons

Last updated 3 years ago

Was this helpful?

Test keys

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

You can also download our to make testing the API easier

What is business your alias?

Your business alias is the alias name you entered during registration/onboarding. It is also your unique subdomain name on Lenda (example. https://<your_business_alias>.lenda.ng). To make API calls use your business alias as part of the base URL(example. https://<your_business_alias>.lenda.ng/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

Here are the steps to authenticating your API call.

  • Combine your public key and private key separating both with ":" (colon symbol)

//example public_key:private_key
var keys = "6e83be7813c44ab6ab888889472beb:NTQzM2VjM2M1ZTgyMGRiYjQzNjI4YTI0MDMwMmE4MWQzN2E3NGFmNGQ0NTQxYjk1ZTFkMDU3ZmIwOWJlZDk4Yjo5ZWM3OWM4Zi04NMYx..."
  • Encode the combination of your public key and secret key as a base64 string

var apiPublicKey = "6e83be7813c44ab6ab888889472beb";
var apiPrivateKey = "NTQzM2VjM2M1ZTgyMGRiYjQzNjI4YTI0MDMwMmE4MWQzN2E3NGFmNGQ0NTQxYjk1ZTFkMDU3ZmIwOWJlZDk4Yjo5ZWM3OWM4Zi04NMYx...";

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

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

  • Add the encoded API key to the authorization header of your API request.

Sample Authorization Header

Authorization: MjE2ZTg5ZGU0OWNhMDZjN2KiMjQwNWQ4NjBmODNiODA4OTUzYTBiYWY5ZGFiYWY4MzMzOWEyMWE0MjZiZWZhNTo3NWRhZWxMS1lMGVjLTQ0OGMtYmY2Mi00YmFhMGE0ZjRlNzQ=

postman collection
Lenda