Retreive Assets

Description

Retrieves a list of assets or a single asset.

Method

GET

Version

3

Response

The asset register can return a list of assets or a single asset. By specifying a GivenNumber in the URL, a single asset will be returned. Not specifying a GivenNumber will return a list of records.

<?xml version="1.0" encoding="UTF-8"?>
<Assets TotalResources="21" TotalPages="1" CurrentPage="1">
 <AssetSubset url="https://api.fortnox.se/3/assets/18">
 <Id>18</Id>
 <Description>Egen tillgång</Description>
 <Status>ACTIVE</Status>
 <StatusId>1</StatusId>
 <Type>Egen avskrivningstyp</Type>
 <TypeId>18</TypeId>
 <AcquisitionValue>15000</AcquisitionValue>
 <AcquisitionDate>2017-10-01</AcquisitionDate>
 <DepreciationFinal/>
 <DepreciatedTo/>
 </AssetSubset>

 <AssetSubset url="https://api.fortnox.se/3/assets/21">
 <Id>21</Id>
 <Description>gfsgfsd</Description>
 <Status>ACTIVE</Status>
 <StatusId>1</StatusId>
 <Type>Egen avskrivningstyp</Type>
 <TypeId>18</TypeId>
 <AcquisitionValue>1200</AcquisitionValue>
 <AcquisitionDate>2017-10-16</AcquisitionDate>
 <DepreciationFinal/>
 <DepreciatedTo/>
 </AssetSubset>
</Assets>
<?xml version="1.0" encoding="UTF-8"?>
<Assets url="https://api.fortnox.se/3/assets/1">
 <Number>1</Number>
 <Description>test</Description>
 <Status>ACTIVE</Status>
 <StatusId>1</StatusId>
 <CostCenter/>
 <Project/>
 <Type>Maskiner</Type>
 <TypeId>7</TypeId>
 <DepreciationMethod>0</DepreciationMethod>
 <AcquisitionValue>1000</AcquisitionValue>
 <DepreciateToResidualValue>32</DepreciateToResidualValue>
 <AcquisitionDate>2016-10-21</AcquisitionDate>
 <AcquisitionStart>2016-10-01</AcquisitionStart>
 <DepreciationFinal>2018-05-31</DepreciationFinal>
 <DepreciatedTo>2017-12-31</DepreciatedTo>
 <ManualOb>0</ManualOb>
 <Notes/>
 <Reference/>
 <Brand/>
 <InsuredNumber/>
 <InsuredWith/>
 <Group/>
 <Room/>
 <Placement/>
 <Department/>
 <History>
 <AssetHistory>
 <Id>24</Id>
 <Date>2016-12-31</Date>
 <EventId>3</EventId>
 <Amount>48</Amount>
 <UserId>1</UserId>
 <UserName>User</UserName>
 <Notes>Planenlig avskrivning t.o.m. 2016-10-31.</Notes>
 <VoucherNumber>2</VoucherNumber>
 <VoucherSeries>G</VoucherSeries>
 <VoucherYear>1</VoucherYear>
 <SupplierInvoice>0</SupplierInvoice>
 </AssetHistory>
 <AssetHistory>
 <Id>25</Id>
 <Date>2016-12-31</Date>
 <EventId>3</EventId>
 <Amount>48</Amount>
 <UserId>1</UserId>
 <UserName>User</UserName>
 <Notes>Planenlig avskrivning t.o.m. 2016-11-30.</Notes>
 <VoucherNumber>2</VoucherNumber>
 <VoucherSeries>G</VoucherSeries>
 <VoucherYear>1</VoucherYear>
 <SupplierInvoice>0</SupplierInvoice>
 </AssetHistory>
 </History>
</Assets>
{
 "MetaInformation": {
 "@TotalResources": 21,
 "@TotalPages": 1,
 "@CurrentPage": 1
 },
 "Assets": [
 {
 "@url": "https://api.fortnox.se/3/assets/18",
 "Id": 18,
 "Description": "Egen tillgång",
 "Status": "ACTIVE",
 "StatusId": 1,
 "Type": "Egen avskrivningstyp",
 "TypeId": 18,
 "AcquisitionValue": 15000,
 "AcquisitionDate": "2017-10-01",
 "DepreciationFinal": null,
 "DepreciatedTo": null
 },
...
 {
 "@url": "https://api.fortnox.se/3/assets/21",
 "Id": 21,
 "Description": "test",
 "Status": "ACTIVE",
 "StatusId": 1,
 "Type": "Egen avskrivningstyp",
 "TypeId": 18,
 "AcquisitionValue": 1200,
 "AcquisitionDate": "2017-10-16",
 "DepreciationFinal": null,
 "DepreciatedTo": null
 }
 ]
}
{
 "Assets": {
 "@url": "https://api.fortnox.se/3/assets/1",
 "Number": "1",
 "Description": "test",
 "Status": "ACTIVE",
 "StatusId": 1,
 "CostCenter": "",
 "Project": "",
 "Type": "Maskiner",
 "TypeId": 7,
 "DepreciationMethod": 0,
 "AcquisitionValue": 1000,
 "DepreciateToResidualValue": 32,
 "AcquisitionDate": "2016-10-21",
 "AcquisitionStart": "2016-10-01",
 "DepreciationFinal": "2018-05-31",
 "DepreciatedTo": "2017-12-31",
 "ManualOb": 0,
 "Notes": "",
 "Reference": "",
 "Brand": "",
 "InsuredNumber": "",
 "InsuredWith": "",
 "Group": "",
 "Room": "",
 "Placement": "",
 "Department": "",
 "History": [
 {
 "Id": 24,
 "Date": "2016-12-31",
 "EventId": 3,
 "Amount": "48",
 "UserId": 1,
 "UserName": "User",
 "Notes": "Planenlig avskrivning t.o.m. 2016-10-31.",
 "VoucherNumber": 2,
 "VoucherSeries": "G",
 "VoucherYear": 1,
 "SupplierInvoice": 0
 },
 {
 "Id": 25,
 "Date": "2016-12-31",
 "EventId": 3,
 "Amount": "48",
 "UserId": 1,
 "UserName": "User",
 "Notes": "Planenlig avskrivning t.o.m. 2016-11-30.",
 "VoucherNumber": 2,
 "VoucherSeries": "G",
 "VoucherYear": 1,
 "SupplierInvoice": 0
 }
 ]
 }
}

Assets depreciation list

Description

Retrieves a list of assets to depreciate.

Method

GET

Version

3

Response

The asset register returns a list of assets to depreciate by specifying a {ToDate} in the URL.

<?xml version="1.0" encoding="UTF-8"?>
<AssetsDepreciation TotalResources="3" TotalPages="1" CurrentPage="1">
   <AssetDepreciationSubset url="https://api.fortnox.se/3/assets/6">
      <Id>6</Id>
      <AccountedValue>5500</AccountedValue>
      <DepreciationAmount>0</DepreciationAmount>
      <DepreciationPeriod>2017-05-01 - 2018-03-31</DepreciationPeriod>
   </AssetDepreciationSubset>
   <AssetDepreciationSubset url="https://api.fortnox.se/3/assets/42">
      <Id>42</Id>
      <AccountedValue>3000</AccountedValue>
      <DepreciationAmount>0</DepreciationAmount>
      <DepreciationPeriod>2017-02-01 - 2018-03-31</DepreciationPeriod>
   </AssetDepreciationSubset>
   <AssetDepreciationSubset url="https://api.fortnox.se/3/assets/40">
      <Id>40</Id>
      <AccountedValue>9490</AccountedValue>
      <DepreciationAmount>0</DepreciationAmount>
      <DepreciationPeriod>2017-02-01 - 2018-03-31</DepreciationPeriod>
   </AssetDepreciationSubset>
</AssetsDepreciation>
{  
   "MetaInformation":{  
      "@TotalResources":3,
      "@TotalPages":1,
      "@CurrentPage":1
   },
   "AssetsDepreciation":[  
      {  
         "@url":"https://api.fortnox.se/3/assets/6",
         "Id":6,
         "AccountedValue":5500,
         "DepreciationAmount":0,
         "DepreciationPeriod":"2017-05-01 - 2018-03-31"
      },
      {  
         "@url":"https://api.fortnox.se/3/assets/42",
         "Id":42,
         "AccountedValue":3000,
         "DepreciationAmount":0,
         "DepreciationPeriod":"2017-02-01 - 2018-03-31"
      },
      {  
         "@url":"https://api.fortnox.se/3/assets/40",
         "Id":40,
         "AccountedValue":9490,
         "DepreciationAmount":0,
         "DepreciationPeriod":"2017-02-01 - 2018-03-31"
      }
   ]
}

Create an Asset

Description

The created asset will be returned if everything succeeded, if there was any problems an error will be returned.

Method

POST

Version

3

Request

The request body should contain a structure of an asset, either in JSON or XML

<Asset>
   <AcquisitionDate>2017-01-01</AcquisitionDate>
   <AcquisitionStart>2017-02-01</AcquisitionStart>
   <AcquisitionValue>3000</AcquisitionValue>
   <DepreciateToResidualValue>0</DepreciateToResidualValue>
   <DepreciationFinal>2020-12-31</DepreciationFinal>
   <DepreciationMethod>0</DepreciationMethod>
   <Description>Laptop Apple MacBook Pro 13 (MB990)</Description>
   <Number>LT790</Number>
   <TypeId>8</TypeId>
</Asset>
{  
   "Asset":{  
      "Number":"LT790",
      "Description":"Laptop Apple MacBook Pro 13 (MB990)",
      "TypeId":8,
      "DepreciationMethod":0,
      "AcquisitionValue":13000,
      "DepreciateToResidualValue":1300,
      "AcquisitionDate":"2017-01-01",
      "AcquisitionStart":"2017-02-01",
      "DepreciationFinal":"2018-12-31"
   }
}

Response

The response should contain the created Asset in either JSON or XML.

<?xml version="1.0" encoding="UTF-8"?>
<Assets url="https://api.fortnox.se/3/assets/35">
   <Id>35</Id>
   <Number>LT790</Number>
   <Description>Laptop Apple MacBook Pro 13 (MB990)</Description>
   <Status>INACTIVE</Status>
   <StatusId>0</StatusId>
   <CostCenter />
   <Project />
   <Type>Inventarier</Type>
   <TypeId>8</TypeId>
   <DepreciationMethod>0</DepreciationMethod>
   <AcquisitionValue>3000</AcquisitionValue>
   <DepreciateToResidualValue>0</DepreciateToResidualValue>
   <AcquisitionDate>2017-01-01</AcquisitionDate>
   <AcquisitionStart>2017-02-01</AcquisitionStart>
   <DepreciationFinal>2020-12-31</DepreciationFinal>
   <DepreciatedTo />
   <ManualOb>0</ManualOb>
   <Notes />
   <Reference />
   <Brand />
   <InsuredNumber />
   <InsuredWith />
   <Group />
   <Room />
   <Placement />
   <Department />
   <History>
      <AssetHistory>
         <Id>397</Id>
         <Date>2017-01-01</Date>
         <EventId>0</EventId>
         <Amount>3000</Amount>
         <UserId>1</UserId>
         <UserName>Test</UserName>
         <Notes>Nyttjandeperiod: 47 månader, Avskrivningsmetod: Rak, Tillgångstyp: 1220 - Inventarier, Avskrivningsstart: 2017-02-01</Notes>
         <VoucherNumber />
         <VoucherSeries />
         <VoucherYear />
         <SupplierInvoice>0</SupplierInvoice>
      </AssetHistory>
   </History>
