Vehicle History Data

This API is meant to get the vehicle histrory data.

GEThttps://yourdomain.com/webservice?token=getHistoryData&UserName=XXX&Pass=YYY&VehicleNo=ZZZ&Date=YYYY-MM-DD
Request Parameters
Parameter Type Value Description
UserNameStringIt is username and it is Mandatory
passStringIt is password and it is Mandatory
VehicleNoStringVehicle Number and mandatory
DateStringyyyy-MM-ddHistory Date and it is mandatory
Description
Method

getHistoryData

Request

Acceptance Criteria

  1.    API is specific project VTS.
  2. License must not expired.


Response

Key

Format

Mandatory

Description

DateTime

yyyy-MM-dd HH:mm:ss

yes

Data received time

Latitude

String

yesvehicle Latitude

Longitude

String

yes

vehicle Longitude

Ignition

String

yes

ignition ON or OFF

AC

String

yes

ON or OFF

Speed

String

yesspeed

Direction

String

yesdirection


Error Code

Status

0

Fail

1

Success
Sample Response
SUCCESS
{
  "root": {
    "VehicleData ": [
      {
        "DateTime": "2023-03-03 00:23:32",
        "Lattitude": "35.7794588",
        "Longitude": "-5.8108428",
        "Ignition": "--",
        "AC": "--",
        "Speed": "0",
        "Direction": "North"
      },
      {
        "DateTime": "2023-03-03 00:26:31",
        "Lattitude": "35.7791511",
        "Longitude": "-5.808559",
        "Ignition": "--",
        "AC": "--",
        "Speed": "8",
        "Direction": "East"
      }
    ]
  }
}
FAIL
{
  "root": {
    "error": "Invalid Parameter"
  }
}
FAIL
{
  "root": {
    "error": "Incorrect username / password.."
  }
}
FAIL
{
  "root": {
    "error": "No Vehicle Data Found "
  }
}
FAIL
{
  "root": {
    "error": "No Vehicle Found"
  }
}
FAIL
{
  "root": {
    "error": "No Vehicle Found"
  }
}
FAIL
{
  "root": {
    "error": "Invalid Date : Date format must be yyyy-MM-dd format "
  }
}
FAIL
{
  "root": {
    "error": "License Expired"
  }
}
FAIL
{
  "root": {
    "error": "inactive "
  }
}
Response codes
Code Description
Error codes
Code Name Description