# Name Enquiry

The Name Enquiry API empowers developers to verify and validate account holder details with precision. It enables accurate checks on account names associated with specific bank account numbers, ensuring secure and error-free transactions.

Endpoint: GET - {{baseUrl}}/banking/wallet/name-enquiry

{% tabs %}
{% tab title="JavaScript" %}

```javascript
//A code snippet of how to consume the API

var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("Content-Type", "application/json");

var raw = "{\n    \"bank_code\" : 58,\n    \"account_no\": 0161444276\n}";

var requestOptions = {
  method: 'GET',
  headers: myHeaders,
  body: raw,
  redirect: 'follow'
};

fetch("https://demo.backend.monicredit.com/api/v1/banking/wallet/name-enquiry?bank_code=033&account_no=2086860888", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
```

{% endtab %}

{% tab title="PHP" %}

<pre class="language-php"><code class="lang-php">//A code snippet of how to consume the API
<strong>
</strong><strong>&#x3C;?php
</strong>
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://demo.backend.monicredit.com/api/v1/banking/wallet/name-enquiry?bank_code=033&#x26;account_no=2086860888',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_POSTFIELDS =>'{
    "bank_code" : 58,
    "account_no": 0161444276
}',
  CURLOPT_HTTPHEADER => array(
    'Accept: application/json',
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
</code></pre>

{% endtab %}

{% tab title="cURL" %}

```sh
//A code snippet of how to consume the API

curl -X GET \
  '{{baseUrl}}/v1/banking/wallet/name-enquiry?bank_code=033&account_no=2086860888' \
  -H "Accept: application/json" \
```

{% endtab %}
{% endtabs %}

<mark style="color:blue;">`GET`</mark> `{{BaseURL}}/banking/wallet/name/enquiry`

#### Headers

| Name                                            | Type   | Description       |
| ----------------------------------------------- | ------ | ----------------- |
| Authorization<mark style="color:red;">\*</mark> | String | {{bearer\_token}} |

#### Request Body

| Name                                          | Type   | Description |
| --------------------------------------------- | ------ | ----------- |
| bank\_code<mark style="color:red;">\*</mark>  | String | 000         |
| account\_no<mark style="color:red;">\*</mark> | String | 000000      |

{% tabs %}
{% tab title="200: OK " %}

```json
{
    "account_name": "SALAMI MURITALA OLAYIWOLA",
    "account_number": "000000",
    "bank_code": "13",
    "status": 1
}
```

{% endtab %}
{% endtabs %}
