The below API is used to get Asset Categories.
Request: GET
Signature: /api/mobile/GetAssetCategories?Token={Login_Token}&TypeID={Asset_TypeID}
Sample: /api/mobile/GetAssetCategories?Token=VomYEMiECFFyAQ3==&TypeID=2
Response:
{
"Code": 1,
"Info": "",
"RowsAffected": 4,
"Scalar": null,
"Identity": 0,
"RetInfo":
[
{
"CATID": 3,
"CATNAME": "Class 1 - Heavy Trucks"
},
{
"CATID": 2,
"CATNAME": "Class 3 - Medium Trucks"
},
{
"CATID": 6,
"CATNAME": "Class 7 - Heavy Trucks"
},
{
"CATID": 7,
"CATNAME": "Class 9 - Special Duty Truck"
}
]
}
Things to know about this API: