# Retrieve Wallet List

<mark style="color:green;">`GET`</mark> `/wallet/`

Access a full list of available wallets.

**Headers**

| Name         | Value              |
| ------------ | ------------------ |
| Content-Type | `application/json` |
| X-API-KEY    | `<token>`          |

**Response**

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

```json
[
    {
        "id": 0,
        "label": "string",
        "postback_url": "http://example.com",
        "currency": "string",
        "address": "string",
        "created_at": "2019-08-24T14:15:22Z",
        "expires_at": "2019-09-24T14:15:22Z",
    }
]
```

{% endtab %}

{% tab title="422" %}

```json
{
    "detail": [
        {
            "loc": [],
            "msg": "string",
            "type": "string"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

**Example**

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

```bash
curl -X GET "https://api.nord-pay.com/wallet/" \
     -H "Content-Type: application/json" \
     -H "X-API-KEY: YOUR_API_KEY"
```

{% endtab %}

{% tab title="Python (requests)" %}

```python
import requests

def get_wallets():
    response = requests.get(
        "https://api.nord-pay.com/wallet/",
        headers={
            "Content-Type": "application/json",
            "X-API-KEY": "YOUR_API_KEY"
        }
    )
    response.raise_for_status()
    return response.json()

# usage:
wallets = get_wallets()
```

{% endtab %}

{% tab title="PHP" %}

```php
<?php
function getWallets(): array {
    $ch = curl_init("https://api.nord-pay.com/wallet/");
    curl_setopt_array($ch, [
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER     => [
            "Content-Type: application/json",
            "X-API-KEY: YOUR_API_KEY"
        ],
    ]);
    $response = curl_exec($ch);
    curl_close($ch);
    return json_decode($response, true);
}

// usage:
$wallets = getWallets();
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
async function loadWallets() {
  const response = await fetch("https://api.nord-pay.com/wallet/", {
    method: "GET",
    headers: {
      "Content-Type": "application/json",
      "X-API-KEY": "YOUR_API_KEY"
    }
  });
  if (!response.ok) throw new Error(`HTTP ${response.status}`);
  return response.json();
}

// usage:
loadWallets().then(wallets => {
  // work with wallets
});
```

{% endtab %}

{% tab title="Node.js (axios)" %}

```javascript
const axios = require('axios');

async function getWallets() {
  const { data } = await axios.get(
    "https://api.nord-pay.com/wallet/",
    {
      headers: {
        "Content-Type": "application/json",
        "X-API-KEY": "YOUR_API_KEY"
      }
    }
  );
  return data;
}

// usage:
getWallets().then(wallets => {
  // work with wallets
});
```

{% endtab %}
{% endtabs %}
