Capital Asset Types

Minimum access level: Full Access.

Attributes

Attribute Description Kind
url The unique identifier for the capital asset type URI
name Name of a user-created custom asset type or one of the system values from the following list:

  • Computer Equipment
  • Fixtures and Fittings
  • Motor Vehicles
  • Other Capital Asset

String
system_default true for default capital asset types, false if it was created by a user Boolean
created_at Creation of the capital asset type (UTC) Timestamp
updated_at When the capital asset type was last updated (UTC) Timestamp

List all capital assets

GET https://api.freeagent.com/v2/capital_asset_types

Response

Status: 200 OK
{
    "capital_asset_types": [
        {
            "url": "https://api.freeagent.com/v2/capital_asset_types/397",
            "name": "Computer Equipment",
            "system_default": true,
            "created_at": "2020-04-22T11:32:24.000Z",
            "updated_at": "2020-04-22T11:32:24.000Z"
        },
        {
            "url": "https://api.freeagent.com/v2/capital_asset_types/398",
            "name": "Fixtures and Fittings",
            "system_default": true,
            "created_at": "2020-04-22T11:32:24.000Z",
            "updated_at": "2020-04-22T11:32:24.000Z"
        },
        {
            "url": "https://api.freeagent.com/v2/capital_asset_types/399",
            "name": "Motor Vehicles",
            "system_default": true,
            "created_at": "2020-04-22T11:32:24.000Z",
            "updated_at": "2020-04-22T11:32:24.000Z"
        },
        {
            "url": "https://api.freeagent.com/v2/capital_asset_types/400",
            "name": "Other Capital Asset",
            "system_default": true,
            "created_at": "2020-04-22T11:32:24.000Z",
            "updated_at": "2020-04-22T11:32:24.000Z"
        },
        {
            "url": "https://api.freeagent.com/v2/capital_asset_types/445",
            "name": "User-Created Type",
            "system_default": false,
            "created_at": "2020-05-20T20:48:05.000Z",
            "updated_at": "2020-05-20T20:48:05.000Z"
        }
    ]
}
Show as XML
<freeagent>
    <capital-asset-types type="array">
        <capital-asset-type>
            <url>https://api.freeagent.com/v2/capital_asset_types/397</url>
            <name>Computer Equipment</name>
            <system-default type="boolean">true</system-default>
            <created-at type="dateTime">2020-04-22T11:32:24Z</created-at>
            <updated-at type="dateTime">2020-04-22T11:32:24Z</updated-at>
        </capital-asset-type>
        <capital-asset-type>
            <url>https://api.freeagent.com/v2/capital_asset_types/398</url>
            <name>Fixtures and Fittings</name>
            <system-default type="boolean">true</system-default>
            <created-at type="dateTime">2020-04-22T11:32:24Z</created-at>
            <updated-at type="dateTime">2020-04-22T11:32:24Z</updated-at>
        </capital-asset-type>
        <capital-asset-type>
            <url>https://api.freeagent.com/v2/capital_asset_types/399</url>
            <name>Motor Vehicles</name>
            <system-default type="boolean">true</system-default>
            <created-at type="dateTime">2020-04-22T11:32:24Z</created-at>
            <updated-at type="dateTime">2020-04-22T11:32:24Z</updated-at>
        </capital-asset-type>
        <capital-asset-type>
            <url>https://api.freeagent.com/v2/capital_asset_types/400</url>
            <name>Other Capital Asset</name>
            <system-default type="boolean">true</system-default>
            <created-at type="dateTime">2020-04-22T11:32:24Z</created-at>
            <updated-at type="dateTime">2020-04-22T11:32:24Z</updated-at>
        </capital-asset-type>
        <capital-asset-type>
            <url>https://api.freeagent.com/v2/capital_asset_types/445</url>
            <name>User-Created Type</name>
            <system-default type="boolean">false</system-default>
            <created-at type="dateTime">2020-05-20T20:48:05Z</created-at>
            <updated-at type="dateTime">2020-05-20T20:48:05Z</updated-at>
        </capital-asset-type>
    </capital-asset-types>
</freeagent>
Show as JSON

Get a single capital asset type

GET https://api.freeagent.com/v2/capital_asset_types/:id

Response

Status: 200 OK
{
    "capital_asset_type": {
        "url": "https://api.freeagent.com/v2/capital_asset_types/397",
        "name": "Computer Equipment",
        "system_default": true,
        "created_at": "2020-04-22T11:32:24.000Z",
        "updated_at": "2020-04-22T11:32:24.000Z"
    }
}
Show as XML
<freeagent>
    <capital-asset-type>
        <url>https://api.freeagent.com/v2/capital_asset_types/397</url>
        <name>Computer Equipment</name>
        <system-default type="boolean">true</system-default>
        <created-at type="dateTime">2020-04-22T11:32:24Z</created-at>
        <updated-at type="dateTime">2020-04-22T11:32:24Z</updated-at>
    </capital-asset-type>
</freeagent>
Show as JSON