# GET /api/v1/cfo-projection/scenarios/{scenario_id}/projection

> Compute projection

- **Tag:** cfo-projection
- **Operation ID:** `compute_projection_api_v1_cfo_projection_scenarios__scenario_id__projection_get`

## Description

Compute a full N-month projected income statement from scenario drivers.

## Authentication

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

## Parameters

- `scenario_id` (path, string, required)

## Responses

### 200 — Successful Response

Schema: `ProjectionResponse`

- `scenario_id` (string · required)
- `months` (array · string · required) — Projected month labels
- `revenue` (ProjectionSection · required) → `ProjectionSection`
  - `label` (string · required)
  - `items` (array · ProjectionLineItem · required) → `ProjectionLineItem`
  - `total` (array · integer · required) — Section total per month in cents
  - `grand_total` (integer)
- `cogs` (ProjectionSection · required) → `ProjectionSection`
  - `label` (string · required)
  - `items` (array · ProjectionLineItem · required) → `ProjectionLineItem`
  - `total` (array · integer · required) — Section total per month in cents
  - `grand_total` (integer)
- `gross_profit` (array · integer · required)
- `opex` (ProjectionSection · required) → `ProjectionSection`
  - `label` (string · required)
  - `items` (array · ProjectionLineItem · required) → `ProjectionLineItem`
  - `total` (array · integer · required) — Section total per month in cents
  - `grand_total` (integer)
- `operating_income` (array · integer · required)
- `other_income` (array · ProjectionOtherLineItem) → `ProjectionOtherLineItem`
  - `ledger_id` (string)
  - `name` (string · required)
  - `data` (array · integer · required) — Projected amounts in cents, per month
  - `total` (integer) — Sum across all months
  - `neg` (boolean) — True if expense (negative in net calc)
- `other_expense` (array · ProjectionOtherLineItem) → `ProjectionOtherLineItem`
  - `ledger_id` (string)
  - `name` (string · required)
  - `data` (array · integer · required) — Projected amounts in cents, per month
  - `total` (integer) — Sum across all months
  - `neg` (boolean) — True if expense (negative in net calc)
- `other_net` (array · integer · required)
- `pre_tax_income` (array · integer · required)
- `tax` (array · integer · required)
- `net_income` (array · integer · required)
- `gross_margin_pct` (array · number · required)
- `operating_margin_pct` (array · number · required)
- `net_margin_pct` (array · number · required)

### 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/cfo-projection/scenarios/{scenario_id}/projection' \
  -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/cfo-projection/scenarios/{scenario_id}/projection', {
  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/cfo-projection/scenarios/{scenario_id}/projection", headers=headers)
data = response.json()
```

## See also

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