get https://api.azuga.com/azuga-ws/v1/vehicle/view.json?vehicleName=&groupName=
This API returns you with a detailed snapshot of the vehicles present in your account. Details such as odometer readings, last contact time etc are useful in determining real-time activities across your fleet.
Sample Request
https://api.azuga.com/azuga-ws/v1/vehicle/view.json?groupName=WestCoast
API Response explanation
Field | Description |
---|---|
code | API Status Code |
message | API Message (Success/Failure) |
messageCode | API sub-error code |
generatedAt | API generation timestamp in UTC |
reason | The reason for failure |
currentPage | The current page |
totalPages | The total number of pages in the result |
vehicles | An array of vehicle objects |
vehicleId | Unique identifier representing the vehicle |
vehicleName | Name of the vehicle |
vehicleType | Type of vehicle |
groupName | Name of the group associated with the vehicle |
make | Make of the vehicle |
model | Model of the vehicle |
year | Year in which the vehicle was manufactured |
vin | Vehice Identification Number |
licensePlate | License plate number of the vehicle |
odometer | Odometer reading of the vehicle in Kms |
phoneNumber | Phone number of the driver |
costPerMile | Operating cost per mile of the vehicle |
serialNumber | Serial number of the device associated with the vehicle |
assetNumber | Asset number of the vehicle |
lastContactDate | Timestamp (user time zone) when the device and vehicle were last paired |
lastConatctDateGMT | Timestamp (UTC) when the device and vehicle were last paired |
ownerShip | Ownership type of the vehicle |
fuelTypeId | Unique identifier representing the fuel 1 - Gasoline 2 - Diesel |
driverId | Unique identifier representing the driver |
engineHours | Engine run time in seconds |
imei | IMEI number of the SIM |
deviceId | Unique identifier representing the device |
trackeeTypeId | Unique identifier representing the type of the vehicle. The following values are valid: 1 - Vehicle 2 - Asset |
deviceTypeId | Unique identifier representing the type of the device 1 = Datalogger 6 = Asset Tracker 11 = SafetyCam |
fuelTypeName | Name of the fuel type |
odo_support | Boolean representing whether the vehicle supports odo data |
lastConatctDateGMT | Last contact date in UTC milliseconds. |