# Disburse Loan

To disburse a loan, send a POST request to the endpoint:

<mark style="color:green;">`POST`</mark> `/api/loanaccount/v1/disburseloan`

The request body requires only the `loanAccountNumber`, for disbursement. \
\
A successful request will return a disbursement data, and a success message in the response, allowing for reference to the disbursed loan.\
\
This process facilitates the disbursement of loans to customers and streamlines the management of loan-related activities.

**Headers**

| Name                                            | Value                |
| ----------------------------------------------- | -------------------- |
| Content-Type<mark style="color:red;">\*</mark>  | `application/json`   |
| Authorization<mark style="color:red;">\*</mark> | `Bearer <token>`     |
| Request-Reference                               | `{unique-reference}` |

**Body**

<table><thead><tr><th width="166">Name</th><th width="174">Data Type (length)</th><th width="99" data-type="checkbox">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>loanAccountNumber</code></td><td>string</td><td>true</td><td>The unique number of the loan account to be disbursed</td></tr></tbody></table>

Here is an example request and response with a sample payload sent to the endpoint in Curl format.

<details>

<summary>Sample Request</summary>

```json
curl --location -g '{{baseurl}}/api/loanaccount/v1/disburseloan' \
--header 'Authorization: bearer {token}' \
--header 'request-reference: {unique_reference}' \
--header 'Content-Type: application/json' \
--data '{
  "loanAccountNumber": "string"
}'
```

</details>

<details>

<summary>Respose: <code>200</code></summary>

```json
{
  "status": true,
  "message": "string",
  "data": {
    "statusCode": "string",
    "referenceNumber": "string",
    "instrumentNumber": "string",
    "duration": "string"
  }
}
```

</details>
