TrakIT API‎ > ‎Asset‎ > ‎

Get Asset Categories

The below API is used to get Asset Categories.


Request: GET

Signature:
 trakit.XXX.com/api/mobile/GetAssetCategories?Token={Login_Token}&TypeID={Asset_TypeID}



Sample: xyz.trakit.com/api/mobile/GetAssetCategories?Token=3cLQUT7KcADj-BKyCHg3D==&TypeID=1

Response: 

{
    "Code": 1,
    "Info": "",
    "RowsAffected": 4,
    "Scalar": 27502,
    "Identity": 0,
    "RetInfo": 
    [
        {
            "CATID": 3,
            "CATNAME": "HEAD TRACTOR 10"
        },
        {
            "CATID": 2,
            "CATNAME": "HEAD TRACTOR 6"
        },
        {
            "CATID": 6,
            "CATNAME": "Test 4"
        },
        {
            "CATID": 7,
            "CATNAME": "Truck - Gen
        }

    ]
}

Things to know about this API:
  • Login Token

  • TypeID (You can get the TypeID using GetAssetType API)

Comments