Run depreciation

POST /api/v1/fixed-assets/run-depreciation

Run depreciation for a period.

Creates depreciation entries for all active assets (or specified assets) for the given period. Optionally creates journal entries.

Operation ID: run_depreciation_api_v1_fixed_assets_run_depreciation_post · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Request body

period_date string · date required

First day of the month to depreciate

asset_ids array · string

Specific assets (default: all active)

create_journal_entries boolean

Create journal entries for depreciation

Responses

201 Successful Response

period_date string · date required

Depreciation period date

assets_processed integer required

Number of assets depreciated

total_depreciation integer required

Total depreciation amount in cents

entries_created integer required

Depreciation entries created

journal_entries_created integer required

Journal entries created

errors array · string

Errors encountered during processing

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object