> For the complete documentation index, see [llms.txt](https://docs.advancly.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.advancly.com/aggregator-api-integration/wallet.md).

# Wallet

This endpoint allows the user to search for account details by email.

## Get account details by email

<mark style="color:blue;">`GET`</mark> `{{baseUrl}}/api/v1/wallet/accounts_by_email`

#### Query Parameters

| Name                                           | Type   | Description                                                    |
| ---------------------------------------------- | ------ | -------------------------------------------------------------- |
| CustomerType<mark style="color:red;">\*</mark> | string | user can enter either  "Customer" or "Aggregator" as the value |
| Email<mark style="color:red;">\*</mark>        | string |                                                                |
| Currency                                       | string | values accepted are "NGN' or "USD"                             |

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

```json
{
    "data": [
        {
            "id": 2,
            "targetId": 44,
            "bankName": "Wema",
            "currency": "NGN",
            "accountNumber": "1020156332",
            "acountName": "John Doe",
            "consumerType": "Aggregator",
            "IsDefault": true
        }
    ],
    "Message": "",
    "Status": true,
    "StatusCode": 200
}
```

{% endtab %}

{% tab title="401: Unauthorized " %}

```json
{
    Message = "User does not exist",
    Status = false,
    StatusCode = 401
}
```

{% endtab %}

{% tab title="404: Not Found " %}

```json
{
    Message = "Aggregator does not exist",
    Status = false,
    StatusCode = 404
}
```

{% endtab %}
{% endtabs %}
