# GET /api/v1/transactions

> List transactions

- **Tag:** transactions
- **Operation ID:** `list_transactions_api_v1_transactions_get`

## Description

Retrieve bank transactions with filtering by date, ledger, source account, counter ledger, journal entry, or tags.

## Authentication

Bearer token in `Authorization` header.
Required header: `x-business-id: <business uuid>`.

## Parameters

- `id` (query, array · string, optional) — Filter by specific transaction UUIDs
- `ledger_id` (query, array · string, optional) — Filter by bank account ledger UUIDs
- `opposing_ledger_id` (query, string, optional) — Filter by opposing ledger UUID (the category/expense ledger from journal entry line entries)
- `source_account_id` (query, array · string, optional) — Filter by Teal source account IDs (bank accounts from Plaid)
- `tag_id` (query, array · string, optional) — Filter by assigned tag UUIDs
- `journal_entry_id` (query, string, optional) — Filter by associated journal entry UUID
- `start_date` (query, string · date-time, optional) — Include transactions from this date (ISO 8601)
- `end_date` (query, string · date-time, optional) — Include transactions up to this date (ISO 8601)
- `search` (query, string, optional) — Search transactions by description or counterparty name (case-insensitive partial match)
- `amount_direction` (query, string, optional) — Filter by amount direction: 'inflow' for positive amounts (money in), 'outflow' for negative amounts (money out)
- `only_uncategorized` (query, boolean, optional) — Filter to show only uncategorized transactions (those without a journal entry or linked to system uncategorized ledgers)
- `missing_counterparty` (query, boolean, optional) — Filter to show only transactions with no counterparty assigned (empty or NULL). Useful for surfacing wires / miscellaneous deposits that the auto-detection pipeline intentionally left blank for the bookkeeper to fill in.
- `review_status` (query, string, optional) — Filter by review status. Accepts 'reviewed', 'unreviewed', or a comma-separated combination. Must mirror the same flag on the export endpoint so the visible list and the exported file stay in sync.
- `reconciled` (query, boolean, optional) — Filter by reconciliation state. `true` returns only reconciled transactions, `false` only unreconciled. Omit for all.
- `posted_status` (query, string, optional) — Filter by bank posting status: 'posted' (cleared activity that affects the books) or 'pending' (unsettled authorizations, read-only awareness layer). Omit to return both.
- `cursor` (query, string, optional) — Cursor for pagination
- `limit` (query, integer, optional) — Pagination limit
- `direction` (query, string, optional) — Pagination direction: 'next' or 'prev'
- `include_total_count` (query, boolean, optional) — Whether to include total count (expensive - avoid if possible)
- `sort_by` (query, string, optional) — Column name to sort by (e.g. 'created_at', 'amount', 'name'). When changing sort, reset cursor to None.
- `descending` (query, boolean, optional) — Sort direction: true for descending (newest/largest first), false for ascending

## Responses

### 200 — Successful Response

Schema: `SuccessEnvelope_TransactionListResponse_`

- `success` (boolean)
- `message` (string)
- `code` (string)
- `data` (TransactionListResponse)

### 401 — Unauthorized - Authentication required

### 403 — Forbidden - Insufficient permissions

### 422 — Validation Error

Schema: `HTTPValidationError`

- `detail` (array · ValidationError) → `ValidationError`
  - `loc` (array · string | integer · required)
  - `msg` (string · required)
  - `type` (string · required)
  - `input` (object)
  - `ctx` (object)

## Code samples

### cURL

```bash
curl -X GET 'https://api.ondayzero.com/api/v1/transactions' \
  -H 'Authorization: Bearer dz_your_token' \
  -H 'x-business-id: YOUR_BUSINESS_ID'
```

### JavaScript

```javascript
const response = await fetch('https://api.ondayzero.com/api/v1/transactions', {
  method: 'GET',
  headers: {
    Authorization: 'Bearer dz_your_token',
    'x-business-id': 'YOUR_BUSINESS_ID',
  },
});
const data = await response.json();
```

### Python

```python
import httpx

headers = {
    "Authorization": "Bearer dz_your_token",
    "x-business-id": "YOUR_BUSINESS_ID",
}

response = httpx.get("https://api.ondayzero.com/api/v1/transactions", headers=headers)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/transactions/list-transactions
- OpenAPI slice: https://www.ondayzero.com/docs/reference/transactions/list-transactions/openapi.json
- Other endpoints in **transactions**: https://www.ondayzero.com/docs/reference/transactions
