Capital Assets

Minimum access level: Banking, unless stated otherwise.

Attributes

Attribute Description Kind
url The unique identifier for the capital asset URI
description Free-text description String
asset_life_years Number of years over which the asset should be depreciated: 2, 3, 4, 5, or 7 Integer
asset_type One of the following:

  • Computer Equipment Purchase
  • Fixtures and Fittings Purchase
  • Motor Vehicle Purchase
  • Other Capital Asset Purchase

String
purchased_on When the asset was purchased, in YYYY-MM-DD format Date
disposed_on When the asset was disposed of, in YYYY-MM-DD format Date
created_at Creation of the capital asset resource (UTC) Timestamp
updated_at When the capital asset resource was last updated (UTC) Timestamp

List all capital assets

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

View filters

GET https://api.freeagent.com/v2/capital_assets?view=all
  • all
  • disposed
  • disposable

Response

Status: 200 OK
{
  "capital_assets": [
    {
      "url": "https://api.freeagent.com/v2/capital_assets/1",
      "description": "Computer",
      "asset_life_years": 2,
      "asset_type": "Computer Equipment Purchase",
      "purchased_on": "2015-10-07",
      "created_at": "2015-12-07T10:19:27.000Z",
      "updated_at": "2015-12-07T10:39:45.000Z"
    },
    {
      "url": "https://api.freeagent.com/v2/capital_assets/2",
      "description": "Productivity suite subscription",
      "asset_life_years": 4,
      "asset_type": "Other Capital Asset Purchase",
      "purchased_on": "2015-10-07",
      "created_at": "2015-12-07T10:20:57.000Z",
      "updated_at": "2015-12-07T10:39:55.000Z"
    },
    {
      "url": "https://api.freeagent.com/v2/capital_assets/3",
      "description": "Workstation",
      "asset_life_years": 2,
      "asset_type": "Computer Equipment Purchase",
      "purchased_on": "2014-10-07",
      "disposed_on": "2015-12-07",
      "created_at": "2014-10-07T10:41:21.000Z",
      "updated_at": "2014-10-07T10:41:43.000Z"
    }
  ]
}
Show as XML
<freeagent>
  <capital-assets type="array">
    <capital-asset>
      <url>https://api.freeagent.com/v2/capital_assets/1</url>
      <description>Computer</description>
      <asset-life-years type="integer">2</asset-life-years>
      <asset-type>Computer Equipment Purchase</asset-type>
      <purchased-on type="date">2015-10-07</purchased-on>
      <created-at type="dateTime">2015-12-07T10:19:27Z</created-at>
      <updated-at type="dateTime">2015-12-07T10:39:45Z</updated-at>
    </capital-asset>
    <capital-asset>
      <url>https://api.freeagent.com/v2/capital_assets/2</url>
      <description>Productivity suite subscription</description>
      <asset-life-years type="integer">4</asset-life-years>
      <asset-type>Other Capital Asset Purchase</asset-type>
      <purchased-on type="date">2015-10-07</purchased-on>
      <created-at type="dateTime">2015-12-07T10:20:57Z</created-at>
      <updated-at type="dateTime">2015-12-07T10:39:55Z</updated-at>
    </capital-asset>
    <capital-asset>
      <url>https://api.freeagent.com/v2/capital_assets/3</url>
      <description>Workstation</description>
      <asset-life-years type="integer">2</asset-life-years>
      <asset-type>Computer Equipment Purchase</asset-type>
      <purchased-on type="date">2014-10-07</purchased-on>
      <disposed-on type="date">2015-12-07</disposed-on>
      <created-at type="dateTime">2014-10-07T10:41:21Z</created-at>
      <updated-at type="dateTime">2014-10-07T10:41:43Z</updated-at>
    </capital-asset>
  </capital-assets>
</freeagent>
Show as JSON

Get a single capital asset

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

Response

Status: 200 OK
{
  "capital_asset": {
    "url": "https://api.freeagent.com/v2/capital_assets/3",
    "description": "Workstation",
    "asset_life_years": 2,
    "asset_type": "Computer Equipment Purchase",
    "purchased_on": "2014-10-07",
    "disposed_on": "2015-12-07",
    "created_at": "2014-10-07T10:41:21.000Z",
    "updated_at": "2014-10-07T10:41:43.000Z"
  }
}
Show as XML
<freeagent>
  <capital-asset>
    <url>https://api.freeagent.com/v2/capital_assets/3</url>
    <description>Workstation</description>
    <asset-life-years type="integer">2</asset-life-years>
    <asset-type>Computer Equipment Purchase</asset-type>
    <purchased-on type="date">2014-10-07</purchased-on>
    <disposed-on type="date">2015-12-07</disposed-on>
    <created-at type="dateTime">2014-10-07T10:41:21Z</created-at>
    <updated-at type="dateTime">2014-10-07T10:41:43Z</updated-at>
  </capital-asset>
</freeagent>
Show as JSON