</Assets>
{  
   "Assets":{  
      "@url":"https://api.fortnox.se/3/assets/34",
      "Id":34,
      "Number":"LT790",
      "Description":"Laptop Apple MacBook Pro 13 (MB990)",
      "Status":"INACTIVE",
      "StatusId":0,
      "CostCenter":"",
      "Project":"",
      "Type":"Inventarier",
      "TypeId":8,
      "DepreciationMethod":0,
      "AcquisitionValue":3000,
      "DepreciateToResidualValue":0,
      "AcquisitionDate":"2017-01-01",
      "AcquisitionStart":"2017-02-01",
      "DepreciationFinal":"2020-12-31",
      "DepreciatedTo":null,
      "ManualOb":0,
      "Notes":"",
      "Reference":"",
      "Brand":"",
      "InsuredNumber":"",
      "InsuredWith":"",
      "Group":"",
      "Room":"",
      "Placement":"",
      "Department":"",
      "History":[  
         {  
            "Id":396,
            "Date":"2017-01-01",
            "EventId":0,
            "Amount":"3000",
            "UserId":1,
            "UserName":"Test",
            "Notes":"Nyttjandeperiod: 47 månader, Avskrivningsmetod: Rak, Tillgångstyp: 1220 - Inventarier, Avskrivningsstart: 2017-02-01",
            "VoucherNumber":null,
            "VoucherSeries":null,
            "VoucherYear":null,
            "SupplierInvoice":0
         }
      ]
   }
}

Update an Asset

Description

The updated asset will be returned if everything succeeded, if there was any problems an error will be returned.

Method

PUT

Version

3

Request

The request body should contain a structure of an asset, either in JSON or XML

<?xml version="1.0" encoding="UTF-8"?>
<Asset>
   <AcquisitionDate>2017-01-01</AcquisitionDate>
   <AcquisitionStart>2017-01-01</AcquisitionStart>
   <AcquisitionValue>4000</AcquisitionValue>
   <DepreciateToResidualValue>0</DepreciateToResidualValue>
   <DepreciationFinal>2021-12-31</DepreciationFinal>
   <DepreciationMethod>0</DepreciationMethod>
   <Description>Laptop Apple MacBook Pro 13 (MB990)</Description>
   <Number>LT10899</Number>
   <TypeId>8</TypeId>
</Asset>
{  
   "Asset":{  
      "AcquisitionDate":"2017-01-01",
      "AcquisitionStart":"2017-01-01",
      "AcquisitionValue":"4000",
      "DepreciateToResidualValue":"0",
      "DepreciationFinal":"2021-12-31",
      "DepreciationMethod":"0",
      "Description":"Laptop Apple MacBook Pro 13 (MB990)",
      "Number":"LT10899",
      "TypeId":"8"
   }
}}

Response

The response should contain the updated Asset in either JSON or XML.

<?xml version="1.0" encoding="UTF-8"?>
<Assets url="https://api.fortnox.se/3/assets/35">
   <Id>35</Id>
   <Number>LT10899</Number>
   <Description>Laptop Apple MacBook Pro 13 (MB990)</Description>
   <Status>INACTIVE</Status>
   <StatusId>0</StatusId>
   <CostCenter />
   <Project />
   <Type>Inventarier</Type>
   <TypeId>8</TypeId>
   <DepreciationMethod>0</DepreciationMethod>
   <AcquisitionValue>4000</AcquisitionValue>
   <DepreciateToResidualValue>0</DepreciateToResidualValue>
   <AcquisitionDate>2017-01-01</AcquisitionDate>
   <AcquisitionStart>2017-01-01</AcquisitionStart>
   <DepreciationFinal>2021-12-31</DepreciationFinal>
   <DepreciatedTo />
   <ManualOb>0</ManualOb>
   <Notes />
   <Reference />
   <Brand />
   <InsuredNumber />
   <InsuredWith />
   <Group />
   <Room />
   <Placement />
   <Department />
   <History>
      <AssetHistory>
         <Id>399</Id>
         <Date>2018-03-14</Date>
         <EventId>11</EventId>
         <Amount>4000</Amount>
         <UserId>1</UserId>
         <UserName>Test</UserName>
         <Notes>Anskaffningsvärde ändrat från 3 000,00 till 4 000,00.</Notes>
         <VoucherNumber />
         <VoucherSeries />
         <VoucherYear />
         <SupplierInvoice>0</SupplierInvoice>
      </AssetHistory>
      <AssetHistory>
         <Id>398</Id>
         <Date>2018-03-14</Date>
         <EventId>15</EventId>
         <Amount>0</Amount>
         <UserId>1</UserId>
         <UserName>Test</UserName>
         <Notes>Nyttjandeperiod ändrat från 47 till 60 månader.</Notes>
         <VoucherNumber />
         <VoucherSeries />
         <VoucherYear />
         <SupplierInvoice>0</SupplierInvoice>
      </AssetHistory>
      <AssetHistory>
         <Id>397</Id>
         <Date>2017-01-01</Date>
         <EventId>0</EventId>
         <Amount>3000</Amount>
         <UserId>1</UserId>
         <UserName>Test</UserName>
         <Notes>Nyttjandeperiod: 47 månader, Avskrivningsmetod: Rak, Tillgångstyp: 1220 - Inventarier, Avskrivningsstart: 2017-02-01</Notes>
         <VoucherNumber />
         <VoucherSeries />
         <VoucherYear />
         <SupplierInvoice>0</SupplierInvoice>
      </AssetHistory>
   </History>
</Assets>
{  
   "Assets":{  
      "@url":"https://api.fortnox.se/3/assets/35",
      "Id":34,
      "Number":"LT10899",
      "Description":"Laptop Apple MacBook Pro 13 (MB990)",
      "Status":"INACTIVE",
      "StatusId":0,
      "CostCenter":"",
      "Project":"",
      "Type":"Inventarier",
      "TypeId":8,
      "DepreciationMethod":0,
      "AcquisitionValue":4000,
      "DepreciateToResidualValue":0,
      "AcquisitionDate":"2017-01-01",
      "AcquisitionStart":"2017-01-01",
      "DepreciationFinal":"2021-12-31",
      "DepreciatedTo":null,
      "ManualOb":0,
      "Notes":"",
      "Reference":"",
      "Brand":"",
      "InsuredNumber":"",
      "InsuredWith":"",
      "Group":"",
      "Room":"",
      "Placement":"",
      "Department":"",
      "History":[  
         {  
            "Id":399,
            "Date":"2018-03-14",
            "EventId":11,
            "Amount":"4000",
            "UserId":1,
            "UserName":"Test",
            "Notes":"Anskaffningsvärde ändrat från 3 000,00 till 4 000,00.",
            "VoucherNumber":null,
            "VoucherSeries":null,
            "VoucherYear":null,
            "SupplierInvoice":0
         },
         {  
            "Id":398,
            "Date":"2018-03-14",
            "EventId":15,
            "Amount":"0",
            "UserId":1,
            "UserName":"Test",
            "Notes":"Nyttjandeperiod ändrat från 47 till 60 månader.",
            "VoucherNumber":null,
            "VoucherSeries":null,
            "VoucherYear":null,
            "SupplierInvoice":0
         },
         {  
            "Id":397,
            "Date":"2017-01-01",
            "EventId":0,
            "Amount":"3000",
            "UserId":1,
            "UserName":"Test",
            "Notes":"Nyttjandeperiod: 47 månader, Avskrivningsmetod: Rak, Tillgångstyp: 1220 - Inventarier, Avskrivningsstart: 2017-02-01",
            "VoucherNumber":null,
            "VoucherSeries":null,
            "VoucherYear":null,
            "SupplierInvoice":0
         }
      ]
   }
}

Delete or Void an Asset

Description

By specifying a {GivenNumber} in the URL a single ‘Not active’ asset or asset with a type ‘Not depreciable ‘ can be deleted. By specifying a {GivenNumber} in the URL a single ‘Active’ or ‘Fully depreciated’ assets can be voided and in this case in request body voiddate should be provided, otherwise it will use todays date.

Method

DELETE

Version

3

Request

<?xml version="1.0" encoding="UTF-8"?>
<Asset>
   <Date>2017-10-01</Date>
</Asset>
{  
   "Asset":{  
      "Date":"2017-10-01"
   }
}

Response

No response body will be returned

Change Manual OB value

Description

Change manual OB value of an asset.

The updated asset will be returned if everything succeeded, if there was any problems an error will be returned.

Method

PUT

Version

3

Request

The request body should contain amount and may have comment, either in JSON or XML.

<?xml version="1.0" encoding="UTF-8"?>
<Asset>
   <Amount>300</Amount>
   <Comment>Possible comment</Comment>
</Asset>
{  
   "Asset":{  
      "Amount":300,
      "Comment":"Possible comment"
   }
}

Response

The response should contain the updated Asset in either JSON or XML.

<?xml version="1.0" encoding="UTF-8"?>
<Assets url="https://api.fortnox.se/3/assets/32">
   <Id>32</Id>
   <Number>7899</Number>
   <Description>1</Description>
   <Status>INACTIVE</Status>
   <StatusId>0</StatusId>
   <CostCenter />
   <Project />
   <Type>Inventarier</Type>
   <TypeId>8</TypeId>
   <DepreciationMethod>0</DepreciationMethod>
   <AcquisitionValue>10000</AcquisitionValue>
   <DepreciateToResidualValue>1000</DepreciateToResidualValue>
   <AcquisitionDate>2017-01-01</AcquisitionDate>
   <AcquisitionStart>2017-02-01</AcquisitionStart>
   <DepreciationFinal>2018-12-31</DepreciationFinal>
   <DepreciatedTo />
   <ManualOb>300</ManualOb>
   <Notes />
   <Reference />
   <Brand />
   <InsuredNumber />
   <InsuredWith />
   <Group />
   <Room />
   <Placement />
   <Department />
   <History>
      <AssetHistory>
         <Id>410</Id>
         <Date>2018-03-14</Date>
         <EventId>7</EventId>
         <Amount>300</Amount>
         <UserId>1</UserId>
         <UserName>Test</UserName>
         <Notes>IB-värde ändrat från 300,00 till 300,00. some comment</Notes>
         <VoucherNumber />
         <VoucherSeries />
         <VoucherYear />
         <SupplierInvoice>0</SupplierInvoice>
      </AssetHistory>
      <AssetHistory>
         <Id>409</Id>
         <Date>2018-03-14</Date>
         <EventId>7</EventId>
         <Amount>300</Amount>
         <UserId>1</UserId>
         <UserName>Test</UserName>
         <Notes>IB-värde ändrat från 0,00 till 300,00. Possible comment</Notes>
         <VoucherNumber />
         <VoucherSeries />
         <VoucherYear />
         <SupplierInvoice>0</SupplierInvoice>
      </AssetHistory>
      <AssetHistory>
         <Id>394</Id>
         <Date>2017-01-01</Date>
         <EventId>0</EventId>
         <Amount>10000</Amount>
         <UserId>1</UserId>
         <UserName>Test</UserName>
         <Notes>Nyttjandeperiod: 23 månader, Avskrivningsmetod: Rak, Tillgångstyp: 1220 - Inventarier, Beräknat restvärde: 1 000,00, Avskrivningsstart: 2017-02-01</Notes>
         <VoucherNumber />
         <VoucherSeries />
         <VoucherYear />
         <SupplierInvoice>0</SupplierInvoice>
      </AssetHistory>
   </History>
</Assets>
{  
   "Assets":{  
      "@url":"https://api.fortnox.se/3/assets/32",
      "Id":"32",
      "Number":"7899",
      "Description":"1",
      "Status":"INACTIVE",
      "StatusId":0,
      "CostCenter":"",
      "Project":"",
      "Type":"Inventarier",
      "TypeId":8,
      "DepreciationMethod":0,
      "AcquisitionValue":10000,
      "DepreciateToResidualValue":1000,
      "AcquisitionDate":"2017-01-01",
      "AcquisitionStart":"2017-02-01",
      "DepreciationFinal":"2018-12-31",
      "DepreciatedTo":null,
      "ManualOb":300,
      "Notes":"",
      "Reference":"",
      "Brand":"",
      "InsuredNumber":"",
      "InsuredWith":"",
      "Group":"",
      "Room":"",
      "Placement":"",
      "Department":"",
      "History":[  
         {  
            "Id":409,
            "Date":"2018-03-14",
            "EventId":7,
            "Amount":"300",
            "UserId":1,
            "UserName":"Test",
            "Notes":"IB-värde ändrat från 0,00 till 300,00. Possible comment",
            "VoucherNumber":null,
            "VoucherSeries":null,
            "VoucherYear":null,
            "SupplierInvoice":0
         },
         {  
            "Id":394,
            "Date":"2017-01-01",
            "EventId":0,
            "Amount":"10000",
            "UserId":1,
            "UserName":"Test",
            "Notes":"Nyttjandeperiod: 23 månader, Avskrivningsmetod: Rak, Tillgångstyp: 1220 - Inventarier, Beräknat restvärde: 1 000,00, Avskrivningsstart: 2017-02-01",
            "VoucherNumber":null,
            "VoucherSeries":null,
            "VoucherYear":null,
            "SupplierInvoice":0
         }
      ]
   }
}

Write up an Asset

Description

The updated asset will be returned if everything succeeded, if there was any problems an error will be returned.

Method

PUT

Version

3

Request

The request body should contain write up date, amount and may contain any comment.

<?xml version="1.0" encoding="UTF-8"?>
<Asset>
   <Amount>300</Amount>
   <Comment>Possible comment</Comment>
   <Date>2017-10-01</Date>
</Asset>
{  
   "Asset":{  
      "Amount":300,
      "Comment":"Possible comment"
      "Date": "2017-10-01"
   }
}

Response

The response should contain the updated Asset in either JSON or XML.

<?xml version="1.0" encoding="UTF-8"?>
<Assets url="https://api.fortnox.se/3/assets/18">
   <Id>18</Id>
   <Number>18</Number>
   <Description>test 16</Description>
   <Status>ACTIVE</Status>
   <StatusId>1</StatusId>
   <CostCenter />
   <Project />
   <Type>Inventarier</Type>
   <TypeId>8</TypeId>
   <DepreciationMethod>0</DepreciationMethod>
   <AcquisitionValue>1000</AcquisitionValue>
   <DepreciateToResidualValue>0</DepreciateToResidualValue>
   <AcquisitionDate>2017-01-01</AcquisitionDate>
   <AcquisitionStart>2017-01-01</AcquisitionStart>
   <DepreciationFinal>2018-12-31</DepreciationFinal>
   <DepreciatedTo>2017-04-30</DepreciatedTo>
   <ManualOb>300</ManualOb>
   <Notes />
   <Reference />
   <Brand />
   <InsuredNumber />
   <InsuredWith />
   <Group />
   <Room />
   <Placement />
   <Department />
   <History>
      <AssetHistory>
         <Id>413</Id>
         <Date>2017-10-01</Date>
         <EventId>1</EventId>
         <Amount>300</Amount>
         <UserId>1</UserId>
         <UserName>Test</UserName>
         <Notes>Uppskrivning från 532,00 till 832,00. Possible comment</Notes>
         <VoucherNumber>97</VoucherNumber>
         <VoucherSeries>G</VoucherSeries>
         <VoucherYear>1</VoucherYear>
         <SupplierInvoice>0</SupplierInvoice>
      </AssetHistory>
   </History>
</Assets>
{  
   "Assets":{  
      "@url":"https://api.fortnox.se/3/assets/18",
      "Id":18,
      "Number":"18",
      "Description":"test 16",
      "Status":"ACTIVE",
      "StatusId":1,
      "CostCenter":"",
      "Project":"",
      "Type":"Inventarier",
      "TypeId":8,
      "DepreciationMethod":0,
      "AcquisitionValue":1000,
      "DepreciateToResidualValue":0,
      "AcquisitionDate":"2017-01-01",
      "AcquisitionStart":"2017-01-01",
      "DepreciationFinal":"2018-12-31",
      "DepreciatedTo":"2017-04-30",
      "ManualOb":300,
      "Notes":"",
      "Reference":"",
      "Brand":"",
      "InsuredNumber":"",
      "InsuredWith":"",
      "Group":"",
      "Room":"",
      "Placement":"",
      "Department":"",
      "History":[  
         {  
            "Id":413,
            "Date":"2017-10-01",
            "EventId":1,
            "Amount":"300",
            "UserId":1,
            "UserName":"Test",
            "Notes":"Uppskrivning från 532,00 till 832,00. Possible comment",
            "VoucherNumber":97,
            "VoucherSeries":"G",
            "VoucherYear":1,
            "SupplierInvoice":0
         }
      ]
   }
}

Write down an Asset

Description

The updated asset will be returned if everything succeeded, if there was any problems an error will be returned.

Method

PUT

Version

3

Request

