Fetch Master Data for Document Type
POST Master Data for Document Type
This loan viewer API is used to retrieve all the master data for the loan's documents that are available for it.
URL: {{base_url}}/loan-management/v1/getMasterType
Request
Request Body
[
{
"type": "document_type"
},
{
"type": "customers",
"parent": "service_request_id",
"parent_id": "996"
},
{
"type": "document_state"
},
{
"type": "document_stage"
},
{
"type": "document_status"
},
{
"type": "document_department"
}
]
Response:
Status Code: 200 OK
{
"response": true,
"data": [
{
"document_stage": {
"values": [
{
"key": "1st-tranch",
"value": "1st Tranch"
},
{
"key": "2nd-tranch",
"value": "2nd Tranch"
},
{
"key": "pre-disbursal",
"value": "Pre Disbursal"
},
{
"key": "post-disbursal",
"value": "Post Disbursal"
}
],
"parent": null
},
"document_status": {
"values": [
{
"key": "otc",
"value": "Otc"
},
{
"key": "pending",
"value": "Pending"
},
{
"key": "received",
"value": "Received"
},
{
"key": "waiver",
"value": "Waiver"
}
],
"parent": null
},
"document_state": {
"values": [
{
"key": "certificate",
"value": "CERTIFICATE"
},
{
"key": "notarized",
"value": "NOTARIZED"
},
{
"key": "original",
"value": "ORIGINAL"
},
{
"key": "original_laminated",
"value": "ORIGINAL LAMINATED"
},
{
"key": "original_punched",
"value": "ORIGINAL PUNCHED"
},
{
"key": "photpcopy",
"value": "PHOTO COPY"
}
],
"parent": null
},
"document_department": {
"values": [
{
"key": "audit",
"value": "Audit"
},
{
"key": "credit",
"value": "Credit"
},
{
"key": "legal",
"value": "Legal"
},
{
"key": "operation",
"value": "Operation"
}
],
"parent": null
},
"customers": {
"values": [],
"parent": null
},
"document_type": {
"values": [
{
"key": "profile_photo",
"value": "Profile Photo"
},
{
"key": "id1",
"value": "ID 1"
}
],
"parent": null
}
}
],
"error": null
}
Status Code: 400 BAD REQUEST
{
"response": false,
"data": null,
"error": {
"code": 0,
"text": "string",
"detail": "string"
}
}
Expected messages as per Status API :
Error Code | Description |
107001 | An Exception occurred in saving data |
No Comments