Skip to main content
POST
/
v1
/
businesses
/
{businessId}
/
assets
/
value-updates
Create an asset value update
curl --request POST \
  --url https://sandbox.layerfi.com/v1/businesses/{businessId}/assets/value-updates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "asset_id": "550e8400-e29b-41d4-a716-446655440000",
  "amount": 1666,
  "update_type": "DEPRECIATION_AMORTIZATION",
  "counter_account": "DEPRECIATION",
  "date": "2024-02-29T00:00:00Z"
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "business_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "amount": 123,
    "date": "2023-11-07T05:31:56Z",
    "transaction_tags": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "key": "ExampleTagKey",
        "value": "ExampleTagValue",
        "dimension_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "definition_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "dimension_display_name": "<string>",
        "value_display_name": "<string>",
        "archived_at": "2023-11-07T05:31:56Z"
      }
    ],
    "external_id": "<string>",
    "archived_at": "2023-11-07T05:31:56Z",
    "memo": "<string>",
    "metadata": {},
    "reference_number": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

businessId
string<uuid>
required

The UUID of the business.

Body

application/json

The value update to create.

Parameters for recording a change to an asset's value (depreciation, improvement, impairment, or revaluation). Identify the asset with either asset_id or asset_external_id. Posts a journal entry between the asset and the counter account.

amount
integer<int64>
required

Amount of the value change, in cents.

update_type
enum<string>
required

The kind of value change applied to an asset. DEPRECIATION_AMORTIZATION, IMPAIRMENT, and REVALUATION_DOWN decrease the asset's carrying value; IMPROVEMENT and REVALUATION_UP increase it. DEPRECIATION_AMORTIZATION requires the asset to have an accumulated_depreciation_account configured.

Available options:
DEPRECIATION_AMORTIZATION,
IMPROVEMENT,
IMPAIRMENT,
REVALUATION_UP,
REVALUATION_DOWN
counter_account
Account ID Ā· object
required

The counter account for the journal entry (e.g. depreciation expense, or the cash/expense account that funded an improvement).

date
string<date-time>
required

Date of the value update.

asset_id
string<uuid> | null

ID of the asset to update. Provide this or asset_external_id.

asset_external_id
string | null

External ID of the asset to update. Provide this or asset_id.

external_id
string | null

Unique ID of the value update in your system for linking purposes.

memo
string | null

Internal note about the value update.

metadata
object

Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.

reference_number
string | null

Reference number for the value update.

Response

201 - application/json

Asset value update created successfully.

data
object
required

A recorded change to an asset's value, such as depreciation, improvement, impairment, or revaluation.