# GET /api/v1/inventory/forecast/skus/{variant_id}

> Get one SKU's demand forecast detail

- **Tag:** inventory:forecast
- **Operation ID:** `get_sku_forecast_detail_api_v1_inventory_forecast_skus__variant_id__get`

## Description

Return a single SKU's statistical forecast (curve, safety stock, reorder point, order-up-to, accuracy) together with its recent actual weekly demand history, so the UI can overlay history vs forecast with a confidence band. Read-only.

## Authentication

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

## Parameters

- `variant_id` (path, string, required)

## Responses

### 200 — Successful Response

Schema: `SkuForecastDetailResponse`

- `variant_id` (string · required)
- `sku` (string)
- `variant_name` (string)
- `forecast` (SkuForecastItem)
- `history` (array · WeeklyDemandPoint) → `WeeklyDemandPoint`
  - `week_start` (string · required)
  - `units` (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/inventory/forecast/skus/{variant_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/inventory/forecast/skus/{variant_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/inventory/forecast/skus/{variant_id}", headers=headers)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/inventory-forecast/get-sku-forecast-detail
- OpenAPI slice: https://www.ondayzero.com/docs/reference/inventory-forecast/get-sku-forecast-detail/openapi.json
- Other endpoints in **inventory:forecast**: https://www.ondayzero.com/docs/reference/inventory-forecast
