...
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
...
NAME | Datatype | Length | Remarks |
---|---|---|---|
id | BIGINT | 20 | PRIMARY KEY & AUTOINCREMENT |
loanproduct_id | BIGINT | 20 | FOREIGN KEY |
category_id | BIGINT | 20 | FOREIGN KEY |
min_age | BIGINT | 20 | NOT NULL |
max_age | BIGINT | 20 | NOT NULL |
provision_percentage | INT | 4 | DEFAULT 0 |
liability_account | VARCHARBIGINT | 10020 | NOT NULL |
expense_account | VARCHARBIGINT | 10020 | NOT NULL |
created_by | VARCHAR | 100 | app user name |
created_on | DATE | ||
modified_by | VARCHAR | 100 | app user name |
modified_on | DATE |
For any given customertenant, the provision details for a particular loan product will look like below.
...