Update Loan Account

To update an existing loan account, send a PUT request to the endpoint mentioned below. The request should include the loan id in the request body, as well as any other required information. PUT /api/loanaccount/v1/update A successful request will return a success message in the response, indicating that the loan account has been updated. This process enables modifying existing loan account information, ensuring that loan-related data remains current and relevant.

Headers

Name
Value

Content-Type*

application/json

Authorization*

Bearer <token>

Request-Reference

{unique-reference}

Body

Name
Data Type (length)
Required
Description

id

string

The unique identifier for the loan account (Guid)

linkedNumber

string

The number linked to the loan account (NUBAN) for disbursement

lendingModel

string

The model used for lending The enumerations are: 1 = CreditUnion 2 = Individual 3 = Individuals 4 = NeighbourhoodAndSmallGroupRevolvingFunds 5 = Other 6 = SolidarityGroups 7 = Staff, 8 = VillageBanking 9 = WholesaleLending

economicSector

string

The code representing the economic sector The enumerations are: 40100 = Agriculture, Forestry, and Fishing 40200 = Mining and Quarrying 40300 = Manufacturing 40500 = Real Estate Activities 40700 = General Commerce 40800 = Transportation and Storage 40900 = Finance and Insurance 41000 = General 41200 = Governments 41300 = Water Supply, Sewage, Waste Management, and Remediation Activities 41400 = Construction 41500 = Information and Communication 41600 = Professional, Scientific, and Technical Activities 41700 = Administrative and Support Service Activities 41800 = Education 41900 = Human Health and Social Work Activities 42000 = Arts, Entertainment, and Recreation 42100 = Activities of Extra-Territorial Organizations and Bodies 42200 = Power and Energy 42300 = Capital Market 42400 = Oil and Gas

guarantorID1

string

The ID of the first guarantor

guarantorID2

string

The ID of the second guarantor

hasCollateralPledge

boolean

Indicates if there is a collateral pledge, set true for yes an false for no

collateralType

string

The type of collateral provided The enumerations are: 1 = RealEstateLandAndBuilding 2 = Automobile 3 = PlantAndEquipment 4 = NaturalReserves 5 = MarketableSecurities 6 = AccountsReceivablesAndInventory 7 = Cash 8 = PersonalGuarantees 9 = PostDatedCheques 10 = Dormicilliation 11 = HouseholdItems

collateralValuation

integer

The value of the collateral

collateralDescription

string

A description of the collateral

enableRepaymentTracker

boolean

Indicates whether the repayment tracker is enabled set true for yes and false for no

repaymentTrackerInDays

integer

The number of days for the repayment tracker

Here is an example request and response with a sample payload sent to the endpoint in Curl format.

Sample Request
curl --location -g --request PUT '{{baseurl}}/api/loanaccount/v1/update' \
--header 'Authorization: bearer {token}' \
--header 'request-reference: {unique_reference}' \
--header 'Content-Type: application/json' \
--data '{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "linkedNumber": "string",
  "lendingModel": "string",
  "economicSector": "string",
  "guarantorID1": "string",
  "guarantorID2": "string",
  "hasCollateralPledge": true,
  "collateralType": "string",
  "collateralValuation": 0,
  "collateralDescription": "string",
  "enableRepaymentTracker": true,
  "repaymentTrackerInDays": 0
}'
Respose: 200
{
  "status": true,
  "message": "string"
}

Last updated