> ## Documentation Index
> Fetch the complete documentation index at: https://transfiya.me/llms.txt
> Use this file to discover all available pages before exploring further.

# Tipo 3 Listar transacciones

> Listar transacciones pendientes e historicas

### Listar transferencias pendientes de tipo TYPE3

Obtiene una lista de transferencias pendientes en las que el teléfono del usuario es el receptor.

**GET** `/v1/transfer?labels.type="REQUEST"&source="$userPhone"&labels.status="PENDING"&sortBy=created&sort=desc`

<img src="https://mintcdn.com/minka/s9AlApy9NeaChMwL/images/type3-list-images-one.png?fit=max&auto=format&n=s9AlApy9NeaChMwL&q=85&s=2bcc7d47cb8b0d530bc1a02429ac96e1" alt="Descripción del diagrama" width="377" height="316" data-path="images/type3-list-images-one.png" />

<Tabs>
  <Tab title="C# Example Code">
    ```json theme={null}
    ApiResponse<GetTransfersResponse> response = transferApi.GetTransfersWithCustomQuery("source=$userPhone" + "&labels.type=REQUEST" + "&labels.status=PENDING" + "&sortBy=created" + "&sort=desc");
    ```
  </Tab>

  <Tab title="Nodejs Example Code">
    ```json theme={null}
    var xApiKey = '5b481fc2ae177010e197026ba5b51227c44243cd9a18e41be536566e' // String |

    var Tinapi = require('tinapi_')
    var defaultClient = Tinapi.ApiClient.instance
    // Configure API key authorization: ApiKeyAuth
    var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']
    ApiKeyAuth.apiKey = xApiKey

    const transferApi = new tinapi.TransferApi()
    const customQuery =
      'labels.type=REQUEST&source=$userPhone&labels.status=PENDING&sortBy=created&sort=desc'
    transferApi
      .getTransfers(customQuery)
      .then((transfers) => {
        console.log(transfers)
      })
      .catch(console.log)
    ```
  </Tab>

  <Tab title="Java Example Code">
    ```json theme={null}
    Transfers transfers = sdkApiClient.getTransfersWithCustomQuery("?labels.type=REQUEST&source=$userPhone&labels.status=PENDING&sortBy=created&sort=desc");
    System.out.println(transfers);
    ```
  </Tab>
</Tabs>

### Obtener historial de transferencias recibidas

**GET** `/v1/transfer?labels.type="REQUEST"&targetWallet="$userPhone"&labels.status="COMPLETED"&sortBy=created&sort=desc`

<Tabs>
  <Tab title="Nodejs Example Code">
    ```json theme={null}
    var xApiKey = '5b481fc2ae177010e197026ba5b51227c44243cd9a18e41be536566e' // String |
    var Tinapi = require('tinapi_')
    var defaultClient = Tinapi.ApiClient.instance
    // Configure API key authorization: ApiKeyAuth
    var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']
    ApiKeyAuth.apiKey = xApiKey

    var apiInstance = new Tinapi.ActionApi()
    var type = 'REQUEST' // String |
    var opts = {
      targetWallet: '$userPhone', // String |
      status: 'COMPLETED', // String |
    }
    apiInstance.getTransfers(type, opts).then(
      function (data) {
        console.log('API called successfully. Returned data: ' + data)
        console.log(data)
      },
      function (error) {
        console.error(error)
      },
    )
    ```
  </Tab>

  <Tab title="C# Example Code">
    ```json theme={null}
    string type = "REQUEST";
    string target = "$userPhone";
    string source = null;
    string status = "COMPLETED";
    string xApiKey = "5b481fc2ae177010e197026ba5b51227c44243cd9a18e41be536566e";

    instance.Configuration.AddApiKey("x-api-key", xApiKey);

    var response = instance.GetTransfersWithCustomQuery(type, source, target, status);

    Console.WriteLine(response.Entities.Count);
    Console.WriteLine(response.Entities[0]);
    ```
  </Tab>

  <Tab title="Java Example Code">
    ```json theme={null}
    Transfers transfers = sdkApiClient.getTransfersWithCustomQuery("?targetWallet=$userPhone&labels.type=REQUEST&labels.status=COMPLETED");
    System.out.println(transfers);
    ```
  </Tab>
</Tabs>

### Obtener historial de transferencias enviadas

**GET** `/v1/transfer?labels.type="REQUEST"&source="$userPhone"&labels.status="COMPLETED"&sortBy=created&sort=desc`

<Tabs>
  <Tab title="Node Example Code">
    ```json theme={null}
    var xApiKey = '5b481fc2ae177010e197026ba5b51227c44243cd9a18e41be536566e' // String |
    var Tinapi = require('tin_api')
    var defaultClient = Tinapi.ApiClient.instance
    // Configure API key authorization: ApiKeyAuth
    var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']
    ApiKeyAuth.apiKey = xApiKey

    var apiInstance = new Tinapi.ActionApi()
    var type = 'REQUEST' // String |
    var opts = {
      source: '$userPhone', // String |
      status: 'COMPLETED', // String |
    }
    apiInstance.getTransfers(type, opts).then(
      function (data) {
        console.log('API called successfully. Returned data: ' + data)
        console.log(data)
      },
      function (error) {
        console.error(error)
      },
    )
    ```
  </Tab>

  <Tab title="C# Example Code">
    ```json theme={null}
    string type = "REQUEST";
    string source = "$userPhone";
    string target = null;
    string status = "COMPLETED";
    string xApiKey = "5b481fc2ae177010e197026ba5b51227c44243cd9a18e41be536566e";

    instance.Configuration.AddApiKey("x-api-key", xApiKey);

    var response = instance.GetTransfersWithCustomQuery(type, source, target, status);

    Console.WriteLine(response.Entities.Count);
    Console.WriteLine(response.Entities[0]);
    ```
  </Tab>

  <Tab title="Java Example Code">
    ```json theme={null}
    Transfers transfers = sdkApiClient.getTransfersWithCustomQuery("?source=$userPhone&labels.type=REQUEST&labels.status=COMPLETED");
    System.out.println(transfers);
    ```
  </Tab>
</Tabs>
