TrakIT API‎ > ‎Pending API‎ > ‎

Get Asset List

The below API is used to get asset list in Asset Management.


Request: GET

Signature:
 /api/mobile/GetAssetList?Token={Login_Token}&TypeID={Asset_TypeId}&Search={Search_Keywords}&SkipCount={Skip_Count}



Sample: /api/mobile/GetAssetList?Token=VomYEMiECFFyAQ3==&TypeID=2&Search=KA&SkipCount=0

Response: 

{
    "Code": 1,
    "Info": "",
    "RowsAffected": 7,
    "Scalar": null,
    "Identity": 0,
    "RetInfo": [
        {
            "AssetId": 138,
            "AssetName": "KAH 540Z",
            "AssetSerial": "KAH540Z"
        },
        {
            "AssetId": 95,
            "AssetName": "KAL 896T",
            "AssetSerial": "KAL896T"
        },
        {
            "AssetId": 98,
            "AssetName": "KAQ 280P",
            "AssetSerial": "KAQ280P"
        },
        {
            "AssetId": 97,
            "AssetName": "KAS 890B",
            "AssetSerial": "KAS890B"
        },
        {
            "AssetId": 96,
            "AssetName": "KAV 990G",
            "AssetSerial": "KAV990G"
        },
        {
            "AssetId": 101,
            "AssetName": "KAW 940E",
            "AssetSerial": "KAW940E"
        },
        {
            "AssetId": 102,
            "AssetName": "KAW 950E",
            "AssetSerial": "KAW950E"
        }
    ]
}


Things to know about this API:
  1. Token - You can use Login API to get token displayed under Info

  2. TypeID - You can use Get Asset Types API to get  TypeID

  3. Search - You can search with Asset Name and Asset Serial

  4. SkipCount - It is an integer which decides the number of rows returned. For example: If you send 0, then it will display 0 to 20 rows. If you send 13, then it will display 13 to 33 rows.

  5. RowsAffected - Displays the total number of Assets in the TypeID
Comments