# Retrive Wallets Transactions

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

Get all transactions for all wallets.

**Headers**

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

**Query params**

<table><thead><tr><th width="130">Name</th><th width="150">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>start_date</code></td><td>date, datetime</td><td>Start date for transactions</td></tr><tr><td><code>end_date</code></td><td>date, datetime</td><td>End date for transactions</td></tr></tbody></table>

**Response**

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

```json
[
  {
    "id": 0,
    "source_type": "wallet",
    "source": {
      "id": 0,
      "label": "Order #123",
      "postback_url": null,
      "currency": "USDTBEP20",
      "address": "0x...",
      "created_at": "2025-06-20T15:22:10.345678Z",
      "expires_at": "2025-07-20T15:22:10.345678Z"
    },
    "currency": {
      "name": "USDTBEP20",
      "token": "USDT",
      "network": "BEP20",
      "contract": "0x55d398326f99059fF775485246999027B3197955",
      "decimals": 18,
      "confirmations": 5,
      "network_fee": 0,
      "min_deposit": 1
    },
    "amount": 0,
    "amount_usd": 0,
    "network_fee": 0,
    "network_fee_usd": 0,
    "service_fee": 0,
    "service_fee_usd": 0,
    "tx_hash": "0x...",
    "is_paid": true,
    "is_postback_sended": false,
    "created_at": "2025-06-20T17:22:10.345678Z"
  },
  ...
]
```

{% endtab %}

{% tab title="422" %}

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

{% endtab %}
{% endtabs %}

**Example**

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

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

```bash
curl -X GET "https://api.nord-pay.com/wallet/transactions?start_date=2025-06-01&end_date=2025-06-10" \
     -H "Content-Type: application/json" \
     -H "X-API-KEY: YOUR_API_KEY"
```

{% endtab %}

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

```python
import requests

def get_wallet_transactions(start_date=None, end_date=None):
    url = "https://api.nord-pay.com/wallet/transactions"
    headers = {
        "Content-Type": "application/json",
        "X-API-KEY": "YOUR_API_KEY"
    }
    params = {}
    if start_date:
        params["start_date"] = start_date
    if end_date:
        params["end_date"] = end_date

    resp = requests.get(url, headers=headers, params=params)
    resp.raise_for_status()
    return resp.json()

# usage:
transactions = get_wallet_transactions("2025-06-01", "2025-06-10")
```

{% endtab %}

{% tab title="PHP" %}

```php
<?php
function getWalletTransactions(string $startDate = null, string $endDate = null): array {
    $url = "https://api.nord-pay.com/wallet/transactions";
    $query = [];
    if ($startDate) $query['start_date'] = $startDate;
    if ($endDate)   $query['end_date']   = $endDate;
    if ($query)     $url .= '?' . http_build_query($query);

    $ch = curl_init($url);
    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:
$transactions = getWalletTransactions('2025-06-01', '2025-06-10');
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
async function loadWalletTransactions(startDate, endDate) {
  const params = new URLSearchParams();
  if (startDate) params.append('start_date', startDate);
  if (endDate)   params.append('end_date',   endDate);

  const url = 'https://api.nord-pay.com/wallet/transactions' +
              (params.toString() ? `?${params.toString()}` : '');

  const response = await fetch(url, {
    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:
loadWalletTransactions("2025-06-01", "2025-06-10").then(transactions => {
  // work with transactions
});
```

{% endtab %}

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

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

async function getWalletTransactions(startDate, endDate) {
  const { data } = await axios.get(
    'https://api.nord-pay.com/wallet/transactions',
    {
      headers: {
        'Content-Type': 'application/json',
        'X-API-KEY': 'YOUR_API_KEY'
      },
      params: {
        start_date: startDate,
        end_date: endDate
      }
    }
  );
  return data;
}

// usage:
getWalletTransactions("2025-06-01", "2025-06-10").then(transactions => {
  // work with transactions
});
```

{% endtab %}
{% endtabs %}