The request body should contain write down date, amount and may contain any comment.

<?xml version="1.0" encoding="UTF-8"?>
<Asset>
   <Amount>300</Amount>
   <Comment>Possible comment</Comment>
   <Date>2017-10-01</Date>
</Asset>
{  
   "Asset":{  
      "Amount":300,
      "Comment":"Possible comment"
      "Date": "2017-10-01"
   }
}

Response

The response should contain the updated Asset in either JSON or XML.

<?xml version="1.0" encoding="UTF-8"?>
<Assets url="https://api.fortnox.se/3/assets/18">
   <Id>18</Id>
   <Number>18</Number>
   <Description>test 16</Description>
   <Status>ACTIVE</Status>
   <StatusId>1</StatusId>
   <CostCenter />
   <Project />
   <Type>Inventarier</Type>
   <TypeId>8</TypeId>
   <DepreciationMethod>0</DepreciationMethod>
   <AcquisitionValue>1000</AcquisitionValue>
   <DepreciateToResidualValue>0</DepreciateToResidualValue>
   <AcquisitionDate>2017-01-01</AcquisitionDate>
   <AcquisitionStart>2017-01-01</AcquisitionStart>
   <DepreciationFinal>2018-12-31</DepreciationFinal>
   <DepreciatedTo>2017-04-30</DepreciatedTo>
   <ManualOb>300</ManualOb>
   <Notes />
   <Reference />
   <Brand />
   <InsuredNumber />
   <InsuredWith />
   <Group />
   <Room />
   <Placement />
   <Department />
   <History>
      <AssetHistory>
         <Id>415</Id>
         <Date>2017-10-01</Date>
         <EventId>2</EventId>
         <Amount>300</Amount>
         <UserId>1</UserId>
         <UserName>Test</UserName>
         <Notes>Nedskrivning från 1 132,00 till 832,00. Possible comment</Notes>
         <VoucherNumber>99</VoucherNumber>
         <VoucherSeries>G</VoucherSeries>
         <VoucherYear>1</VoucherYear>
         <SupplierInvoice>0</SupplierInvoice>
      </AssetHistory>
   </History>
</Assets>
{  
   "Assets":{  
      "@url":"https://api.fortnox.se/3/assets/18",
      "Id":18,
      "Number":"18",
      "Description":"test 16",
      "Status":"ACTIVE",
      "StatusId":1,
      "CostCenter":"",
      "Project":"",
      "Type":"Inventarier",
      "TypeId":8,
      "DepreciationMethod":0,
      "AcquisitionValue":1000,
      "DepreciateToResidualValue":0,
      "AcquisitionDate":"2017-01-01",
      "AcquisitionStart":"2017-01-01",
      "DepreciationFinal":"2018-12-31",
      "DepreciatedTo":"2017-04-30",
      "ManualOb":300,
      "Notes":"",
      "Reference":"",
      "Brand":"",
      "InsuredNumber":"",
      "InsuredWith":"",
      "Group":"",
      "Room":"",
      "Placement":"",
      "Department":"",
      "History":[  
         {  
            "Id":415,
            "Date":"2017-10-01",
            "EventId":2,
            "Amount":"300",
            "UserId":1,
            "UserName":"Test",
            "Notes":"Nedskrivning från 1 132,00 till 832,00. Possible comment",
            "VoucherNumber":99,
            "VoucherSeries":"G",
            "VoucherYear":1,
            "SupplierInvoice":0
         }
      ]
   }
}

Scrap an Asset

Description

The updated asset will be returned if everything succeeded, if there was any problems an error will be returned.

Method

PUT

Version

3

Request

The request body should contain scrap date and may have any comment. For full scrap Percentage value should be 0 or may be omitted, for partial scrap Percentage value should be greater than zero.

<?xml version="1.0" encoding="UTF-8"?>
<Asset>
   <Percentage>30</Percentage>
   <Comment>Comment about scrapping action</Comment>
   <Date>2017-10-01</Date>
</Asset>
{  
   "Asset":{  
      "Percentage":30,
      "Comment":"Comment about scrapping action",
      "Date":"2017-10-01"
   }
}

Response

The response should contain the updated Asset in either JSON or XML.

<?xml version="1.0" encoding="UTF-8"?>
<Assets url="https://api.fortnox.se/3/assets/34">
   <Id>34</Id>
   <Number>108</Number>
   <Description>laptop MacBookPro</Description>
   <Status>INACTIVE</Status>
   <StatusId>0</StatusId>
   <CostCenter />
   <Project />
   <Type>Inventarier</Type>
   <TypeId>8</TypeId>
   <DepreciationMethod>0</DepreciationMethod>
   <AcquisitionValue>1470</AcquisitionValue>
   <DepreciateToResidualValue>0</DepreciateToResidualValue>
   <AcquisitionDate>2017-01-01</AcquisitionDate>
   <AcquisitionStart>2017-02-01</AcquisitionStart>
   <DepreciationFinal>2020-12-31</DepreciationFinal>
   <DepreciatedTo />
   <ManualOb>0</ManualOb>
   <Notes />
   <Reference />
   <Brand />
   <InsuredNumber />
   <InsuredWith />
   <Group />
   <Room />
   <Placement />
   <Department />
   <History>
      <AssetHistory>
         <Id>396</Id>
         <Date>2017-01-01</Date>
         <EventId>0</EventId>
         <Amount>3000</Amount>
         <UserId>1</UserId>
         <UserName>Test</UserName>
         <Notes>Nyttjandeperiod: 47 månader, Avskrivningsmetod: Rak, Tillgångstyp: 1220 - Inventarier, Avskrivningsstart: 2017-02-01</Notes>
         <VoucherNumber />
         <VoucherSeries />
         <VoucherYear />
         <SupplierInvoice>0</SupplierInvoice>
      </AssetHistory>
      <AssetHistory>
         <Id>424</Id>
         <Date>2017-10-01</Date>
         <EventId>10</EventId>
         <Amount>900</Amount>
         <UserId>1</UserId>
         <UserName>Test</UserName>
         <Notes>30,00 % utrangerad till ett värde av 900,00. Comment about scrapping action</Notes>
         <VoucherNumber />
         <VoucherSeries />
         <VoucherYear />
         <SupplierInvoice>0</SupplierInvoice>
      </AssetHistory>
   </History>
