Skip to main content

Getting Started

All API requests require authentication and specific headers. Here’s what you need to know:

Required Headers

Authorization: Bearer YOUR_API_KEY
x-user-id: YOUR_ORGANIZATION_ID
Content-Type: application/json

Request

A typical adding of a loan includes:
POST /v1/loans HTTP/1.1
Host: lms.tausi.africa
Authorization: Bearer YOUR_API_KEY
x-user-id: YOUR_ORGANIZATION_ID
Content-Type: application/json
{
    "loan_id": 1011111,
    "borrower_id": 1002,
    "loan_application_id": "APP-2023-001",
    "loan_disbursed_by_id": 2001,
    "loan_principal_amount": 10000.50,
    "loan_released_date": "2023-06-15",
    "loan_interest_method": "Flat Rate",
    "loan_interest_type": "Fixed",
    "loan_interest_period": "Monthly",
    "loan_interest": 5.25,
    "loan_duration_period": "Months",
    "loan_duration": 12,
    "loan_payment_scheme_id": 3001,
    "loan_num_of_repayments": 12,
    "loan_decimal_places": "2"
}