Skip to main content

Loan Action : Payment

Payment

Screenshot 2023-04-22 at 5.16.54 AM.png

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




GET Payment

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

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

Request
Request Type: GET
Authorization: Bearer Token
Query Parameter
KeyData TypeValue
request*StringFixed = payment
loanId*Integer-
* required Param

Response: 200

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



Fetch Data for Payment

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

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

POST Data For Loan Action

To obtain data for Payment, utilise this API.

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

Request Type: POST
Authorization: Bearer Token

Query Parameter
No parameter

Loan Actions - Payment

Request Body

Response: 200

Payment

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

{
  "response": true,
  "data": {
    "payables": [],
    "paid_to": [],
    "beneficiary_account_number": null,
    "payment_date": "2024-02-14",
    "dealer_code": null
  },
  "error": null
}


Payment Bank Reconciliation

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

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


POST Master Data for Payment

To obtain Master data for Payment, utilise this API.

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

Request Type: POST
Authorization: Bearer Token

Query Parameter
No parameter

Loan Actions - Payment

Request -

Request Body

Response: 200

Payment

[
  {
    "type": "paid_to"
  },
  {
    "type": "payment_mode"
  },
  {
    "type": "payment_account"
  },
  {
    "type": "payment_bank"
  },
  {
    "type": "beneficiary_account_type"
  },
  {
    "type": "payment_account_code"
  }
]

{
  "response": true,
  "data": [
    {
      "payment_mode": {},
      "payment_account": {},
      "payment_account_code": {},
      "paid_to": {},
      "payment_bank": {},
      "beneficiary_account_type": {}
    }
  ],
  "error": null
}


Payment Bank Reconciliation

[]

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



Saving / Initiation Request for Loan Action (Payment)

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

POST Save Service Request

To save data for Payment, utilise this API.

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

Request Type: POST
Authorization: Bearer Token

Query Parameter
No parameter

Loan Actions - Payment

Request Body

Response: 200

Payment

{
  "service_request_type": "payment",
  "service_request_subtype": "0",
  "service_type": "",
  "loan_id": "0",
  "request_data": {
    "paid_to": "0",
    "payment_mode": "String",
    "payment_account": "",
    "payment_date": "2024-02-14",
    "payment_amount": "0",
    "inFavourOf": "String",
    "payment_bank": "",
    "fund_transfer_number": "",
    "bank_recon_ref_identifier": "",
    "dealer_code": "",
    "instrument_date": "2024-02-14",
    "instrument_number": "",
    "beneficiary_account_type": "",
    "beneficiary_account_number": null,
    "payment_account_code": "",
    "ifsc": null,
    "uploadFile": "",
    "payables": [
      {
        "charge_id": null,
        "charge_label": "String",
        "total_outstanding_amount": 0,
        "type": "String",
        "original_amount": 0,
        "charge_definition_id": null,
        "excess_money_id": null,
        "loan_id": null,
        "disbursal_schedule_id": null,
        "charge_code": null,
        "outstanding_amount": 0,
        "amount_in_process": 0,
        "payment_status": null,
        "paid_amount": null,
        "total_paid_amount": null,
        "total_paid_amount_in_process": null,
        "paid_amount_in_process": null,
        "allocated_amount": "0",
        "balance_payable": 0
      }
    ],
    "remarks": "",
    "disbursement_account": null,
    "transaction_date": "2024-02-14"
  },
  "service_request_id": ""
}

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


Payment Bank Reconciliation

{
  "service_request_type": "payment_bank_reconciliation",
  "service_request_subtype": "2",
  "service_type": "",
  "loan_id": "0",
  "request_data": {
    "payment_bank_reconciliation": [],
    "bank_recon_ref_identifier": "",
    "transaction_date": "2024-02-14"
  },
  "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