# Transaction Query

The transactions are queried using the GET /transaction method by providing the following parameters:

| Parameter                      | Data Type | Description                                                                        |
| ------------------------------ | --------- | ---------------------------------------------------------------------------------- |
| _id_                           | _uuid_    | Filter transactions by transaction ID                                              |
| _created\_at\_from_            | _date_    | Filter transactions from a specific date onwards                                   |
| _created\_at\_to_              | _date_    | Filter transactions up to a specific date                                          |
| _settled\_at\_from_            | _date_    | Filter transactions from a specific settlement date onwards                        |
| _settled\_at\_to_              | _date_    | Filter transactions up to a specific settlement date                               |
| _currency_                     | _string_  | Filter transactions with a specific currency                                       |
| _greater\_than\_or\_equal\_to_ | _string_  | Filter transactions with main amounts greater than or equal to the specified value |
| _less\_than\_or\_equal\_to_    | _string_  | Filter transactions with main amounts less than or equal to the specified value    |
| _type_                         | _string_  | Filter transactions by transaction type                                            |

Example of transaction query:

```json
GET /transaction
```

Response example:

```json
{
  "transactions": [
    {
      "id": "96296a5c-0cf4-4025-dbc4-1a53f0a3afc6",
      "type": "pix_out",
      "currency": "brl",
      "amount": 10000,
      "created_at": "2023-06-05T11:26:17.325Z",
      "settled_at": "2023-06-05",
      "parent_id": "ea355ff5-6a2e-a57e-708c-7ab94e79c7f6",    
      "external_id": "our id 1234",
      "metadata": {
        "key": "value"  
      }
    }  
  ]
}
```
