post https://stagingplatformapi.kudosfinance.in/v3/api/cl_record
Use case: This is used to record a usage from the credit line
Recipes
🦉
The first Lending API you will hit
Open Recipe
Once you have called the credit grid to move a loan to disbursal_approved state
then call the cl_record api like so :
[
{
"partner_loan_id": "...",
"partner_borrower_id": "...",
"kudos_loan_id": "...",
"kudos_borrower_id": "...",
"ac_holder_name": "...",
"vpa_id": "test@test",
"txn_id": "..must always be unique.",
"txn_reference": "your other internal id perhaps",
"txn_amount": 100,
"txn_date": "2021-12-14",
"txn_label": "Meal",
"dues": [{
"date":"2021-12-16",
"int_value":"5",
"principal_amount" : "50"
},{
"date":"2021-12-30",
"int_value":"5",
"principal_amount" : "50"
}]
}
]
For a bullet payment due on the 16th of this month
// ...other fields from above...,
"txn_amount": "100",
"dues": [{
"date":"2021-12-16",
"principal_amount" : "100"
}]
eg: For interest of 1% and late fees
// ...other fields from above...,
"txn_amount": "100",
"dues": [{
"date":"2021-01-05",
"int_value":"1",
"principal_amount" : "100"
},{
"date":"2021-12-30",
"int_value":"5",
"principal_amount" : "50"
}]
eg: for splitting a transaction into 3 month EMI
// ...other fields from above...,
"txn_amount": "100",
"dues": [{
"date":"2021-01-05",
"int_value":"1",
"principal_amount" : "33"
},{
"date":"2021-02-05",
"int_value":"1",
"principal_amount" : "33"
},{
"date":"2021-03-05",
"int_value":"1",
"principal_amount" : "34" //principal 100 collected back
}]
Auto generating a repayment schedule based on reducing interest rate
You can can the following columns
"loan_tenure":3,
"processing_fees_perc":"5",
"processing_fees_amt":"=processing_fees_perc% * txn_amount",
"loan_int_rate":"=loanrequest.loan_int_rate", // or set
"duesResult":"=calculateDues(body)", // will generate repayment schedule and breakup
"dues":"=duesResult.dues.dues" // pass the dues from above computation here