External Vehicles Save
URL
masters/savexvehicle
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 | nqpP4zGpz2pUuENPD8jBFwNnir713ZxM | Key obtained from authentiaction. |
| regno | String | M | regno | Register Number | ||
| vehiclename | String | M | vehiclename | vehicle name | ||
| phoneno | String | M | 1234567891 | phone number | ||
| capacity | Decimal | M | 0.0 | Capacity | ||
| maxcapacity | Decimal | M | 0.0 | Maximum Capacity | ||
| tareweight | Decimal | M | 0.0 | Tyre Weight | ||
| height | Decimal | M | 0.0 | Height | ||
| repheight | Decimal | M | 0.0 | repheight | ||
| length | Decimal | M | 0.0 | Length | ||
| mtype | String | M | l | Meter (M)/ Inches (I) | ||
| width | Decimal | M | 0.0 | Width | ||
| constant | Decimal | M | 0.0 | constant | ||
| custname | String | M | custname | Customer Name | ||
| xvtype | Integer | M | 1 | 1 - For Sales | ||
| vcode | Integer | O | 0 | 0 for insert else update |
Response Values
| Name | Data Type | Min Length | Max Length | M/O | Sample Value | Comments |
|---|---|---|---|---|---|---|
| vcode | Integer | M | 0 | vehicle code |
Sample Request
{
"key": "QH7LlQ3wQMK9oYEKjeG5QOIVJQT4emeq",
"regno": "regno",
"vehiclename": "vehiclename",
"phoneno": "1234567891",
"capacity": "0.0",
"maxcapacity": "0.0",
"tareweight": "0.0",
"height": "0.0",
"repheight": "0.0",
"length": "0.0",
"mtype": "l",
"width": "0.0",
"constant": "0.0",
"custname": "custname",
"xvtype": "1"
}
Sample Success Response
{
"vcode": "",
"e": 200,
"msg": "Success"
}