# GET /api/v1/cfo-projection/actuals

> Get trailing actuals

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

## Description

Trailing income statement actuals shaped for the projection page. Pass `start_month`/`end_month` (YYYY-MM) to pin an explicit window; otherwise the last `trailing_months` closed months are returned.

## Authentication

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

## Parameters

- `trailing_months` (query, integer, optional) — Number of trailing months (used when start/end unset)
- `start_month` (query, string, optional) — Inclusive window start in YYYY-MM. Required together with end_month.
- `end_month` (query, string, optional) — Inclusive window end in YYYY-MM. Required together with start_month.
- `hide_zero_rows` (query, boolean, optional) — Exclude line items with all-zero values

## Responses

### 200 — Successful Response

Schema: `ProjectionActualsResponse`

- `months` (array · string · required) — Month labels in display order, e.g. ['Oct 2025', ...]
- `revenue` (array · ActualsLineItem · required) → `ActualsLineItem`
  - `ledger_id` (string · required)
  - `name` (string · required)
  - `data` (array · integer · required) — Per-month amounts in cents, oldest first
- `cogs` (array · ActualsCostLineItem · required) → `ActualsCostLineItem`
  - `ledger_id` (string · required)
  - `name` (string · required)
  - `data` (array · integer · required) — Per-month amounts in cents, oldest first
  - `type` (CostClassification) → `CostClassification`
  - `esc` (number) — Estimated annual escalation for fixed costs
  - `growth` (number) — Estimated MoM growth rate
- `opex` (array · ActualsCostLineItem · required) → `ActualsCostLineItem`
  - `ledger_id` (string · required)
  - `name` (string · required)
  - `data` (array · integer · required) — Per-month amounts in cents, oldest first
  - `type` (CostClassification) → `CostClassification`
  - `esc` (number) — Estimated annual escalation for fixed costs
  - `growth` (number) — Estimated MoM growth rate
- `other` (array · ActualsOtherLineItem · required) → `ActualsOtherLineItem`
  - `ledger_id` (string · required)
  - `name` (string · required)
  - `data` (array · integer · required) — Per-month amounts in cents, oldest first
  - `neg` (boolean) — True if this is an expense (negative)

### 400 — Bad Request - Invalid input

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

## See also

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