# GET /api/v1/fixed-assets/depreciation-preview

> Preview depreciation

- **Tag:** fixed-assets
- **Operation ID:** `preview_depreciation_api_v1_fixed_assets_depreciation_preview_get`

## Description

Preview the next depreciation run.

Shows which assets will be depreciated and the amounts, without actually
creating the entries.

## Authentication

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

## Parameters

- `period_date` (query, string · date, required) — Period date (first of month)

## Responses

### 200 — Successful Response

Schema: `DepreciationPreviewResponse`

- `period_date` (string · date · required) — Period to preview
- `assets_count` (integer · required) — Number of assets included
- `total_depreciation` (integer · required) — Total projected depreciation in cents
- `entries` (array · DepreciationPreviewEntry · required) → `DepreciationPreviewEntry` — Per-asset depreciation preview
  - `asset_id` (string · required) — Asset ID
  - `asset_name` (string · required) — Asset name
  - `depreciation_amount` (integer · required) — Projected depreciation in cents
  - `new_accumulated` (integer · required) — Projected accumulated depreciation in cents
  - `new_book_value` (integer · required) — Projected book value after depreciation in cents

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

## See also

- HTML version: https://www.ondayzero.com/docs/reference/fixed-assets/preview-depreciation
- OpenAPI slice: https://www.ondayzero.com/docs/reference/fixed-assets/preview-depreciation/openapi.json
- Other endpoints in **fixed-assets**: https://www.ondayzero.com/docs/reference/fixed-assets
