# Account Statements Query

The account statement can be queried using the GET /account/{id}/journal method. The user will provide the desired period, currency, and pagination for the statement.

The statement will only include entries that affected the _available_ balance type of the specified currency.

The default fields returned in the balance statement are:

| Field                     | Descri                                                            |
| ------------------------- | ----------------------------------------------------------------- |
| _id_                      | The unique identifier of a journal entry record                   |
| _type_                    | The type of record indicating whether it is a _debit_ or _credit_ |
| _transaction\_id_         | Transaction identifier                                            |
| _transaction\_type_       | User transaction type                                             |
| _entry\_id_               | Entry identifier                                                  |
| _entry\_type_             | Entry name                                                        |
| _entry\_order_            | Entry creation order                                              |
| _amount_                  | Entry amount                                                      |
| _balance\_after_          | Balance amount after the record creation                          |
| _balance\_seq\_num_       | Sequential update number of the current balance                   |
| _created\_at_             | Transaction created datetime                                      |
| _settled\_at_             | Transaction reference date (or accounting date)                   |
| _parent\_transaction\_id_ | Parent Transaction Identifier                                     |
| _external\_id_            | The user-assigned identifier at the time of transaction creation  |

Statement query example:

```json
GET /account/19720852-be40-489a-a3b3-985f51a0458c/journal

{
  "date_from": "",
  "date_to": "",
  "currency": "brl",
  "limit": 100,
  "cursor": 0
}
```

Response example:

```json
{
  "metadata": {
    "limit": 100,
    "count": 10,
    "current_cursor": 0,
    "next_cursor": 1
  },
  "data": [
    {
      "id": "912ec803-b2ce-49e4-a541-068d495ab570",
      "type": "credit",
      "transaction_id": "c18be87a-c2db-a527-a47f-63d6105e89e2",
      "transaction_type": "pixIn",
      "entry_id": "82ce4744-f647-f1a5-a320-619d9c85d719",
      "entry_type": "main_amount",
      "entry_order": 1
      "amount": 10000,
      "balance_after": 10000,
      "balance_seq_num": 1,
      "created_at": "2023-06-05T11:26:17.325Z",
      "settled_at": "2023-06-05",
      "parent_transaction_id": "ea355ff5-6a2e-a57e-708c-7ab94e79c7f6",
      "external_id": "teste 1",
      "metadata": {
        "key": "value"  
      }
    }
  ]
}
```
