> For the complete documentation index, see [llms.txt](https://docs.txn.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.txn.io/accounts/listing-account-transactions.md).

# Listing account transactions

<mark style="color:green;">`GET`</mark> `/api/public/v1/accounts/:account_id/transactions`

Returns the ledger of one account: every deposit, payout, exchange leg, transfer and adjustment that moved its balance, newest first by default, with the running `balance` after each entry. Filter by `created_at_from` and `created_at_to` to reconcile a period. To fetch the history of all your accounts in one call, use [Listing transactions](https://docs.txn.io/transactions/listing-transactions.md).

**Headers**

| Name          | Value                      |
| ------------- | -------------------------- |
| Content-Type  | `application/vnd.api+json` |
| Authorization | `Bearer <api_key>`         |

**Path Parameters**

| Name        | Type   | Description |
| ----------- | ------ | ----------- |
| account\_id | string | Account ID. |

**URL Parameters**

<table><thead><tr><th width="183">Name</th><th width="92">Type</th><th>Description</th></tr></thead><tbody><tr><td>order</td><td>string</td><td>Field to sort by. Can be either <code>created_at</code> (default) or <code>updated_at</code>.</td></tr><tr><td>order_type</td><td>string</td><td>Sort direction. Can be either <code>asc</code> or <code>desc</code> (default).</td></tr><tr><td>per_page</td><td>number</td><td>Number of transactions per page to return.</td></tr><tr><td>page</td><td>number</td><td>Page for which you want to return transactions.</td></tr><tr><td>created_at_from</td><td>string</td><td>Return transactions created at or after this ISO 8601 timestamp, e.g. <code>2024-06-18T15:49:02.031Z</code>.</td></tr><tr><td>created_at_to</td><td>string</td><td>Return transactions created at or before this ISO 8601 timestamp, e.g. <code>2024-06-18T15:49:02.031Z</code>.</td></tr></tbody></table>

**cURL**

```bash
curl -G "https://api.sandbox.txn.io/api/public/v1/accounts/13a85b45-8543-41c7-b963-394d4ea128ae/transactions" \
     -H 'Content-Type: application/vnd.api+json' \
     -H 'Authorization: Bearer <api_key>' \
     --data-urlencode 'created_at_from=2026-10-01T00:00:00Z' \
     --data-urlencode 'created_at_to=2026-11-01T00:00:00Z' \
     --data-urlencode 'per_page=100' \
     --data-urlencode 'page=1'
```

**Response**

{% tabs %}
{% tab title="HTTP 200" %}

```json
{
  "data": [
    {
      "id": "601e3c47-2060-4c03-bbb1-d286d942938b",
      "type": "transactions",
      "attributes": {
        "createdAt": "2026-10-30T15:28:44.351Z",
        "simplifiedState": "cancelled",
        "transactionType": "InvoiceTransaction",
        "amount": "23.50",
        "currency": "EUR",
        "balance": "-789.93",
        "reference": "docs-pl-payment-1793374122",
        "accountId": "13a85b45-8543-41c7-b963-394d4ea128ae"
      },
      "relationships": {
        "account": {
          "data": {
            "type": "accounts",
            "id": "13a85b45-8543-41c7-b963-394d4ea128ae"
          }
        },
        "transactionDetails": {
          "meta": {
            "included": false
          }
        },
        "author": {
          "data": {
            "type": "apiKeys",
            "id": "b56961f4-46cf-4e60-bb32-b36addb09f66"
          }
        }
      }
    },
    {
      "id": "1b926dfb-5342-4974-ab49-6f01100a963f",
      "type": "transactions",
      "attributes": {
        "createdAt": "2026-10-29T10:37:42.156Z",
        "simplifiedState": "cancelled",
        "transactionType": "InvoiceTransaction",
        "amount": "7.77",
        "currency": "EUR",
        "balance": "-789.93",
        "reference": "autotest-cb05a2e1-656e-4073-916c-812687f4d826",
        "accountId": "13a85b45-8543-41c7-b963-394d4ea128ae"
      },
      "relationships": {
        "account": {
          "data": {
            "type": "accounts",
            "id": "13a85b45-8543-41c7-b963-394d4ea128ae"
          }
        },
        "transactionDetails": {
          "meta": {
            "included": false
          }
        },
        "author": {
          "data": {
            "type": "apiKeys",
            "id": "9c4b8ebd-ae0b-4812-a97b-92d8359fd1e0"
          }
        }
      }
    }
  ],
  "included": [
    {
      "id": "13a85b45-8543-41c7-b963-394d4ea128ae",
      "type": "accounts",
      "attributes": {
        "master": true,
        "currencyCode": "EUR",
        "label": "master",
        "bankReference": "BDR6421088115176062",
        "balance": "39161.07",
        "totalBalance": null,
        "bankWithdrawalAvailable": true,
        "bankDepositAvailable": true,
        "transferAvailable": true,
        "currencyType": "fiat"
      },
      "relationships": {
        "company": {
          "meta": {
            "included": false
          }
        },
        "networks": {
          "meta": {
            "included": false
          }
        },
        "txnBankCredentials": {
          "meta": {
            "included": false
          }
        }
      }
    },
    {
      "id": "b56961f4-46cf-4e60-bb32-b36addb09f66",
      "type": "apiKeys",
      "attributes": {
        "name": "Test API key",
        "createdAt": "2024-06-17T19:41:33.398Z"
      }
    },
    {
      "id": "9c4b8ebd-ae0b-4812-a97b-92d8359fd1e0",
      "type": "apiKeys",
      "attributes": {
        "name": "Integration key",
        "createdAt": "2025-07-04T08:07:13.549Z"
      }
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 2,
    "total": 160
  },
  "jsonapi": {
    "version": "1.0"
  }
}
```

{% endtab %}
{% endtabs %}

**Response Body**

<table><thead><tr><th>Name</th><th width="99">Type</th><th>Description</th></tr></thead><tbody><tr><td>data[].id</td><td>string</td><td>Transaction ID.</td></tr><tr><td>data[].type</td><td>string</td><td>Entity type returned. Always <code>transactions</code>.</td></tr><tr><td>data[].attributes</td><td>object</td><td>A set of transaction attributes.</td></tr><tr><td>data[].attributes.createdAt</td><td>string</td><td>Transaction creation timestamp in UTC+0. Refer to the <a href="https://docs.txn.io/api-basics/date-and-time-format.md">Date and time format</a> page.</td></tr><tr><td>data[].attributes.simplifiedState</td><td>string</td><td>Transaction status. See <a href="https://docs.txn.io/transactions/listing-transactions.md#transaction-statuses">Transaction statuses</a>.</td></tr><tr><td>data[].attributes.transactionType</td><td>string</td><td>What caused the balance movement. See <a href="https://docs.txn.io/transactions/listing-transactions.md#transaction-types">Transaction types</a>.</td></tr><tr><td>data[].attributes.amount</td><td>string</td><td>Transaction amount.</td></tr><tr><td>data[].attributes.balance</td><td>string</td><td>Account balance immediately after Txn processed this transaction.</td></tr><tr><td>data[].attributes.currency</td><td>string</td><td>Currency code of the transaction. Matches the account currency.</td></tr><tr><td>data[].attributes.reference</td><td>string</td><td>Reference associated with the transaction.</td></tr><tr><td>data[].attributes.accountId</td><td>string</td><td>ID of the account the transaction belongs to. Same value as <code>data[].relationships.account.data.id</code>.</td></tr><tr><td>data[].relationships.account</td><td>object</td><td>The account in the path. <code>data.type</code> is <code>accounts</code>; the entity is returned in <code>included[]</code>.</td></tr><tr><td>data[].relationships.transactionDetails</td><td>object</td><td>The type-specific record behind the transaction. Not expanded (<code>meta.included</code> is <code>false</code>); fetch it with <a href="https://docs.txn.io/accounts/reading-account-transaction.md">Reading account transaction</a>.</td></tr><tr><td>data[].relationships.author</td><td>object</td><td>The API key that created the transaction. <code>data.type</code> is <code>apiKeys</code>; the entity is returned in <code>included[]</code>. <code>data</code> is <code>null</code> for transactions not created through the API, such as incoming deposits and actions taken in the dashboard.</td></tr><tr><td>included[].type(accounts)</td><td>object</td><td>The account in the path (<code>data[].relationships.account</code>).</td></tr><tr><td>included[].type(accounts).attributes.master</td><td>boolean</td><td><code>true</code> for the master account, <code>false</code> for a subaccount.</td></tr><tr><td>included[].type(accounts).attributes.currencyCode</td><td>string</td><td>Account currency code.</td></tr><tr><td>included[].type(accounts).attributes.label</td><td>string</td><td>Account label. Master accounts use <code>master</code>.</td></tr><tr><td>included[].type(accounts).attributes.bankReference</td><td>string</td><td>Unique bank deposit reference of the account.</td></tr><tr><td>included[].type(accounts).attributes.balance</td><td>string</td><td>Account balance at the time of the request.</td></tr><tr><td>included[].type(accounts).attributes.totalBalance</td><td>string</td><td>Always <code>null</code> when the account is returned in <code>included[]</code>. Read the account to get it.</td></tr><tr><td>included[].type(accounts).attributes.bankWithdrawalAvailable</td><td>boolean</td><td>If <code>true</code>, bank withdrawals can be initiated from the account.</td></tr><tr><td>included[].type(accounts).attributes.bankDepositAvailable</td><td>boolean</td><td>If <code>true</code>, the account can receive bank deposits.</td></tr><tr><td>included[].type(accounts).attributes.transferAvailable</td><td>boolean</td><td>If <code>true</code>, the account can send and receive internal transfers.</td></tr><tr><td>included[].type(accounts).attributes.currencyType</td><td>string</td><td><code>fiat</code> or <code>crypto</code>.</td></tr><tr><td>included[].type(accounts).relationships</td><td>object</td><td><code>company</code>, <code>networks</code> and <code>txnBankCredentials</code>: not expanded (<code>meta.included</code> is <code>false</code>).</td></tr><tr><td>included[].type(apiKeys)</td><td>object</td><td>An API key that created one or more of the listed transactions (<code>data[].relationships.author</code>).</td></tr><tr><td>included[].type(apiKeys).attributes.name</td><td>string</td><td>Name of the API key, as set when it was created.</td></tr><tr><td>included[].type(apiKeys).attributes.createdAt</td><td>string</td><td>When the API key was created.</td></tr><tr><td>meta.page</td><td>number</td><td>Current page number. <code>null</code> when no <code>page</code> parameter is supplied.</td></tr><tr><td>meta.per_page</td><td>number</td><td>Page size used for the response.</td></tr><tr><td>meta.total</td><td>number</td><td>Total number of transactions matching the query.</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.txn.io/accounts/listing-account-transactions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
