Class API
ChallanCntlr.java https://carego.co/TestServer/getCnmtListForChallanByApp
ChallanCntlr.java https://carego.co/TestServer/getChlnCodeForApp
VehicleVendorCntlr.
https://carego.co/TestServer/getBrkNameCodeForApp
java
Remarks Request
You'll hit this API every time user will click
on Submit button after adding the
cnmtCode.
Once user is done with adding all
cnmts,you'll need to check whether all the
vehicle nos. are same.If yes,then can
proceed & show the vehicle no. in vehicle
no. field,if no then show the message {"empId":"1" ,
"Vehicle nos. should be same for all these "cnmtCode":"1222229"
cnmts". For all the }
cnmts add 'cnmtNoOfPkg' and
'cnmtActualWt' & show in the respective
fields.
Show the 1st cnmt's 'fromStnName' in the
from station field & last cnmt's 'toStnName'
in to station field and while saving u'll send
cnmtFromSt & cnmtToSt .
User needs to enter last 2 digits of chlncode, {"empId":"1" ,
after that you'll hit this API by providing that "chlnCode":"11"
digits as shown in the request. }
User needs to enter first 3 chars of broker
name, after that you'll hit this API by
{"brkName":"jay"}
providing that chars as shown in the request
.
Success Response Error Response
{
"data": {
"cnmtEmpCode": "2",
{
"cnmtFromSt": "2",
"message": "You can't use this
"cnmtToSt": "3",
cnmtCode",
"toStnName": "Faridabad",
"isSuccess": false
"fromStnName": "Gurgaon",
}
"empFaCode": "0200002",
or
"cnmtDate": "2019-07-01",
{
"cnmtNoOfPkg": 1,
"message": "JH02N12687 is not
"cnmtActualWt": 10,
registered",
"cnmtCode": "1222229",
"isSuccess": false
"cnmtVehicleNo": "JH02N2687"
}
},
"isSuccess": true
}
{
"data": [
"19015911", {
"19024011", "message": "No such challan found !",
"19025311" "isSuccess": false
], }
"isSuccess": true
}
},
{
"brkName": "JAYABHARAT
TRANSPORTING CO",
"brkCode": "brk1086",
"brkId": 1086
},
{
"brkName": "JAYASHREE
TRANSPORT CORPN",
"brkCode": "brk1238",
"brkId": 1238
},
{
"brkName": "JAY MAA DURGA
ROAD LINES CO DHARMENDRA SINDH",
"brkCode": "brk1893",
"brkId": 1893 {
}, "message": "No Broker found",
{ "isSuccess": false
"brkName": "JAYA MURUGAN }
ROADWAYS",
"brkCode": "brk2144",
"brkId": 2144
},
{
"brkName": "JAY SAI SHAKATI
ROADWAYS",
"brkCode": "brk2232",
"brkId": 2232
},
{
"brkName": "JAY BHARAT
TRANSPORT",
"brkCode": "brk2234",
"brkId": 2234
},
{
keys to send while
Data to display in dropdown
save
cnmtCode,cnmtFro
mSt,cnmtToSt,cnmt
cnmtCode NoOfPkg,cnmtActu
alWt,cnmtVehicleN
o
chlnCode chlnCode
brkName,brkCode brkCode