Create asset from transactions

POST/api/v1/fixed-assets/from-transactions

Capitalize ledger transactions into a fixed asset.

Creates a fixed asset whose cost basis is the sum of the selected transactions' absolute amounts. All transactions must belong to the business and be assigned to ledger_id (typically an account tagged depreciable/amortizable in the chart of accounts).

Request Body:

  • ledger_id: Ledger the source transactions are assigned to (required)
  • transaction_ids: Transactions to capitalize, at least one (required)
  • name: Asset name, 1-255 chars (required)
  • useful_life_months: Useful life in months, 1-600 (optional, defaults to 60)
  • depreciation_method: straight_line, declining_balance, double_declining, units_of_production (optional, defaults to 'straight_line')
  • in_service_date: In-service date, YYYY-MM-DD (optional, defaults to the latest transaction date)
  • salvage_value: Salvage value in cents (optional, defaults to 0)
  • auto_place_in_service: Place the asset in service immediately so depreciation can start (optional, defaults to true)

Returns: The created asset and its projected depreciation schedule.

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

ledger_idstringrequired

Ledger the source transactions are assigned to

transaction_idsarray · stringrequired

Transactions to capitalize into the asset

namestringrequired

Asset name

useful_life_monthsinteger

Expected useful life in months

depreciation_methodDepreciationMethodDepreciationMethod

Depreciation calculation method

in_service_datestring · date

In-service date (defaults to the latest transaction date when auto-placing in service)

salvage_valueinteger

Estimated salvage value in cents

auto_place_in_serviceboolean

Place the asset in service immediately so depreciation can start (otherwise it is created as a draft)

Responses

201Successful Response

successboolean
messagestring
codestring
dataCreateAssetFromTransactionsResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

404Not Found - Resource does not exist

422Validation Error

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