</Assets>
{  
   "Assets":{  
      "@url":"https://api.fortnox.se/3/assets/34",
      "Id":34,
      "Number":"108",
      "Description":"laptop MacBookPro",
      "Status":"INACTIVE",
      "StatusId":0,
      "CostCenter":"",
      "Project":"",
      "Type":"Inventarier",
      "TypeId":8,
      "DepreciationMethod":0,
      "AcquisitionValue":2100,
      "DepreciateToResidualValue":0,
      "AcquisitionDate":"2017-01-01",
      "AcquisitionStart":"2017-02-01",
      "DepreciationFinal":"2020-12-31",
      "DepreciatedTo":null,
      "ManualOb":0,
      "Notes":"",
      "Reference":"",
      "Brand":"",
      "InsuredNumber":"",
      "InsuredWith":"",
      "Group":"",
      "Room":"",
      "Placement":"",
      "Department":"",
      "History":[  
         {  
            "Id":424,
            "Date":"2017-10-01",
            "EventId":10,
            "Amount":"900",
            "UserId":1,
            "UserName":"Test",
            "Notes":"30,00 % utrangerad till ett värde av 900,00. Comment about scrapping action",
            "VoucherNumber":null,
            "VoucherSeries":null,
            "VoucherYear":null,
            "SupplierInvoice":0
         },
         {  
            "Id":396,
            "Date":"2017-01-01",
            "EventId":0,
            "Amount":"3000",
            "UserId":1,
            "UserName":"Test",
            "Notes":"Nyttjandeperiod: 47 månader, Avskrivningsmetod: Rak, Tillgångstyp: 1220 - Inventarier, Avskrivningsstart: 2017-02-01",
            "VoucherNumber":null,
            "VoucherSeries":null,
            "VoucherYear":null,
            "SupplierInvoice":0
         }
      ]
   }
}

Sell an Asset

Description

Partial sell or full sell of an asset

Method

PUT

Version

3

Request

The request body should contain sell date, price and may have any comment. For full sell percentage value should be 0 or may be omitted, for partial sell percentage value should be greater than zero.

<?xml version="1.0" encoding="UTF-8"?>
<Asset>
   <Percentage>0</Percentage>
   <Price>700</Price>
   <Comment>Comment about sell action</Comment>
   <Date>2017-10-01</Date>
</Asset>
{  
   "Asset":{  
      "Percentage":30,
      "Price":700,
      "Comment":"Comment about sell action",
      "Date":"2017-10-01"
   }
}

Response

The response should contain the updated Asset in either JSON or XML.

<?xml version="1.0" encoding="UTF-8"?>
<Assets url="https://api.fortnox.se/3/assets/41">
   <Id>41</Id>
   <Number>LT790</Number>
   <Description>Laptop Apple MacBook Pro 13" (MB990)</Description>
   <Status>SCRAPPED</Status>
   <StatusId>3</StatusId>
   <CostCenter />
   <Project />
   <Type>Inventarier</Type>
   <TypeId>8</TypeId>
   <DepreciationMethod>0</DepreciationMethod>
   <AcquisitionValue>13000</AcquisitionValue>
   <DepreciateToResidualValue>1300</DepreciateToResidualValue>
   <AcquisitionDate>2017-01-01</AcquisitionDate>
   <AcquisitionStart>2017-02-01</AcquisitionStart>
   <DepreciationFinal>2018-12-31</DepreciationFinal>
   <DepreciatedTo />
   <ManualOb>0</ManualOb>
   <Notes />
   <Reference />
   <Brand />
   <InsuredNumber />
   <InsuredWith />
   <Group />
   <Room />
   <Placement />
   <Department />
   <History>
      <AssetHistory>
         <Id>442</Id>
         <Date>2017-10-01</Date>
         <EventId>5</EventId>
         <Amount>13000</Amount>
         <UserId>1</UserId>
         <UserName>Test</UserName>
         <Notes>Förlust 13 000,00. Comment about sell action</Notes>
         <VoucherNumber>110</VoucherNumber>
         <VoucherSeries>G</VoucherSeries>
         <VoucherYear>1</VoucherYear>
         <SupplierInvoice>0</SupplierInvoice>
      </AssetHistory>
      <AssetHistory>
         <Id>437</Id>
         <Date>2017-01-01</Date>
         <EventId>0</EventId>
         <Amount>13000</Amount>
         <UserId>1</UserId>
         <UserName>Test</UserName>
         <Notes>Nyttjandeperiod: 23 månader, Avskrivningsmetod: Rak, Tillgångstyp: 1220 - Inventarier, Beräknat restvärde: 1 300,00, Avskrivningsstart: 2017-02-01</Notes>
         <VoucherNumber />
         <VoucherSeries />
         <VoucherYear />
         <SupplierInvoice>0</SupplierInvoice>
      </AssetHistory>
   </History>
