# Listar wallets

## List Wallets

<mark style="color:blue;">`GET`</mark> `api.vitawallet.io/api/businesses/wallets?page=:page&count=:count`

Este método permite listar todas las wallets del negocio, soporta paginación.

#### Query Parameters

| Name       | Type    | Description                                                 |
| ---------- | ------- | ----------------------------------------------------------- |
| is\_master | boolean | Desea buscar la wallet maestra?                             |
| page       | number  | Numero de pagina.                                           |
| count      | number  | <p>Cantidad de wallets.<br><strong>default: 20</strong></p> |

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

```
{
    "wallets": [
        {
            "uuid": "023d6e20-2e50-43f1-b4c0-0196de0295db",
            "type": "business_wallet",
            "attributes": {
                "token": "iops87eopss478oios",
                "created_at": "2020-03-24T01:31:39.328Z",
                "is_master": false,
                "balances": {
                    "clp": 30880,
                    "btc": 0.000125
                }
            }
        },
        {
            "uuid": "3aaff8b2-c066-4882-bf77-37e9dc796881",
            "type": "business_wallet",
            "attributes": {
                "token": "iops87eopss478oios78",
                "created_at": "2020-03-24T20:46:12.278Z",
                "is_master": false,
                "balances": {
                    "clp": 0,
                    "usd": 3587.25
                }
            }
        }
    ],
    "total": 2,
    "count": 20
}
```

{% endtab %}
{% endtabs %}

### SDK

{% tabs %}
{% tab title="Node" %}
Note que el método **get** puede recibir un parámetro opcional, que ayuda a identificar el número de página que desea obtener y la cantidad de elementos.

```javascript
import Business from 'vita-business-node';

try {
    const wallets = await Business.wallets().get({page, count});
} catch {}
```

{% endtab %}
{% endtabs %}

## Get Wallet

<mark style="color:blue;">`GET`</mark> `api.vitawallet.io/api/businesses/wallets/:uuid`

Este método permite obtener una determinada wallet, mediante su uuid.

#### Path Parameters

| Name | Type   | Description            |
| ---- | ------ | ---------------------- |
| uuid | string | **UUID** de la wallet. |

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

```
{
    "wallet": {
        "uuid": "023d6e20-2e50-43f1-b4c0-0196de0295db",
        "type": "business_wallet",
        "attributes": {
            "token": "iops87eopss478oios",
            "created_at": "2020-03-24T01:31:39.328Z",
            "is_master": false,
            "balances": {
                "clp": 30880
            }
        }
    }
}
```

{% endtab %}
{% endtabs %}

### SDK

{% tabs %}
{% tab title="Node" %}
Note que el módulo **wallets** puede recibir ahora el uuid de la wallet a buscar.

El método **get** es el encargado de hacer la solicitud a los servicios de Vita Business

```javascript
import Business from 'vita-business-node';

try {
    const wallet = await Business.wallets(uuid).get();
} catch {}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://vitawallet.gitbook.io/vita-business-documentation/gestion-de-wallets/listar-wallets.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
