# Active Loans

## Get Active Loans

<mark style="color:blue;">`GET`</mark> `{{BASE_URL}}/mfi/v1/borrowers/active/:merchant_key`

This endpoint allows a partner with Pezesha to get all their clients active loans&#x20;

#### Query Parameters

| Name                                            | Type   | Description                      |
| ----------------------------------------------- | ------ | -------------------------------- |
| merchant\_key<mark style="color:red;">\*</mark> | string | Merchant key provided by pezesha |

#### Headers

| Name                                             | Type   | Description                                                 |
| ------------------------------------------------ | ------ | ----------------------------------------------------------- |
| Authentication<mark style="color:red;">\*</mark> | string | Authentication token generated from Authentication Endpoint |

{% tabs %}
{% tab title="200 Active loans successfully retrieved." %}

```
{
    "status": 200,
    "response_code": 0,
    "error": false,
    "message": "Active Loans!",
    "data": [
        {
            "loan_id": 10101,
            "channel": "PARTNERCHANNEL",
            "customer_names": "Jane Doe",
            "merchant_id": "merchant_jane",
            "loan_amount": "3000.00",
            "loan_appdate": "2020-01-20 12:33:04",
            "loan_status": "Funded"
        },
        {
            "loan_id": 10102,
            "channel": "PARTNERCHANNEL",
            "customer_names": "John Doe",
            "merchant_id": "merchant_john",
            "loan_amount": "2000.00",
            "loan_appdate": "2020-01-20 12:33:04",
            "loan_status": "Funded"
        }
        ]
}
```

{% endtab %}

{% tab title="404 No Partner active loans found" %}

```
{
    "status": 404,
    "response_code": 0,
    "error": true,
    "message": "No active loans found!"
}
```

{% endtab %}
{% endtabs %}
