# GET /accounts/{id}/transactions

Gets a list of transactions for a specified Account. The list of Accounts and ID's can be retrieved from [GET /accounts](/6dot50-apis/accounts/get-accounts.md).

This operation is useful to view a list of debits and credits associated with an account, such as Payments received from users to the Account, as well as settlements.

### Request

Ensure the bearer token is included in the Header of the GET operation:

<table><thead><tr><th width="187">Header</th><th width="144.33333333333331">Mandatory</th><th>Description</th></tr></thead><tbody><tr><td><code>Authorization</code></td><td>Yes</td><td>Bearer token from <a href="/pages/cHEoeOTtlWUGg6JiSd31">/authentication/getToken</a></td></tr></tbody></table>

<table><thead><tr><th width="190">Parameter</th><th width="196">Type</th><th width="125">Mandatory</th><th>Description</th></tr></thead><tbody><tr><td><code>id</code></td><td>String($guid)</td><td>Yes</td><td>The <code>AccountId</code> to query</td></tr><tr><td><code>createdAtFrom</code></td><td>string($date-time)</td><td>No</td><td>Show transactions by their created date from a specific date and time.</td></tr><tr><td><code>createdAtTo</code></td><td>string($date-time)</td><td>No</td><td>Show transactions by their created date to a specific date and time</td></tr><tr><td><code>skip</code></td><td>int</td><td>No</td><td>Items to skip when searching</td></tr><tr><td><code>take</code></td><td>int</td><td>No</td><td>Items to take when searching</td></tr></tbody></table>

### Response

If successful, this operation will return with an array of transactions for the account queried:

```
[
  {
    "id": int($int64),
    "amountDebit": "string",
    "amountCredit": "string",
    "currencyCode": "string",
    "description": "string",
    "createdAt": " string($date-time)"
  }
]
```

<table><thead><tr><th width="204.33333333333331">Field</th><th width="190">Response Type</th><th>Description</th></tr></thead><tbody><tr><td><code>id</code></td><td>int($int64)</td><td>Unique ID of the transaction. This is an internal, sequential identifier for a transaction.</td></tr><tr><td><code>amountDebit</code></td><td>string</td><td>Transaction (debit) amount in cents</td></tr><tr><td><code>amountCredit</code></td><td>string</td><td>Transaction (credit) amount in cents</td></tr><tr><td><code>currencyCode</code></td><td>string</td><td>The Currency Code for the Merchant Account, e.g. DZAR</td></tr><tr><td><code>description</code></td><td>string</td><td>Description for the transaction</td></tr><tr><td><code>createdAt</code></td><td>string($date-time)</td><td>When the transaction was executed</td></tr></tbody></table>

{% code title="Example Response" %}

```
[
  {
    "id": 1917,
    "amountDebit": "0",
    "amountCredit": "10000",
    "currencyCode": "DZAR",
    "description": "Payment received: ref123",
    "createdAt": "2022-09-20T05:51:58.757"
  },
  {
    "id": 1914,
    "amountDebit": "0",
    "amountCredit": "4000",
    "currencyCode": "DZAR",
    "description": "Payment received: 234567",
    "createdAt": "2022-09-19T05:56:23.527"
  },
  {
    "id": 1913,
    "amountDebit": "0",
    "amountCredit": "13000",
    "currencyCode": "DZAR",
    "description": "Payment received: 2345",
    "createdAt": "2022-09-19T05:51:56.043"
  }
]
```

{% endcode %}


---

# 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://6dot50.gitbook.io/6dot50-apis/accounts/get-accounts-id-transactions.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.
