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) |
{
"title": "Office Computer",
"placed_in_service": 1640995200,
"cost": 1500.0,
"salvage_value": 150.0,
"business_use": 100.0,
"company_id": "64b8f1a2e4b0c8d9f0123456"
}
| Parameter | Type | Required | Description |
|---|---|---|---|
| title | string | Yes | Title/name of the fixed asset |
| placed_in_service | integer | Yes | Timestamp when the asset was placed in service |
| cost | number | Yes | Original cost of the fixed asset |
| salvage_value | number | Yes | Estimated salvage value of the asset |
| business_use | number | Yes | Percentage of business use (0-100) |
| company_id | string | Yes | Company ID that owns the asset |
{
"success": true,
"message": "Fixed asset created 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
}
}
| 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.title | string | Title/name of the fixed asset |
| data.placed_in_service | integer | Timestamp when asset was placed in service |
| data.cost | number | Original cost of the fixed asset |
| data.salvage_value | number | Estimated salvage value of the asset |
| data.business_use | number | Percentage of business use (0-100) |
| data.fixed_asset_number | integer | Auto-generated fixed asset number |
| data.fixed_asset_number_text | string | Formatted fixed asset number text |
| data.created_at | integer | Creation timestamp |
| data.updated_at | integer | Last update timestamp |
{
"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",
"details": ""
}
}
{
"success": false,
"message": "Company not found",
"error": {
"code": "COMPANY_NOT_FOUND",
"details": ""
}
}
{
"success": false,
"message": "Internal server error",
"error": {
"code": "INTERNAL_ERROR",
"details": "An unexpected error occurred."
}
}
placed_in_service timestamp should be in Unix timestamp formatbusiness_use percentage must be between 0 and 100cost and salvage_value should be positive numbersFormation 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"
}