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 | 
|---|---|---|---|
| UserName | String | It is username and it is Mandatory | |
| pass | String | It is password and it is Mandatory | |
| VehicleNo | String | Vehicle Number and mandatory | |
| Date | String | yyyy-MM-dd | History Date and it is mandatory | 
Description
Method
getHistoryData
Request
Acceptance Criteria
- API is specific project VTS.
- License must not expired.
Response
| Key | Format | Mandatory | Description | 
| DateTime | yyyy-MM-dd HH:mm:ss | yes | Data received time | 
| Latitude | String | yes | vehicle Latitude | 
| Longitude | String | yes | vehicle Longitude | 
| Ignition | String | yes | ignition ON or OFF | 
| AC | String | yes | ON or OFF | 
| Speed | String | yes | speed | 
| Direction | String | yes | direction | 
| 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"
      }
    ]
  }
}{
  "root": {
    "error": "Invalid Parameter"
  }
}{
  "root": {
    "error": "Incorrect username / password.."
  }
}{
  "root": {
    "error": "No Vehicle Data Found "
  }
}{
  "root": {
    "error": "No Vehicle Found"
  }
}{
  "root": {
    "error": "No Vehicle Found"
  }
}{
  "root": {
    "error": "Invalid Date : Date format must be yyyy-MM-dd format "
  }
}{
  "root": {
    "error": "License Expired"
  }
}{
  "root": {
    "error": "inactive "
  }
}Response codes
| Code | Description | 
|---|
Error codes
| Code | Name | Description | 
|---|