Get Asset Types
The below API is used to get asset types in Asset Management.
Request: GET
Signature: /api/mobile/GetAssetTypes?Token={Login_Token}
Sample: /api/mobile/GetAssetTypes?Token=VomYEMiECFFyAQ3==
Response:
{
"Code": 1,
"Info": "",
"RowsAffected": 4,
"Scalar": null,
"Identity": 0,
"RetInfo": [
{
"TYPEID": 1,
"TYPENAME": "Contract",
"CODE": "CONT",
"CREATEDBY": "ADMIN",
"CREATED": "2019-01-29T10:27:31.627",
"DISABLED": false,
"HASGPS": false,
"USERNAME": "Tom Admin"
},
{
"TYPEID": 2,
"TYPENAME": "Driver",
"CODE": "DRV",
"CREATEDBY": "SUPPORT",
"CREATED": "2019-01-29T10:27:02.5",
"DISABLED": false,
"HASGPS": false,
"USERNAME": "Tom Admin"
},
{
"TYPEID": 3,
"TYPENAME": "Trailer",
"CODE": "TRL",
"CREATEDBY": "SUPPORT",
"CREATED": "2019-01-25T10:03:32.003",
"DISABLED": false,
"HASGPS": false,
"USERNAME": "L1 Support"
},
{
"TYPEID": 4,
"TYPENAME": "Truck",
"CODE": "TRK",
"CREATEDBY": "ADMIN",
"CREATED": "2019-03-05T14:34:28.163",
"DISABLED": false,
"HASGPS": true,
"USERNAME": "Tom Admin"
}
]
}
Things to know about this API:
Token - You can use Login API to get token displayed under Info
RowsAffected - Displays the total number of Asset Types
Definition of each attribute for RetInfo: