Fixed Asset Class
The fixed asset class resource.
/fixedAssetClassList fixed asset classes
Retrieve a paginated list of fixed asset classes. Filter, order, and select columns with PostgREST query parameters.
Query parameters
selectstringComma-separated columns to return. Defaults to all.
orderstringColumn to sort by, e.g. `createdAt.desc`.
limitintegerMaximum rows to return.
offsetintegerRows to skip, for pagination.
curl --request GET \
--url 'https://rest.carbon.ms/fixedAssetClass?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'[
{
"id": "abc123def456",
"name": "Example",
"depreciationMethod": "string",
"usefulLifeMonths": 0,
"residualValuePercent": 0,
"assetAccountId": "xyz789",
"accumulatedDepreciationAccountId": "xyz789",
"depreciationExpenseAccountId": "xyz789"
}
]/fixedAssetClassRetrieve a fixed asset class
Fetch a single fixed asset class by filtering on `id`.
Query parameters
idstringMatch on the fixed asset class's `id`, e.g. `eq.{id}`.
curl --request GET \
--url 'https://rest.carbon.ms/fixedAssetClass?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'{
"id": "abc123def456",
"name": "Example",
"depreciationMethod": "string",
"usefulLifeMonths": 0,
"residualValuePercent": 0,
"assetAccountId": "xyz789",
"accumulatedDepreciationAccountId": "xyz789",
"depreciationExpenseAccountId": "xyz789"
}/fixedAssetClassCreate a fixed asset class
Create a new fixed asset class.
Body parameters
namestringrequireddescriptionstringdepreciationMethoddepreciationMethodrequiredusefulLifeMonthsnumberrequiredresidualValuePercentnumberrequiredassetAccountIdstringrequiredReferences account.id
accumulatedDepreciationAccountIdstringrequiredReferences account.id
depreciationExpenseAccountIdstringrequiredReferences account.id
writeOffAccountIdstringrequiredReferences account.id
writeDownAccountIdstringrequiredReferences account.id
disposalAccountIdstringrequiredReferences account.id
taxDepreciationMethodtaxDepreciationMethodtaxUsefulLifeMonthsnumbertaxResidualValuePercentnumbermacrsPropertyClassmacrsPropertyClassmacrsConventionmacrsConventionbonusDepreciationPercentnumbercompanyIdstringrequiredReferences company.id
customFieldsobjectcurl --request POST \
--url https://rest.carbon.ms/fixedAssetClass \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"name":"Example","description":"string","depreciationMethod":"string","usefulLifeMonths":0,"residualValuePercent":0,"assetAccountId":"xyz789","accumulatedDepreciationAccountId":"xyz789","depreciationExpenseAccountId":"xyz789","writeOffAccountId":"xyz789","writeDownAccountId":"xyz789","disposalAccountId":"xyz789","companyId":"xyz789"}'{
"id": "abc123def456",
"name": "Example",
"depreciationMethod": "string",
"usefulLifeMonths": 0,
"residualValuePercent": 0,
"assetAccountId": "xyz789",
"accumulatedDepreciationAccountId": "xyz789",
"depreciationExpenseAccountId": "xyz789"
}/fixedAssetClassUpdate a fixed asset class
Update an existing fixed asset class, matched on `id`.
Body parameters
namestringrequireddescriptionstringdepreciationMethoddepreciationMethodrequiredusefulLifeMonthsnumberrequiredresidualValuePercentnumberrequiredassetAccountIdstringrequiredReferences account.id
accumulatedDepreciationAccountIdstringrequiredReferences account.id
depreciationExpenseAccountIdstringrequiredReferences account.id
writeOffAccountIdstringrequiredReferences account.id
writeDownAccountIdstringrequiredReferences account.id
disposalAccountIdstringrequiredReferences account.id
taxDepreciationMethodtaxDepreciationMethodtaxUsefulLifeMonthsnumbertaxResidualValuePercentnumbermacrsPropertyClassmacrsPropertyClassmacrsConventionmacrsConventionbonusDepreciationPercentnumbercompanyIdstringrequiredReferences company.id
customFieldsobjectcurl --request PATCH \
--url 'https://rest.carbon.ms/fixedAssetClass?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"name":"Example"}'{
"id": "abc123def456",
"name": "Example",
"depreciationMethod": "string",
"usefulLifeMonths": 0,
"residualValuePercent": 0,
"assetAccountId": "xyz789",
"accumulatedDepreciationAccountId": "xyz789",
"depreciationExpenseAccountId": "xyz789"
}/fixedAssetClassDelete a fixed asset class
Delete a fixed asset class, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the fixed asset class to delete, e.g. `eq.{id}`.
curl --request DELETE \
--url 'https://rest.carbon.ms/fixedAssetClass?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'