# Loans

Veend Loan API allows you to process customer loans and repayment.

{% hint style="info" %}
**BASE\_URL**

The live (production) environment base URL is [**apply2.veendhq.com**](http://apply2.veendhq.com/)\
The test (sandbox) environment base URL is [<mark style="color:blue;">**api2.veendhq.com**</mark>](https://api2.veendhq.com)
{% endhint %}

### Get Customer Loan Balance

<mark style="color:blue;">`GET`</mark> `{{BASE_URL}}/users/{{USER_ID}}/balance`

#### Headers

| Name                                    | Type       | Description |
| --------------------------------------- | ---------- | ----------- |
| x-tag<mark style="color:red;">\*</mark> | veend-xtag |             |

{% tabs %}
{% tab title="200: OK " %}
Sample Success Response

```postman_json
{
    "status": "success",
    "data": {
        "amount": 50000,
        "totalExpectedRepayment": 56250,
        "totalRepayment": 0,
        "totalOutstanding": 56250
    }
}
```

{% endtab %}
{% endtabs %}

### Get Customer Loan Details

## Get detailed summary of customer loans with your lender\_id

<mark style="color:blue;">`GET`</mark> `{{BASE_URL}}/loans/findMyLoans/find?loanId={{LENDER_ID}}&disbursementStatus=completed`

#### Query Parameters

| Name                                     | Type      | Description                                                  |
| ---------------------------------------- | --------- | ------------------------------------------------------------ |
| loanId<mark style="color:red;">\*</mark> | string    | Lender Id                                                    |
| disbursementStatus                       | completed | This filter returns only disbursed loans if set to completed |
