Authorizations
Token-based authentication with required prefix "Token"
Body
Response
201 - application/json
Maximum length:
250
Required range:
-2147483648 <= x <= 2147483647
curl --request POST \
--url https://api.meetcampfire.com/coa/api/fixed-asset-class \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"useful_life": -1,
"asset_account": 123,
"accumulated_depreciation_account": 123,
"depreciation_expense_account": 123
}'
{
"id": 123,
"is_deleted": false,
"deleted_at": "2023-11-07T05:31:56Z",
"asset_account_name": "<string>",
"accumulated_depreciation_account_name": "<string>",
"depreciation_expense_account_name": "<string>",
"name": "<string>",
"useful_life": -1,
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"asset_account": 123,
"accumulated_depreciation_account": 123,
"depreciation_expense_account": 123
}
Complete mixin for history filtering with pagination support. Returns either active OR deleted records based on include_deleted parameter.
curl --request POST \
--url https://api.meetcampfire.com/coa/api/fixed-asset-class \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"useful_life": -1,
"asset_account": 123,
"accumulated_depreciation_account": 123,
"depreciation_expense_account": 123
}'
{
"id": 123,
"is_deleted": false,
"deleted_at": "2023-11-07T05:31:56Z",
"asset_account_name": "<string>",
"accumulated_depreciation_account_name": "<string>",
"depreciation_expense_account_name": "<string>",
"name": "<string>",
"useful_life": -1,
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"asset_account": 123,
"accumulated_depreciation_account": 123,
"depreciation_expense_account": 123
}
Token-based authentication with required prefix "Token"
250
-2147483648 <= x <= 2147483647