post https://demo.onefin.in/api/v1/client/loan/{lead_id}/approve/
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 loan would be “Completely Submitted”, and after onboarding is completed and API is hit, it will change to “Ready For Approval” which means it is ready for approval.
After the review of the loan, the status will either change to "Approved" or throw error.
Sample Response:
{
"is_success": true,
"data": {
"status": "Ready For Approval/Approved"
}
}
Use the same API to track status of the approval request:
GET /api/v1/client/loan/<lead_id>/approve/
The API response would depend on whether the loan is approved or it will throw error HTTP 400 Bad request
When the HTTP response goes into error its a “Reject" scenario.
Below would be the response in case of Reject Scenario
{
"is_success": false,
"error": {
"message": "Policy Check Failed",
"code": "request_validation_error",
"details": {
}
}
}