201Successful Response
Schema: SuccessEnvelope_CreateAssetFromTransactionsResponse_
successbooleanmessagestringcodestringdataCreateAssetFromTransactionsResponse
/api/v1/fixed-assets/from-transactionsCapitalize 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.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: CreateAssetFromTransactionsRequest
ledger_idstringrequiredLedger the source transactions are assigned to
transaction_idsarray · stringrequiredTransactions to capitalize into the asset
namestringrequiredAsset name
useful_life_monthsintegerExpected useful life in months
depreciation_methodDepreciationMethodDepreciationMethodDepreciation calculation method
in_service_datestring · dateIn-service date (defaults to the latest transaction date when auto-placing in service)
salvage_valueintegerEstimated salvage value in cents
auto_place_in_servicebooleanPlace the asset in service immediately so depreciation can start (otherwise it is created as a draft)
Schema: SuccessEnvelope_CreateAssetFromTransactionsResponse_
successbooleanmessagestringcodestringdataCreateAssetFromTransactionsResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject