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)line_entry_ids: Debit journal-entry lines on ledger_id (e.g. a manual opening-balance JE) to capitalize alongside or instead of transactions (optional)expense_ledger_id: Expense account each period charges; required when the category has none (optional)At least one transaction or line is required.
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 · stringTransactions to capitalize into the asset
line_entry_idsarray · stringJournal-entry lines (debits on ledger_id, e.g. from a manual opening-balance JE) to capitalize alongside or instead of transactions
expense_ledger_idstringExpense account each period charges. Required when the asset's category has no expense account yet; saved on a newly created category, otherwise kept as this asset's override.
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: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.