Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Loan Loss Provision API(s)

1) https://serveraddress:port/mifosng-provider/api/v1/

...

loanprovisioning

Optional parameters for Create request

Code Block
{
"createjournalentries" : true,
"date" : true,
"recalculateprovisioning": true
 
}

 

Request Parameters: "Date:date on which report to be generated, createjournalentry=true/false, regenerateprovisions:true/false, offset=number, limit=number", Method: GET

Description: This API should be used to generate loan loss provision entries. Date request parameter indicates on which the provision entries should be created. If createjournalentry parameter is true, then loan loss provision details will be added into journal entry. Before creating new journal entries, it will reverse previous journal entries if they present. If createjournalentry is false then it will not create the journal entries. If regenerateprovisions true, then it will delete previous provision entries if present and it will create new provision entries. If regenerateprovisions is false, it will return previous provision entries if present.The request parameters offset and limit are used for the pagination. This method will return list of provision entries in JSON data format

Get Provisioning details

Code Block
 


2) http://serveraddress:port/mifosng-provider/api/vi/loanprovision/list

...

NAMEDatatypeLengthRemarks
idBIGINT20PRIMARY KEY & AUTOINCREMENT
loanproduct_idBIGINT20FOREIGN KEY
category_idBIGINT20FOREIGN KEY
min_ageBIGINT20NOT NULL
max_ageBIGINT20NOT NULL
provision_percentageINT4DEFAULT 0
liability_accountVARCHARBIGINT10020NOT NULL
expense_accountVARCHARBIGINT10020NOT NULL
created_byVARCHAR100app user name
created_onDATE  
modified_byVARCHAR100app user name
modified_onDATE  

 

For any given customertenant, the provision details for a particular loan product will look like below.

...