curl --request POST \
--url https://api.clemta.com/fixed-assets \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"title": "Office Computer",
"placed_in_service": 1640995200,
"cost": 1500,
"salvage_value": 150,
"business_use": 100,
"company_id": "64b8f1a2e4b0c8d9f0123456"
}
'{
"success": true,
"message": "Fixed asset created 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"
}
}Create a new fixed asset for a company
curl --request POST \
--url https://api.clemta.com/fixed-assets \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"title": "Office Computer",
"placed_in_service": 1640995200,
"cost": 1500,
"salvage_value": 150,
"business_use": 100,
"company_id": "64b8f1a2e4b0c8d9f0123456"
}
'{
"success": true,
"message": "Fixed asset created 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"
}
}| Parameter | Type | Description |
|---|---|---|
| X-API-KEY | string | Formation API Key (required) |
| Content-Type | string | application/json |
{
"title": "Office Computer",
"placed_in_service": 1640995200,
"cost": 1500.00,
"salvage_value": 150.00,
"business_use": 100.0,
"company_id": "64b8f1a2e4b0c8d9f0123456"
}
| Field | Type | Description |
|---|---|---|
| title | string | Title/name of the fixed asset |
| placed_in_service | integer | Timestamp when the asset was placed in service |
| cost | number | Original cost of the fixed asset |
| salvage_value | number | Estimated salvage value of the asset |
| business_use | number | Percentage of business use (0-100) |
| company_id | string | ID of the company this fixed asset belongs to |
{
"success": true,
"message": "Fixed asset created successfully",
"data": {
"id": "64b8f1a2e4b0c8d9f0123456",
"created_at": 1686787200,
"updated_at": 1686787200,
"title": "Office Computer",
"placed_in_service": 1640995200,
"cost": 1500.00,
"salvage_value": 150.00,
"business_use": 100.0,
"fixed_asset_number": 1,
"fixed_asset_number_text": "AST-1"
}
}
| Parameter | Type | Description |
|---|---|---|
| success | boolean | Indicates if the operation was successful |
| message | string | Additional information about the operation |
| data | object | Response data for successful requests |
| data.id | string | Unique identifier for the created asset |
| data.created_at | integer | Creation timestamp |
| data.updated_at | integer | Last update timestamp |
| data.title | string | Title/name of the fixed asset |
| data.placed_in_service | integer | Timestamp when placed in service |
| data.cost | number | Original cost of the asset |
| data.salvage_value | number | Estimated salvage value |
| data.business_use | number | Percentage of business use |
| data.fixed_asset_number | integer | Auto-generated asset number |
| data.fixed_asset_number_text | string | Formatted asset number (e.g., “AST-1”) |
{
"success": false,
"message": "Invalid request data",
"error": {
"code": "VALIDATION_FAILED",
"details": "Field 'title' is required"
}
}
{
"success": false,
"message": "API key is required",
"error": {
"code": "API_KEY_REQUIRED"
}
}
{
"success": false,
"message": "Company not found",
"error": {
"code": "COMPANY_NOT_FOUND"
}
}
{
"success": false,
"message": "Internal server error",
"error": {
"code": "INTERNAL_ERROR"
}
}
Formation API key for authentication.
Title/name of the fixed asset
"Office Computer"
Timestamp when the asset was placed in service
1640995200
Original cost of the fixed asset
1500
Estimated salvage value of the asset
150
Percentage of business use (0-100)
100
Company ID
"64b8f1a2e4b0c8d9f0123456"
Fixed asset created successfully
true
"Fixed asset created successfully"
Show child attributes
{
"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"
}