---
title: "Request loan closure"
method: POST
path: "/backend/{gatewayname}/v1/loan/{unityuserid}/closure/{lid}"
---

# Request loan closure

`POST /backend/{gatewayname}/v1/loan/{unityuserid}/closure/{lid}`

The API will initiate the request to close an existing user loan. It will return appropriate errors if, for some reason, loan closure request cannot be initiated

## Path parameters

- `gatewayname` string, required
- `unityuserid` string, required
- `lid` string, required

## Headers

- `x-gateway-secret` string, required
- `x-gateway-authtoken` string, required

## Request body

- object
  - `lender` string, required
  - `securities` object[], required
    - `isin` string, required
    - `quantity` number, double, required
    - `isDemat` boolean
    - `lockInQuantity` number, double — denotes the quantity, which are not available for pledging denotes the units, available for pledging (either of `lienEligibleUnits` or `lockInQuantity` can be passed, `lienEligibleUnits` to be prioritised if both are available))
    - `assetType` 'MUTUALFUND', required
    - `lienEligibleUnits` number, double — denotes the units, available for pledging (either of `lienEligibleUnits` or `lockInQuantity` can be passed, `lienEligibleUnits` to be prioritised if both are available))
    - `dpId` string — 16 digit DP (Depository Participant) ID . Mandatory to be passed for a security with `"isDemat": true`

## Response `200`

200

- object
  - `success` boolean
  - `message` string
  - `data` object

## Other responses

- `400` — 400

---

[API](https://skmtc.dev/smallcase/apis/graph-performance-api.md) · [All operations](https://skmtc.dev/smallcase/apis/graph-performance-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/smallcase/graph-performance-api/revisions/6d2439eafede/schema)
