Skip to main content

CreateSelfServiceLoanProductCommand

Overview​

Creates a new loan product with interest rate configuration, disbursement fee settings, and loan amount limits.

Command Structure​

{
"cmd": "CreateSelfServiceLoanProductCommand",
"data": "{\"name\":\"Personal Loan\",\"code\":\"PERSONAL\",\"currencyCode\":\"NGN\",\"interestRateCalculation\":2,\"interestRate\":3.5,\"disbursementFeeCalculation\":1,\"loanFee\":1.5,\"minimumAmount\":50000,\"maximumAmount\":5000000,\"maximumTenorInDays\":365}"
}

Parameters​

ParameterTypeRequiredDescription
namestringYesDisplay name for the product
codestringYesUnique product code (used as identifier)
currencyCodestringYesISO 4217 currency code (e.g. NGN, USD)
interestRateCalculationintYesInterest rate period type (see enum below)
interestRatedecimalYesInterest rate percentage
disbursementFeeCalculationintYesHow the disbursement fee is calculated (see enum below)
loanFeedecimalYesDisbursement fee amount or percentage
minimumAmountdecimalNoMinimum loan amount
maximumAmountdecimalNoMaximum loan amount
maximumTenorInDaysintYesMaximum loan duration in days

interestRateCalculation Enum​

ValueDescription
0Daily
1Weekly
2Monthly
3Yearly

disbursementFeeCalculation Enum​

ValueDescription
0Flat amount
1Percentage of loan amount
2Percentage of disbursed amount

Validations​

  • name and code must be unique — the command returns an error if either already exists
  • currencyCode cannot be changed after creation

Response​

{
"ok": true,
"statusCode": "00",
"message": "Loan product created successfully.",
"outData": {
"LoanProductId": 5,
"LoanProductName": "Personal Loan",
"LoanProductCode": "PERSONAL"
}
}