# POST /api/v1/transactions/batch/mark-reviewed-by-period

> Mark all unreviewed transactions in a period as reviewed

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

## Description

Bulk-mark every unreviewed transaction whose date falls within [period_start, period_end] as reviewed. Used by the monthly close checklist's 'Mark all reviewed' CTA.

## Authentication

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

## Request body

Schema: `TransactionMarkReviewedByPeriodRequest`

- `period_start` (string · date · required) — Inclusive start date of the period (YYYY-MM-DD).
- `period_end` (string · date · required) — Inclusive end date of the period (YYYY-MM-DD).

## Responses

### 201 — Successful Response

Schema: `TransactionMarkReviewedByPeriodResponse`

- `period_start` (string · date · required)
- `period_end` (string · date · required)
- `marked_count` (integer · required) — Number of transactions transitioned to reviewed.

### 400 — Bad Request - Invalid input

### 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 POST 'https://api.ondayzero.com/api/v1/transactions/batch/mark-reviewed-by-period' \
  -H 'Authorization: Bearer dz_your_token' \
  -H 'x-business-id: YOUR_BUSINESS_ID' \
  -H 'Content-Type: application/json' \
  -d '{
  "period_start": "2026-01-01",
  "period_end": "2026-01-01"
}'
```

### JavaScript

```javascript
const response = await fetch('https://api.ondayzero.com/api/v1/transactions/batch/mark-reviewed-by-period', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer dz_your_token',
    'x-business-id': 'YOUR_BUSINESS_ID',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
  "period_start": "2026-01-01",
  "period_end": "2026-01-01"
}),
});
const data = await response.json();
```

### Python

```python
import httpx

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

payload = {
  "period_start": "2026-01-01",
  "period_end": "2026-01-01"
}

response = httpx.post("https://api.ondayzero.com/api/v1/transactions/batch/mark-reviewed-by-period", headers=headers, json=payload)
data = response.json()
```

## See also

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