External Vehicles List
External Vehicles List
URL
masters/xvehicles
Method
POST
Request Media type
application/json
Response Media type
application/json
Request Parameters
| Parameter | Data Type | Min | Max | M/O | Sample Value | Comments |
|---|---|---|---|---|---|---|
| key | String | 32 | 32 | M | WZDGao34rceWFsEBW6hsJK8ZwWSmu4Qn | Key obtained from authentiaction. |
Response Values
| Name | Data Type | Min Length | Max Length | M/O | Sample Value | Comments |
|---|---|---|---|---|---|---|
| vehicles | Array | M | ||||
| ccode | String | M | ccode | ccode | ||
| vcode | Integer | M | 0 | vcode | ||
| rgno | String | M | rgno | rgno | ||
| vtype | String | M | vtype | vtype | ||
| vehiclename | String | M | vehiclename | vehiclename | ||
| capacity | Decimal | M | 0 | capacity | ||
| ecapacity | Decimal | M | 0 | ecapacity | ||
| height | Decimal | M | 0 | height | ||
| length | Decimal | M | 0 | length | ||
| width | Decimal | M | 0 | width | ||
| constant | Decimal | M | 0 | constant | ||
| mtype | String | M | mtype | mtype | ||
| freeze | String | M | F | freeze | ||
| mtypename | String | M | mtypename | mtypename | ||
| vehiclecapacity | Decimal | M | 0 | vehiclecapacity | ||
| vehiclecapacityStr | String | M | vehiclecapacityStr | vehiclecapacityStr | ||
| xvtype | Integer | M | 1 | External Vehicle Type 1 Sales 2 Owner 3 Guest 4 Staff |
Sample Request
{
"key": "QH7LlQ3wQMK9oYEKjeG5QOIVJQT4emeq"
}
Sample Success Response
{
"vehicles": [
{
"ccode": "ccode",
"vcode": "0",
"rgno": "rgno",
"vtype": "vtype",
"vehiclename": "vehiclename",
"capacity": "0",
"ecapacity": "0",
"height": "0",
"length": "0",
"width": "0",
"constant": "0",
"mtype": "mtype",
"freeze": "F",
"mtypename": "mtypename",
"vehiclecapacity": "0",
"vehiclecapacityStr": "vehiclecapacityStr",
"xvtype": "1"
}
],
"e": 200,
"msg": "Success"
}
Sample Failure Responses
{
"e": 400,
"msg": "Bad Request."
}