# GET /api/v1/transactions

> List transactions

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

## 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 external 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.
- `counterparty` (query, string, optional) — Only transactions whose counterparty is exactly this name (case-insensitive). Names come from `GET /counterparty-naming/names`. Mirrored on the export.
- `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.
- `source` (query, string, optional) — Filter by transaction origin: 'plaid', 'ramp', 'bulk_upload', 'manual', 'xero', 'quickbooks', or a comma-separated combination. Omit to return every source.
- `has_attachments` (query, boolean, optional) — Filter by attached receipts / documents. `true` returns only transactions with at least one attachment, `false` only those with none (missing receipts). Omit for all.
- `receipt_status` (query, string, optional) — Filter by receipt tracking status: 'attached', 'exempt', 'not_required', 'requested' or 'missing', or a comma-separated combination. Applies the business's receipt policy, so 'missing' means needs a receipt and has none. Mirrored on the export.
- `card_holder` (query, string, optional) — Only the given cardholder's transactions (a Ramp employee, or the card member a bank reports on a multi-card account), by name exactly as `GET /transactions/card-holders` lists it (case-insensitive). Mirrored on the export.
- `rule_id` (query, string, optional) — Only transactions whose current category this bank rule chose (each row's `categorized_by.rule_id`).
- `review_queue` (query, string, optional) — One slice of the review queue: 'uncategorized', 'auto_categorized' (categorized by a rule, pattern or AI) or 'has_match' (a pending invoice/bill payment suggestion). Use with `review_status=unreviewed`; counts via `GET /transactions/review-queue`.
- `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 - Missing or expired token, an MCP OAuth token used against the REST API, or no access to this business

Schema: `ErrorResponse`

- `error` (string · required) — Error category: `validation_error`, `unauthorized`, `forbidden`, `not_found`, `conflict`, `rate_limited`, `server_error`, or `service_unavailable`.
- `message` (string · required) — Human-readable explanation, safe to show to end users.
- `code` (string · required) — Stable machine-readable code in `CATEGORY_NNN` form (e.g. `NOT_FOUND_006`, `AUTH_010`, `GEN_002`).
- `request_id` (string) — Correlation id for support requests. Echoes the `x-request-id` request header when one was supplied.
- `errors` (object) — Field-level validation messages keyed by field name. Present on 400/422 validation failures only.

### 403 — Forbidden - Insufficient permissions

Schema: `ErrorResponse`

- `error` (string · required) — Error category: `validation_error`, `unauthorized`, `forbidden`, `not_found`, `conflict`, `rate_limited`, `server_error`, or `service_unavailable`.
- `message` (string · required) — Human-readable explanation, safe to show to end users.
- `code` (string · required) — Stable machine-readable code in `CATEGORY_NNN` form (e.g. `NOT_FOUND_006`, `AUTH_010`, `GEN_002`).
- `request_id` (string) — Correlation id for support requests. Echoes the `x-request-id` request header when one was supplied.
- `errors` (object) — Field-level validation messages keyed by field name. Present on 400/422 validation failures only.

### 422 — Validation Error

Schema: `ErrorResponse`

- `error` (string · required) — Error category: `validation_error`, `unauthorized`, `forbidden`, `not_found`, `conflict`, `rate_limited`, `server_error`, or `service_unavailable`.
- `message` (string · required) — Human-readable explanation, safe to show to end users.
- `code` (string · required) — Stable machine-readable code in `CATEGORY_NNN` form (e.g. `NOT_FOUND_006`, `AUTH_010`, `GEN_002`).
- `request_id` (string) — Correlation id for support requests. Echoes the `x-request-id` request header when one was supplied.
- `errors` (object) — Field-level validation messages keyed by field name. Present on 400/422 validation failures only.

## 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 (markdown bundle: https://www.ondayzero.com/docs/reference/transactions.md, OpenAPI: https://www.ondayzero.com/docs/reference/transactions/openapi.json)
- Endpoint catalog: https://www.ondayzero.com/docs/reference/index.md
