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

> Depreciation schedule matrix

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

## Description

Depreciation pivoted to months across the top and assets down the side.

Each cell is that asset's depreciation for that month, split into what has
already posted and what is still queued. `column_totals` is the subtotal
row along the bottom.

## Authentication

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

## Parameters

- `start_date` (query, string · date, optional) — Earliest period to include (YYYY-MM-DD)
- `end_date` (query, string · date, optional) — Latest period to include (YYYY-MM-DD)
- `include_posted` (query, boolean, optional) — Include already-posted periods
- `include_scheduled` (query, boolean, optional) — Include queued (not yet posted) periods

## Responses

### 200 — Successful Response

Schema: `SuccessEnvelope_DepreciationMatrixResponse_`

- `success` (boolean)
- `message` (string)
- `code` (string)
- `data` (DepreciationMatrixResponse)

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

## See also

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