---
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}`

## Request

- Base URL: `https://api.unity.smallcase.com`
- URL: `https://api.unity.smallcase.com/backend/{gatewayname}/v1/loan/{unityuserid}/closure/{lid}`
- Auth: none required

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/sib-lsp.md) - [All operations](https://skmtc.dev/smallcase/apis/sib-lsp/llms.txt) - [OpenAPI document](https://skmtc.dev/smallcase/apis/sib-lsp/revisions/e943c44c35f5?raw)
