# Consult transactions by User's Wallet

### Description:

This endpoint facilitates users in retrieving a list of transactions, both withdrawals and deposits, linked to a specific user's wallet. It is designed to provide a clear and concise view of an individual's transaction history.

**Mode:**

`GET`

#### Node:

```bash
​/third-party-service/method/user/{id}

Note** Replace {id} with the appropriate invoice identifier.
```

<mark style="color:blue;">`GET`</mark> `​/third-party-service/method/user/{id}`

Consult an invoice of a Withdrawal or Deposit by ID

#### Headers

| Name                                         | Type   | Description                            |
| -------------------------------------------- | ------ | -------------------------------------- |
| API-Key<mark style="color:red;">\*</mark>    | String | Your API key for authentication.       |
| API-Secret<mark style="color:red;">\*</mark> | String | Your API secret for enhanced security. |

{% tabs %}
{% tab title="202: Accepted " %}

```json
// 
{
    "statusCode": 202,
    "message": "transactions",
    "data": [
        {
            "invoiceId": "9afbf57b-ad1d-47f2-b16d-860a4d265165",
            "type": "out",
            "id": "8d23f825-0ff6-437a-8351-8b1f3746876d",
            "transaction": "a2c0080a-429b-4513-aff2-22e1486434e6",
            "user": "0x5243C265871a7b62a1CFcdF66Df0AcD514C9880a",
            "kyc": "true",
            "country_withdraw": "MEX",
            "cashout": "BANK",
            "cash_amount": "30.00",
            "currency_pay": "MXN",
            "rate": "17.11",
            "status": "completed",
            "time_estimate_payout": "68000",
            "time_payout": "107807737",
            "commission": "0",
            "KYB": true,
            "date": "2023-09-04T15:17:22.610Z"
        },
        {
            "invoiceId": "fc621a86-54cd-4d8e-93fb-9b653399e043",
            "type": "in",
            "id": "c0bbf46a-ce30-4d13-8d57-8874eea82c3f",
            "transaction": "54647a47-f04b-4841-9b95-9ef91fc11ae4",
            "user": "0x5243C265871a7b62a1CFcdF66Df0AcD514C9880a",
            "kyc": "true",
            "country_withdraw": "ARG",
            "cashout": "BANK",
            "cash_amount": "10.00",
            "currency_pay": "ARS",
            "rate": "17.11",
            "status": "pending",
            "time_estimate_payout": "68000",
            "time_payout": "",
            "commission": "0",
            "KYB": true,
            "date": "2023-09-05T17:25:04.064Z"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

#### Considerations:

When querying for a specific invoice, ensure that the `{id}` in the Node URL is replaced with the appropriate invoice identifier. Always make sure that the provided `api-key` and `api-secret` are accurate and have the necessary permissions to retrieve the invoice details. Approval Invoice has the same Node URL, but different modes, ensure the correct mode is being used.
