post https://demo.onefin.in/api/v1/client/loan/{lead_id}/generate-document/
Once a lead is created, use this API to generate the documents. Use the Lead ID received in the loan booking API to construct the URL for upload document API. This API creates a temporary link that can be used to download a document.
This API is used when you want to generate documents like a Loan Agreement or Sanction Letter.
Sample Request :
{
"doc_type": "<Type of the document>"
}
Note : Link to the URL which has the requested document. The link expires in 1 hour. Please make sure to download the document before that time.
Checks on Document Types.
For NOC or Loan Closure Certificates, we run the following checks.
- All EMIs are paid.
{
"is_success": false,
"error": {
"message": "EMI repayments are pending. Loan Closure Certificate cannot be generated.",
"code": "request_validation_error"
}
}
- Extra charges like Penal Interest, NACH Bounce are paid - if any.
{
"is_success": false,
"error": {
"message": "Payment of Charges are pending. Loan Closure Certificate cannot be generated.",
"code": "request_validation_error"
}
}
- Allocations are pending.
{
"is_success": false,
"error": {
"message": "Allocations are pending. Loan Closure Certificate cannot be generated.",
"code": "request_validation_error"
}
}