Create fixed asset

POST/api/v1/fixed-assets

Create a new fixed asset.

Request Body:

  • name: Asset name, 1-255 chars (required)
  • purchase_date: Purchase date in YYYY-MM-DD format (required)
  • original_cost: Original cost in cents, must be >= 0 (required)
  • description: Asset description (optional)
  • asset_number: Asset number, max 50 chars (optional)
  • serial_number: Serial number, max 100 chars (optional)
  • salvage_value: Salvage value in cents, must be >= 0 and < original_cost (optional, defaults to 0)
  • useful_life_months: Useful life in months, 1-600 (optional, defaults to 60)
  • depreciation_method: Depreciation method - straight_line, declining_balance, double_declining, units_of_production (optional, defaults to 'straight_line')
  • location: Asset location, max 255 chars (optional)
  • notes: Additional notes (optional)
  • category_id: Asset category UUID (optional)
  • vendor_id: Vendor UUID (optional)
  • in_service_date: Date asset was placed in service, YYYY-MM-DD format (optional)
  • total_expected_units: Total expected units for units_of_production method, must be >= 1 (optional)

Note: The asset starts in 'draft' status. Use POST /fixed-assets/{id}/place-in-service to begin depreciation.

Returns: Created fixed asset.

Operation ID: create_fixed_asset_api_v1_fixed_assets_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

namestringrequired

Asset name

descriptionstring

Asset description

asset_numberstring

User-defined asset tracking number

serial_numberstring

Manufacturer serial number

purchase_datestring · daterequired

Date the asset was purchased

original_costintegerrequired

Purchase cost in cents

salvage_valueinteger

Estimated salvage value in cents

useful_life_monthsinteger

Expected useful life in months

depreciation_methodDepreciationMethodDepreciationMethod

Depreciation calculation method

locationstring

Physical location of the asset

notesstring

Additional notes

category_idstring

Asset category ID

vendor_idstring

Vendor the asset was purchased from

in_service_datestring · date

Date the asset was placed in service (starts depreciation)

total_expected_unitsinteger

Total expected units for units-of-production depreciation

Responses

201Successful Response

successboolean
messagestring
codestring
dataFixedAssetResponse

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject