GET api/Depreciation/GetCurrentUsefullife?AssetID={AssetID}

Api to Get Useful life

Request Information

URI Parameters

NameDescriptionTypeAdditional information
AssetID

integer

Required

Body Parameters

None.

Response Information

Resource Description

CurrentUsefulLifeResponseModel
NameDescriptionTypeAdditional information
UsefulLifeList

Collection of CurrentUsefulLifeDataModel

None.

ReturnID

integer

Required

Message

string

Required

Successful

boolean

Required

Code

integer

None.

TotalRecord

integer

None.

Response Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "usefulLifeList": [
    {
      "currentUsefulLifeValue": 1,
      "effectiveDate": "2026-02-25T15:52:46.4307978-05:00"
    },
    {
      "currentUsefulLifeValue": 1,
      "effectiveDate": "2026-02-25T15:52:46.4307978-05:00"
    }
  ],
  "returnID": 1,
  "message": "sample string 2",
  "successful": true,
  "code": 4,
  "totalRecord": 5
}

application/xml, text/xml

Sample:
<CurrentUsefulLifeResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ArrowCMMS.Core.DataModel.Depreciation">
  <Code xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">4</Code>
  <Message xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">sample string 2</Message>
  <ReturnID xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">1</ReturnID>
  <Successful xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">true</Successful>
  <TotalRecord xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">5</TotalRecord>
  <UsefulLifeList>
    <CurrentUsefulLifeDataModel>
      <CurrentUsefulLifeValue>1</CurrentUsefulLifeValue>
      <EffectiveDate>2026-02-25T15:52:46.4307978-05:00</EffectiveDate>
    </CurrentUsefulLifeDataModel>
    <CurrentUsefulLifeDataModel>
      <CurrentUsefulLifeValue>1</CurrentUsefulLifeValue>
      <EffectiveDate>2026-02-25T15:52:46.4307978-05:00</EffectiveDate>
    </CurrentUsefulLifeDataModel>
  </UsefulLifeList>
</CurrentUsefulLifeResponseModel>

multipart/form-data

Sample:
<CurrentUsefulLifeResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ArrowCMMS.Core.DataModel.Depreciation"><Code xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">4</Code><Message xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">sample string 2</Message><ReturnID xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">1</ReturnID><Successful xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">true</Successful><TotalRecord xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">5</TotalRecord><UsefulLifeList><CurrentUsefulLifeDataModel><CurrentUsefulLifeValue>1</CurrentUsefulLifeValue><EffectiveDate>2026-02-25T15:52:46.4307978-05:00</EffectiveDate></CurrentUsefulLifeDataModel><CurrentUsefulLifeDataModel><CurrentUsefulLifeValue>1</CurrentUsefulLifeValue><EffectiveDate>2026-02-25T15:52:46.4307978-05:00</EffectiveDate></CurrentUsefulLifeDataModel></UsefulLifeList></CurrentUsefulLifeResponseModel>