> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.useroot.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.useroot.com/_mcp/server.

# List bank-reported transactions for a treasury account

GET https://api.useroot.com/api/treasury/accounts/{account_id}/bank-transactions

Returns a paginated list of bank-reported transaction lines for a treasury account.

These records reflect activity supplied by your bank (for example through reconciliation or balance reporting). You cannot create or modify them through the API.

**Path parameters**

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `account_id` | UUID | Yes | Treasury account identifier |

**Query parameters**

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `cursor` | String | No | Pagination cursor from `next_cursor` in a prior response. |
| `limit` | Integer | No | Page size. |
| `order` | String | No | Sort order: `asc` or `desc`. |
| `transaction_date_gte` | DateTime | No | Include transactions on or after this date (inclusive). |
| `transaction_date_lte` | DateTime | No | Include transactions on or before this date (inclusive). |

**Response fields** (each item in `data`)

| Field | Type | Description |
|-------|------|-------------|
| `id` | UUID | Opaque identifier for this ingested bank line. |
| `amount_in_minor_units` | Integer | Transaction amount in the smallest unit of the currency. |
| `currency_code` | String | ISO 4217 currency code. |
| `description` | String | Bank-reported transaction type description. |
| `sender_info` | String | Sender name or reference from bank continuation text, when available. Omitted when unknown. |
| `receiver_info` | String | Receiver name or reference from bank continuation text, when available. Omitted when unknown. |
| `direction` | String | `credit` or `debit`, when known. Omitted when unknown. |
| `transaction_date` | Date | Bank-reported transaction date, when available. Omitted when unknown. |

**Success Responses**

| Status Code | Description |
|-------------|-------------|
| 200 | OK — paginated list of bank-ingested transactions |

**Error Responses**

| Status Code | Error Code | Description |
|-------------|------------|-------------|
| 400 | VALIDATION_ERROR | Invalid query parameters |
| 401 | AUTHENTICATION_ERROR | Authentication credentials are invalid or missing |
| 403 | AUTHORIZATION_ERROR | You do not have permission to perform this action |
| 404 | NOT_FOUND | Treasury account not found |

Reference: https://docs.useroot.com/api-reference/treasury-api/list-treasury-account-bank-transactions

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: '[Code Generated] Root - Instant Account to Account Money Movement'
  version: 1.0.0
paths:
  /api/treasury/accounts/{account_id}/bank-transactions:
    get:
      operationId: list-treasury-account-bank-transactions
      summary: List bank-reported transactions for a treasury account
      description: >-
        Returns a paginated list of bank-reported transaction lines for a
        treasury account.


        These records reflect activity supplied by your bank (for example
        through reconciliation or balance reporting). You cannot create or
        modify them through the API.


        **Path parameters**


        | Parameter | Type | Required | Description |

        |-----------|------|----------|-------------|

        | `account_id` | UUID | Yes | Treasury account identifier |


        **Query parameters**


        | Parameter | Type | Required | Description |

        |-----------|------|----------|-------------|

        | `cursor` | String | No | Pagination cursor from `next_cursor` in a
        prior response. |

        | `limit` | Integer | No | Page size. |

        | `order` | String | No | Sort order: `asc` or `desc`. |

        | `transaction_date_gte` | DateTime | No | Include transactions on or
        after this date (inclusive). |

        | `transaction_date_lte` | DateTime | No | Include transactions on or
        before this date (inclusive). |


        **Response fields** (each item in `data`)


        | Field | Type | Description |

        |-------|------|-------------|

        | `id` | UUID | Opaque identifier for this ingested bank line. |

        | `amount_in_minor_units` | Integer | Transaction amount in the smallest
        unit of the currency. |

        | `currency_code` | String | ISO 4217 currency code. |

        | `description` | String | Bank-reported transaction type description. |

        | `sender_info` | String | Sender name or reference from bank
        continuation text, when available. Omitted when unknown. |

        | `receiver_info` | String | Receiver name or reference from bank
        continuation text, when available. Omitted when unknown. |

        | `direction` | String | `credit` or `debit`, when known. Omitted when
        unknown. |

        | `transaction_date` | Date | Bank-reported transaction date, when
        available. Omitted when unknown. |


        **Success Responses**


        | Status Code | Description |

        |-------------|-------------|

        | 200 | OK — paginated list of bank-ingested transactions |


        **Error Responses**


        | Status Code | Error Code | Description |

        |-------------|------------|-------------|

        | 400 | VALIDATION_ERROR | Invalid query parameters |

        | 401 | AUTHENTICATION_ERROR | Authentication credentials are invalid or
        missing |

        | 403 | AUTHORIZATION_ERROR | You do not have permission to perform this
        action |

        | 404 | NOT_FOUND | Treasury account not found |
      tags:
        - treasuryApi
      parameters:
        - name: account_id
          in: path
          description: Main operating account ID.
          required: true
          schema:
            type: string
            format: uuid
        - name: cursor
          in: query
          description: >-
            Cursor for pagination. Use the next_cursor from the previous
            response to get the next page.
          required: false
          schema:
            type:
              - string
              - 'null'
        - name: limit
          in: query
          description: Number of items to return per page. Maximum is 500.
          required: false
          schema:
            type: integer
            default: 50
        - name: order
          in: query
          description: Sort order for results by creation time.
          required: false
          schema:
            $ref: '#/components/schemas/SortOrder'
        - name: transaction_date_gte
          in: query
          description: Filter to transactions on or after this date (inclusive).
          required: false
          schema:
            type:
              - string
              - 'null'
            format: date-time
        - name: transaction_date_lte
          in: query
          description: Filter to transactions on or before this date (inclusive).
          required: false
          schema:
            type:
              - string
              - 'null'
            format: date-time
        - name: x-api-key
          in: header
          description: >-
            RootPay API key sent in the x-api-key header. Keys are
            environment-scoped: live_* for production, test_* for sandbox.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PaginatedResponse_TreasuryBankTransactionResponse_
