# POST /api/v1/fixed-assets/{asset_id}/place-in-service

> Place asset in service

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

## Description

Place an asset in service to begin depreciation.

This changes the asset status from 'draft' to 'active' and sets the
in-service date from which depreciation will be calculated.

- `capitalization: "purchase"` (default) posts DR asset / CR Accounts Payable.
- `capitalization: "opening_balance"` is for an asset already on the books
  at go-live: it posts DR asset / CR accumulated (opening amount) / CR
  `offset_ledger_id`, or no journal entry when no offset is given. Only
  months from `go_live_date` on are scheduled, so the opening balance is
  never posted twice.

## Authentication

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

## Parameters

- `asset_id` (path, string, required)

## Request body

Schema: `PlaceInServiceRequest`

- `in_service_date` (string · date · required) — Date asset starts depreciating
- `capitalization` (string) (one of: purchase, opening_balance) — 'purchase' (default) posts DR asset / CR Accounts Payable for the full cost. 'opening_balance' is for an asset already on the books at go-live: it posts against `offset_ledger_id`, or nothing at all when no offset is given.
- `offset_ledger_id` (string) — Opening-balance mode only: the account the opening entry credits (e.g. Opening Balance Equity). Omit to post no journal entry.
- `opening_accumulated_depreciation` (integer) — Opening-balance mode only: depreciation/amortization recognised before go-live, in cents (overrides the asset's stored value)
- `go_live_date` (string · date) — Opening-balance mode only: first month DayZero posts (overrides the asset's stored value)

## Example request

```json
{
  "in_service_date": "2026-02-01"
}
```

## Responses

### 201 — Successful Response

Schema: `SuccessEnvelope_FixedAssetResponse_`

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

### 401 — Unauthorized - Missing or expired token, an MCP OAuth token used against the REST API, or no access to this business

Schema: `ErrorResponse`

- `error` (string · required) — Error category: `validation_error`, `unauthorized`, `forbidden`, `not_found`, `conflict`, `rate_limited`, `server_error`, or `service_unavailable`.
- `message` (string · required) — Human-readable explanation, safe to show to end users.
- `code` (string · required) — Stable machine-readable code in `CATEGORY_NNN` form (e.g. `NOT_FOUND_006`, `AUTH_010`, `GEN_002`).
- `request_id` (string) — Correlation id for support requests. Echoes the `x-request-id` request header when one was supplied.
- `errors` (object) — Field-level validation messages keyed by field name. Present on 400/422 validation failures only.

### 403 — Forbidden - Insufficient permissions

Schema: `ErrorResponse`

- `error` (string · required) — Error category: `validation_error`, `unauthorized`, `forbidden`, `not_found`, `conflict`, `rate_limited`, `server_error`, or `service_unavailable`.
- `message` (string · required) — Human-readable explanation, safe to show to end users.
- `code` (string · required) — Stable machine-readable code in `CATEGORY_NNN` form (e.g. `NOT_FOUND_006`, `AUTH_010`, `GEN_002`).
- `request_id` (string) — Correlation id for support requests. Echoes the `x-request-id` request header when one was supplied.
- `errors` (object) — Field-level validation messages keyed by field name. Present on 400/422 validation failures only.

### 422 — Validation Error

Schema: `ErrorResponse`

- `error` (string · required) — Error category: `validation_error`, `unauthorized`, `forbidden`, `not_found`, `conflict`, `rate_limited`, `server_error`, or `service_unavailable`.
- `message` (string · required) — Human-readable explanation, safe to show to end users.
- `code` (string · required) — Stable machine-readable code in `CATEGORY_NNN` form (e.g. `NOT_FOUND_006`, `AUTH_010`, `GEN_002`).
- `request_id` (string) — Correlation id for support requests. Echoes the `x-request-id` request header when one was supplied.
- `errors` (object) — Field-level validation messages keyed by field name. Present on 400/422 validation failures only.

## Code samples

### cURL

```bash
curl -X POST 'https://api.ondayzero.com/api/v1/fixed-assets/{asset_id}/place-in-service' \
  -H 'Authorization: Bearer dz_your_token' \
  -H 'x-business-id: YOUR_BUSINESS_ID' \
  -H 'Content-Type: application/json' \
  -d '{
  "in_service_date": "2026-02-01"
}'
```

### JavaScript

```javascript
const response = await fetch('https://api.ondayzero.com/api/v1/fixed-assets/{asset_id}/place-in-service', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer dz_your_token',
    'x-business-id': 'YOUR_BUSINESS_ID',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
  "in_service_date": "2026-02-01"
}),
});
const data = await response.json();
```

### Python

```python
import httpx

headers = {
    "Authorization": "Bearer dz_your_token",
    "x-business-id": "YOUR_BUSINESS_ID",
}

payload = {'in_service_date': '2026-02-01'}

response = httpx.post("https://api.ondayzero.com/api/v1/fixed-assets/{asset_id}/place-in-service", headers=headers, json=payload)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/fixed-assets/place-asset-in-service
- OpenAPI slice: https://www.ondayzero.com/docs/reference/fixed-assets/place-asset-in-service/openapi.json
- Other endpoints in **fixed-assets**: https://www.ondayzero.com/docs/reference/fixed-assets (markdown bundle: https://www.ondayzero.com/docs/reference/fixed-assets.md, OpenAPI: https://www.ondayzero.com/docs/reference/fixed-assets/openapi.json)
- Endpoint catalog: https://www.ondayzero.com/docs/reference/index.md
