Create Fixed Asset
Fixed Assets API
Create Fixed Asset
Create a new fixed asset for a company
POST
Create Fixed Asset
Create Fixed Asset
This endpoint allows you to create a new fixed asset for a company.Headers
| Parameter | Type | Description |
|---|---|---|
| X-API-KEY | string | Formation API Key (required) |
Request Body
Request Parameters
| 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 |
Response
Response Parameters
| 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 |
Error Responses
Invalid Request Data (400)
Unauthorized (401)
Company Not Found (404)
Internal Server Error (500)
Notes
- The
placed_in_servicetimestamp should be in Unix timestamp format - The
business_usepercentage must be between 0 and 100 - The
costandsalvage_valueshould be positive numbers - Fixed asset numbers are automatically generated by the system
Authorizations
Formation API key for authentication.
Body
application/json
Title/name of the fixed asset
Example:
"Office Computer"
Timestamp when the asset was placed in service
Example:
1640995200
Original cost of the fixed asset
Example:
1500
Estimated salvage value of the asset
Example:
150
Percentage of business use (0-100)
Example:
100
Company ID
Example:
"64b8f1a2e4b0c8d9f0123456"
Response
Fixed asset created successfully
Example:
true
Example:
"Fixed asset created successfully"
Example:
{
"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"
}