GET
/
fixed-assets
/
{fixed_asset_id}
Get Fixed Asset by ID
curl --request GET \
  --url https://api.clemta.com/fixed-assets/{fixed_asset_id} \
  --header 'X-API-Key: <api-key>'
{
  "success": true,
  "message": "Fixed asset retrieved successfully",
  "data": {
    "id": "64b8f1a2e4b0c8d9f0123456",
    "created_at": 1640995200,
    "updated_at": 1640995200,
    "title": "Office Computer",
    "placed_in_service": 1640995200,
    "cost": 1500,
    "salvage_value": 150,
    "business_use": 100,
    "fixed_asset_number": 1,
    "fixed_asset_number_text": "AST-1"
  }
}

Get Fixed Asset by ID

This endpoint allows you to retrieve a specific fixed asset by its ID.

Headers

ParameterTypeDescription
X-API-KEYstringFormation API Key (required)

Path Parameters

ParameterTypeDescription
fixed_asset_idstringFixed Asset ID (required)

Parameter Examples

  • Fixed Asset ID: 64b8f1a2e4b0c8d9f0123456

Response

{
  "success": true,
  "message": "Fixed asset retrieved successfully",
  "data": {
    "id": "64b8f1a2e4b0c8d9f0123456",
    "title": "Office Computer",
    "placed_in_service": 1640995200,
    "cost": 1500.0,
    "salvage_value": 150.0,
    "business_use": 100.0,
    "fixed_asset_number": 1,
    "fixed_asset_number_text": "AST-1",
    "created_at": 1640995200,
    "updated_at": 1640995200
  }
}

Response Parameters

ParameterTypeDescription
successbooleanIndicates if the operation was successful
messagestringAdditional information about the operation
dataobjectResponse data for successful requests
data.idstringUnique identifier for the fixed asset
data.titlestringTitle/name of the fixed asset
data.placed_in_serviceintegerTimestamp when asset was placed in service
data.costnumberOriginal cost of the fixed asset
data.salvage_valuenumberEstimated salvage value of the asset
data.business_usenumberPercentage of business use (0-100)
data.fixed_asset_numberintegerAuto-generated fixed asset number
data.fixed_asset_number_textstringFormatted fixed asset number text
data.created_atintegerCreation timestamp
data.updated_atintegerLast update timestamp

Error Responses

Invalid Request (400)

{
  "success": false,
  "message": "Invalid request",
  "error": {
    "code": "INVALID_REQUEST",
    "details": "Invalid fixed asset ID format"
  }
}

Unauthorized (401)

{
  "success": false,
  "message": "API key is required",
  "error": {
    "code": "API_KEY_REQUIRED",
    "details": ""
  }
}

Fixed Asset Not Found (404)

{
  "success": false,
  "message": "Fixed asset not found",
  "error": {
    "code": "FIXED_ASSET_NOT_FOUND",
    "details": ""
  }
}

Internal Server Error (500)

{
  "success": false,
  "message": "Internal server error",
  "error": {
    "code": "INTERNAL_ERROR",
    "details": "An unexpected error occurred."
  }
}

Notes

  • The fixed asset ID must be a valid ObjectID format
  • This endpoint returns detailed information about a single fixed asset
  • All timestamps are returned in Unix timestamp format

Authorizations

X-API-Key
string
header
required

Formation API key for authentication.

Path Parameters

fixed_asset_id
string
required

Fixed Asset ID

Response

200
application/json

Fixed asset retrieved successfully

The response is of type object.