Active Deactive Vehicle List
This API gives the status of vehicles weather they are in active or inacative mode.
POSThttps://trace.truckoom.com/webservice?token=getActiveDeactiveVehicleList
Request Parameters
| Parameter | Type | Value | Description |
|---|---|---|---|
| data | JSON | Json Array contains json object of customer and status | |
| data.customer | String | It is user name and is Mandatory. | |
| data.status | String | It can have values like active or inactive and is mandatory | |
| auth-code | String | User have to pass token generated from generateAccessToken API.It is mandatory and is passed in Header of the request. |
Description
Method Name
getActiveDeactiveVehicleList
Prerequisite
Need to generate token using generateAccessToken API.
Request
| Request Type | json |
request body
{
"data" : [
{
"customer" : "XXXX",
"status" : "YYYY"
}
]
}
Response
| Key | Format | Mandatory | Description |
| message | string | yes | SUCCESS or FAIL |
Error Code | Status |
0 | FAIL |
1 | SUCCESS |
Sample Response
SUCCESS{
"result": 1,
"message": "SUCCESS"
}
FAIL
{
"result": 0,
"message": "Invalid Token"
}
FAIL
{
"result": 0,
"message": "Refresh Token Expired"
}