servers:
  - url: https://api.useroot.com
    description: Production
components:
  schemas:
    SortOrder:
      type: string
      enum:
        - desc
        - asc
      description: Sort order for pagination endpoints.
      title: SortOrder
    TransferDirection:
      type: string
      enum:
        - credit
        - debit
      description: Transfer direction for bank operations
      title: TransferDirection
    TreasuryBankTransactionResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Opaque identifier for this ingested bank line.
        amount_in_minor_units:
          type: integer
        currency_code:
          type: string
        description:
          type: string
          description: >-
            Human-readable description derived from bank-reported transaction
            data.
        sender_info:
          type:
            - string
            - 'null'
          description: >-
            Sender name or reference extracted from bank-reported continuation
            text.
        receiver_info:
          type:
            - string
            - 'null'
          description: >-
            Receiver name or reference extracted from bank-reported continuation
            text.
        direction:
          oneOf:
            - $ref: '#/components/schemas/TransferDirection'
            - type: 'null'
        transaction_date:
          type:
            - string
            - 'null'
          format: date
      required:
        - id
        - amount_in_minor_units
        - currency_code
        - description
      description: >-
        Bank-reported activity line for a treasury account
        (TreasuryBankTransaction).
      title: TreasuryBankTransactionResponse
    PaginatedResponse_TreasuryBankTransactionResponse_:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/TreasuryBankTransactionResponse'
        has_more:
          type: boolean
        total_count:
          type:
            - integer
            - 'null'
          default: 0
        next_cursor:
          type:
            - string
            - 'null'
        previous_cursor:
          type:
            - string
            - 'null'
      required:
        - data
        - has_more
      title: PaginatedResponse_TreasuryBankTransactionResponse_
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        RootPay API key sent in the x-api-key header. Keys are
        environment-scoped: live_* for production, test_* for sandbox.

```

## Examples



**Request**

```json
{}
```

**Response**

```json
{
  "data": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "amount_in_minor_units": 12500,
      "currency_code": "USD",
      "description": "ACH Credit Payroll Deposit",
      "sender_info": "Acme Corp Payroll",
      "receiver_info": "John Doe",
      "direction": "credit",
      "transaction_date": "2024-05-10"
    }
  ],
  "has_more": true,
  "total_count": 1,
  "next_cursor": "cursor_20240510_001",
  "previous_cursor": "cursor_20240509_050"
}
```

**SDK Code**

```python
import requests

url = "https://api.useroot.com/api/treasury/accounts/account_id/bank-transactions"

payload = {}
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.get(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.useroot.com/api/treasury/accounts/account_id/bank-transactions';
const options = {
  method: 'GET',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.useroot.com/api/treasury/accounts/account_id/bank-transactions"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("GET", url, payload)

	req.Header.Add("x-api-key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.useroot.com/api/treasury/accounts/account_id/bank-transactions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.useroot.com/api/treasury/accounts/account_id/bank-transactions")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.useroot.com/api/treasury/accounts/account_id/bank-transactions', [
  'body' => '{}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.useroot.com/api/treasury/accounts/account_id/bank-transactions");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.useroot.com/api/treasury/accounts/account_id/bank-transactions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```