# GET /api/v1/businesses/{business_id}/cfo-portal/cash-forecast/versions/{version_id}

> Get a saved cash forecast version

- **Tag:** cfo-portal
- **Operation ID:** `cfo_portal_get_version_api_v1_businesses__business_id__cfo_portal_cash_forecast_versions__version_id__get`

## Description

Get full detail for a saved version, including config + snapshot.

## Authentication

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

## Parameters

- `business_id` (path, string, required)
- `version_id` (path, string, required)

## Responses

### 200 — Successful Response

Schema: `CashForecastVersionDetail`

- `id` (string · required)
- `business_id` (string · required)
- `name` (string · required)
- `description` (string)
- `created_by_user_id` (string)
- `snapshot_as_of` (string · date-time · required)
- `created_at` (string · date-time · required)
- `updated_at` (string · date-time · required)
- `config` (CashForecastVersionConfig) → `CashForecastVersionConfig`
  - `budget_id` (string)
  - `excluded_budget_ledger_ids` (array · string)
  - `weeks` (integer)
  - `one_time_items_snapshot` (array · CashForecastOneTimeItemBase) → `CashForecastOneTimeItemBase` — Snapshot of the one-time items as they existed when the version was saved. Replays against live data don't re-load from the live ``cash_forecast_one_time_items`` table.
- `snapshot_output` (object) — Full ``CashForecast`` JSON captured at save time. Provides a stable historical view that doesn't shift as live data changes.

### 401 — Unauthorized - Authentication required

### 403 — Forbidden - Insufficient permissions

### 404 — Not Found - Resource does not exist

### 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/businesses/{business_id}/cfo-portal/cash-forecast/versions/{version_id}' \
  -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/businesses/{business_id}/cfo-portal/cash-forecast/versions/{version_id}', {
  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/businesses/{business_id}/cfo-portal/cash-forecast/versions/{version_id}", headers=headers)
data = response.json()
```

## See also

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