</Assets>
{  
   "Assets":{  
      "@url":"https://api.fortnox.se/3/assets/40",
      "Id":40,
      "Number":"LT789",
      "Description":"Laptop Apple MacBook Pro 13\" (MB990)",
      "Status":"INACTIVE",
      "StatusId":0,
      "CostCenter":"",
      "Project":"",
      "Type":"Inventarier",
      "TypeId":8,
      "DepreciationMethod":0,
      "AcquisitionValue":9100,
      "DepreciateToResidualValue":910,
      "AcquisitionDate":"2017-01-01",
      "AcquisitionStart":"2017-02-01",
      "DepreciationFinal":"2018-12-31",
      "DepreciatedTo":null,
      "ManualOb":0,
      "Notes":"",
      "Reference":"",
      "Brand":"",
      "InsuredNumber":"",
      "InsuredWith":"",
      "Group":"",
      "Room":"",
      "Placement":"",
      "Department":"",
      "History":[  
         {  
            "Id":441,
            "Date":"2017-10-01",
            "EventId":9,
            "Amount":"3900",
            "UserId":1,
            "UserName":"Test",
            "Notes":"30,00 % avyttrad. Bokfört värde före avyttring: 13 000,00. Bokfört värde av avyttrad del: 3 900,00. Avyttrad del har tillgångsnr 7904. Comment about sell action",
            "VoucherNumber":null,
            "VoucherSeries":null,
            "VoucherYear":null,
            "SupplierInvoice":0
         },
         {  
            "Id":436,
            "Date":"2017-01-01",
            "EventId":0,
            "Amount":"13000",
            "UserId":1,
            "UserName":"Test",
            "Notes":"Nyttjandeperiod: 23 månader, Avskrivningsmetod: Rak, Tillgångstyp: 1220 - Inventarier, Beräknat restvärde: 1 300,00, Avskrivningsstart: 2017-02-01",
            "VoucherNumber":null,
            "VoucherSeries":null,
            "VoucherYear":null,
            "SupplierInvoice":0
         }
      ]
   }
}

Perform a Depreciation of an Asset

Description

The created vouchers list will be returned if everything succeeded, if there was any problems an error will be returned.

Method

POST

Version

3

Request

The request body should contain date until that depreciation should be done, list of assets ids to perform depreciation.

<?xml version="1.0" encoding="UTF-8"?>
<Asset>
   <AssetIds>
      <element>40</element>
      <element>42</element>
   </AssetIds>
   <DepreciateUntil>2017-06-30</DepreciateUntil>
</Asset>
{  
   "Asset":{  
      "DepreciateUntil":"2017-01-31",
      "AssetIds":[  
         40,
         42
      ]
   }
}

Response

The response should contain the created Asset in either JSON or XML.

<?xml version="1.0" encoding="UTF-8"?>
<AssetsDepreciation>
   <VouchersDepreciationSubset url="https://api.fortnox.se/3/vouchers/G/113?financialyear=1">
      <VoucherNumber>111</VoucherNumber>
      <VoucherSeries>G</VoucherSeries>
      <FinancialYear>1</FinancialYear>
   </VouchersDepreciationSubset>
</AssetsDepreciation>
{  
   "AssetsDepreciation":[  
      {  
         "@url":"https://api.fortnox.se/3/vouchers/G/111?financialyear=1",
         "VoucherNumber":111,
         "VoucherSeries":"G",
         "FinancialYear":1
      }
   ]
}

Filters

Name Description
active Retrieves all active assets
inactive Retrieves all inactive assets
fully_depreciated Retrieves all fully depreciated assets
sold Retrieves all sold assets
scrapped Retrieves all scrapped assets
voided Retrieves all voided assets

Fields

FIELD

DESCRIPTION

LIMITS

TYPE

SEARCHABLE

SORTABLE

REQUIRED

R/W

Url

Direct URL to the record

String

R

Id

Id of the asset

Number  –  –  –

R/W

Description

Description of asset

 String Y  – Y

R/W

Status

Current status of asset

String  –  –

R

StatusId

Current status id of asset.

 – Number  –  –  –

R

Type

Type of asset

String Y  –  –

R

TypeId

Id of asset type used for asset

Number  –  –  –

R/W

CostCenter

Cost center Id used for asset

 – Number  –  –  –

R/W

Project

Project Id used for asset

 – Number  –  –  –

R/W

AcquisitionValue

Acquisition value

Float

R/W

AcquisitionStart Depreciations start date Date R/W
DepreciationFinal Final date when asset became fully depreciated Date R
DepreciatedTo Asset depreciated until that date or null if no deprecations made  – Date R
DepreciationMethod Depreciation method 0,1 Number R/W
DepreciateToResidualValue Depreciate to residual value Should be less then AcquisitionValue Float R/W
ManualOb Manual Ob value Float R
Notes Notes String R/W
Reference Reference String R/W
InsuredNumber Insure number String R/W
InsuredWith Insured with String R/W
Group Group String R/W
Room Room String R/W
Placement Placement String R/W
Department Department String R/W

Asset History Row Fields

FIELD

DESCRIPTION

LIMITS

TYPE

SEARCHABLE

SORTABLE

REQUIRED

R/W

Id Id of history record Number  –  –  – R
Date Date of event  String  – R
EventId Event type Id Number  –  – R
Amount Amount  – Float  –  –  – R
UserId User Id that performed that operation Number  –  – R
UserName User name that performed that operation Number  –  –  – R
Notes Notes for performed operation or event  – String  –  –  – R
VoucherNumber Reference to voucher number  – Number  –  –  – R
VoucherSeries Reference to voucher series String R
VoucherYear Reference to voucher year Number R
SupplierInvoice Reference to supplier invoice if it exists Number R

Assets depreciation list Fields

FIELD

DESCRIPTION

LIMITS

TYPE

SEARCHABLE

SORTABLE

REQUIRED

R/W

URL Direct URL to the record String  –  –  – R
AccountedValue Accounted value of an asset INT  – R
DepreciationAmount Depreciation amount of an asset INT  –  – R
DepreciationPeriod Depreciation period of an asset  – String  –  –  – R

Code

Depreciation method Description
0 Straight depreciation method
1 Irregular depreciation method