Skip to main content

Loan Action : Marking & Unmarking

Marking & Unmarking

Screenshot 2023-04-22 at 4.01.47 AM.png

The Synofin API's Loan Marking & Unmarking Action is linked to various closure that a user may initiate in accordance with their requirements. This feature involves different step which are :

  1. Retrieving Cancellation (Marking & Unmarking)
  2. Retrieving Data for Loan Action (Marking & Unmarking)
  3. Saving / Initiation Request for Loan Action (Marking & Unmarking)
  4. Approving / Rejection Service Request for Loan Action (Marking & Unmarking)




GET Marking & Unmarking

This API is used for retrieving all the closure details for the specified Loan Id. 

URL: {{base_url}}/loan-management/v1/service-request/status

Request
Request Type: GET
Authorization: Bearer Token
Query Parameter
Key Data Type Value
request* String Fixed = marking
loanId* Integer -
* required Param

Response: 200

{
    "response": true,
    "data": true,
    "error": null
}



Fetch Data for Marking & Unmarking

Upon fetching the SynoFin losure API. The user can choose the Marking & Unmarking they must carry out in order to fulfil their demand at this point. 
Consequently, we use following APIs to retrieve the Data for the selected Marking & Unmarking for the specified Loan Id.

  1. Data for Loan Action Closure
  2. Master data for Closure

POST Data For Loan Action

To obtain data for Marking & Unmarking, utilise this API.

URL: {{base_url}}/loan-modification/v1/service-request/getDataForLoanActions

Request Type: POST
Authorization: Bearer Token

Query Parameter
No parameter

Loan Actions - Marking & Unmarking

Request Body

Response: 200

Marking

{
    "loan_id": "integer",
    "request_id": "marking"
}

{
    "response": true,
    "data": {
        "markings": []
    },
    "error": null
}


Unmarking

{
    "loan_id": "integer",
    "request_id": "unmarking"
}

{
    "response": true,
    "data": {
        "markings": []
    },
    "error": null
}

POST Master Data for Marking & Unmarking

To obtain Master data for Marking & Unmarking, utilise this API.

URL: {{base_url}}/loan-management/v1/getMasterType

Request Type: POST
Authorization: Bearer Token

Query Parameter
No parameter

Loan Actions - Marking & Unmarking

Request -

Request Body

Response: 200

Marking

[
    {
        "type": "marking_type_list"
    },
    {
        "type": "reason",
        "parent": "service_request_id",
        "parent_id": "marking"
    }
]

{
  "response": true,
  "data": [
    {
      "reason": {},
      "marking_type_list": {}
    }
  ],
  "error": null
}


Unmarking

[
    {
        "type": "reason",
        "parent": "service_request_id",
        "parent_id": "unmarking"
    }
]

{
   "response": true,
   "data": [
      {
         "reason": {}
      }
   ],
   "error": null
}



Saving / Initiation Request for Loan Action (Marking & Unmarking)

These are the APIs that are used to save loan Marking & Unmarking or initiate service requests initiated by maker so that the checker can review them and then determine what they want to accomplish and either Approve or Reject the Request.

Consequently, we use following APIs to save or intiated the Loan Marking & Unmarking for the selected Marking & Unmarking for the specified Loan Id.

POST Save Service Request

To save data for Marking & Unmarking, utilise this API.

URL: {{base_url}}/loan-modification/v1/service-request/save

Request Type: POST
Authorization: Bearer Token

Query Parameter
No parameter

Loan Actions - Marking & Unmarking

Request Body

Response: 200

Marking

{
   "service_request_type": "marking",
   "service_request_subtype": "0",
   "loan_id": "0",
   "request_data": {
      "marking_type_list": "string",
      "marking_sub_type": "string",
      "reason": "0",
      "uploadFile": "",
      "remarks": "",
      "transaction_date": "2023-04-15"
   },
   "service_request_id": ""
}

{
    "response": true,
    "data": {
        "result": null,
        "service_request_id": 0
    },
    "error": null
}


Maturity Closure

{
   "service_request_type": "unmarking",
   "service_request_subtype": "0",
   "loan_id": "0",
   "request_data": {
      "unmarking": "",
      "reason": "0",
      "uploadFile": "",
      "remarks": "",
      "transaction_date": "2023-04-15"
   },
   "service_request_id": ""
}

{
    "response": true,
    "data": {
        "result": null,
        "service_request_id": 0
    },
    "error": null
}




Request Approval / Rejection 

The request must now be approved at the Request page, where users may examine requests and take action.

SynoFin - Request