get https://demo.onefin.in/api/v1/client/line/{lead_id}/
This API sends a signal to the lender that all the required documents have been uploaded, and they can go for review of the loan.
By default the status of the load would be "Completely Submitted", which means it is under review. After the review of the loan, the status will either change to "Approved" or "Rejected".
Sample Response:
{
"is_success": true,
"data": {
"status": "Completely Submitted"
}
}
Use the same API to track the approval request:
POST /api/v1/client/loan/<lead_id>/approve/
The API response would depend on whether the loan is approved or rejected, in case of rejectection reason will also be returned if available.
{
"is_success": true,
"data": {
"status": "Completely Submitted/Rejected/Approved",
"rejection_reason": "<reason for rejection, if available>",
"lead_id": "<lead id of the loan>"
}
}