# 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"  
      }
    }  
  ]
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ledgera.gitbook.io/api/core/transactions/transaction-query.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
