Skip to main content

Loan Action : Adhoc Payable / Receivables

Adhoc Receivables / Payables

Screenshot 2023-04-22 at 6.08.37 AM.png

The Synofin API's Loan adhoc 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 (Adhoc)
  2. Retrieving Data for Loan Action (Adhoc)
  3. Saving / Initiation Request for Loan Action (Adhoc)
  4. Approving / Rejection Service Request for Loan Action (Adhoc)




GET Adhoc

This API is used for retrieving all the Adhoc 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 = adhoc
loanId* Integer -
* required Param

Response: 200

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



Fetch Data for Adhoc

Upon fetching the SynoFin Adhoc API. The user can choose the Adhoc 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 Adhoc for the specified Loan Id.

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

POST Data For Loan Action

To obtain data for Adhoc, utilise this API.

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

Request Type: POST
Authorization: Bearer Token

Query Parameter
No parameter

Loan Actions - Adhoc

Request Body

Response: 200

Adhoc Receivable

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

{
   "response": true,
   "data": {
    "tax_amount": null,
    "effective_amount": null,
    "receivableDueDate": "2024-02-14",
    "receivable_charge": []
   },
   "error": null
}


Adhoc Payable

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

{
    "response": true,
    "data": {
        "tax_amount": null,
        "effective_amount": null,
        "payable_due_date": "2024-02-14"
    },
    "error": null
}


POST Master Data for Closure

To obtain Master data for closure, utilise this API.

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

Request Type: POST
Authorization: Bearer Token

Query Parameter
No parameter

Loan Actions - Adhoc

Request -

Request Body

Response: 200

Adhoc Receivable

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

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


Adhoc Payable

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

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



Saving / Initiation Request for Loan Action (Adhoc)

These are the APIs that are used to save loan Adhoc 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 Adhoc for the selected Adhoc for the specified Loan Id.

POST Save Service Request

To save data for Adhoc, utilise this API.

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

Request Type: POST
Authorization: Bearer Token

Query Parameter
No parameter

Loan Actions - Adhoc

Request Body

Response: 200

Adhoc Receivable

{
   "service_request_type": "adhoc_receivable",
   "service_request_subtype": "0",
   "service_type": "",
   "loan_id": "0",
   "request_data": {
    "receivableDueDate": "2024-02-14",
    "receivable_charge": "string",
    "amount": "0",
    "reason": "0",
    "tax_amount": "0",
    "total_amount": "0",
    "uploadFile": "",
    "remarks": "",
    "transaction_date": "2024-02-14"
   },
   "service_request_id": ""
}

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


Adhoc Payable

{
   "service_request_type": "adhoc_payable",
   "service_request_subtype": "0",
   "service_type": "",
   "loan_id": "0",
   "request_data": {
    "payable_due_date": "2024-02-14",
    "payable_charge": "string",
    "amount": "0",
    "reason": "0",
    "tax_amount": "0",
    "total_amount": "0",
    "uploadFile": "",
    "remarks": "",
    "transaction_date": "2024-02-14"
   },
   "service_request_id": ""
}

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




Request Approval / Rejection Rejection 

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

SynoFin - Request