Company Wise Vehicle Data
This API gives the vehicle details company wise.
Request Parameters
Parameter | Type | Value | Description |
---|---|---|---|
username | String | It is mandatory | |
password | String | It is mandatory | |
company_name | String | Name of the company.It is mandatory. |
Description
Method Name
getCompanyWiseVehicleData
Request
Request Format | JSON |
{
"username" : "XXXX",
"password" : "XXXX",
"company_name" : "XXXXXX"
}
Response
Key | Format | Mandatory | Description |
data.contact_person | string | yes | User Name |
data.company_name | string | yes | Company Name |
data.mobile_no | string | yes | Mobile number of the user |
data.branch | array | yes | Contains branch wise vehicles |
data.branch.branch_name | string | yes | Name of the branch |
data.branch.vehicles | array | yes | Array of vehicle json |
data.email | string | yes | Email of the user |
data.contact_number | string | yes | Contact number of the user |
data.branch.vehicles.device_name | string | yes | Device name of the vehicle |
data.branch.vehicles.device_model | string | yes | Device model of the vehicle |
data.branch.vehicles.imei_no | string | yes | Imei number of the device |
data.branch.vehicles.vehicle_no | string | yes | Vehicle number |
Error Code | Status |
0 | FAIL |
1 | SUCCESS |
Sample Response
SUCCESS{
"result": 1,
"data": {
"contact_person": "Harsh Naik",
"company_name": "XXXXXX",
"mobile_no": "",
"branch": [
{
"branch_name": "XXXXXXX",
"vehicles": [
{
"device_name": "0",
"device_model": "YYYYYY",
"imei_no": "52435467567868",
"vehicle_no": "XXXXXXX"
},
{
"device_name": "",
"device_model": "YYYYYY",
"imei_no": "65876898989",
"vehicle_no": "XXXXXXX"
},
{
"device_name": "",
"device_model": "YYYYYYYY",
"imei_no": "786987070",
"vehicle_no": "XXXXXXXX"
}
]
}
],
"email": "",
"contact_number": "2354566768"
},
"message": ""
}
FAIL
{
"result": 0,
"message": "Invalid Company"
}
FAIL
{
"result": 0,
"message": "Invalid Parameter"
}
FAIL
{
"result": 0,
"message": "Incorrect username or password"
}
Response codes
Code | Description |
---|
Error codes
Code | Name | Description |
---|