post https://demo.onefin.in/api/v1/client/loan/{lead_id}/tranche/{tranche_id}/upload-document/
Once a lead is created, use this API to upload documnts. The content type should be multipart/form-data. One document should be uploaded at a time.
Use the lead id received in the loan booking API to construct the URL for upload document API. The required documents must be passed here, then the disburse API can be called.
POST /api/v1/client/line/<lead_id>/tranche/<tranche_id>/upload-document/
The payload should contain the file as the file name and the same file name should be uploaded in the API.
document_id is type of the document, we can refer Document IDs Table.