Save Trip Details
Save Trip Details
URL
costcentremanagement/savetrip
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 | 9itoIL48x5w9sT7zVKPCGAGBt1EjcaMT | Key obtained from authentiaction. |
| cccode | Integer | M | 30751 | Cost Centre Code | ||
| cctype | String | M | V | V for Vehicle, E for Equipment, C for Costcentre,COMP for Compressor | ||
| tdate | String | M | 2022-10-22 | Date of Trip Entry | ||
| closingremarks | String | M | TEST ENTRY FROM CTPL | Remarks on Closing | ||
| tripdetails | Array | M | Trip Sheet Details | |||
| operator1 | Integer | M | 32472 | Employee Code of Login User | ||
| operator2 | Integer | M | 0 | Code of Helper | ||
| theads | Integer | M | 1 | Code of Transporting Head or Equipment Works. If cctype = V then headtype = V. | ||
| place | Integer | M | 1 | Code of place | ||
| startkm | Decimal | M | 100 | Start KM Reading | ||
| endkm | Decimal | M | 200 | End Reading of the Trip | ||
| starthr | Decimal | M | 120 | Start Hour Meter Reading | ||
| endhr | Decimal | M | 130 | End Hour Meter Reading of the Trip | ||
| firmid | Integer | M | 1 | if thcode = 1 and cctype = V then firmid of gatepass required else 0 | ||
| gatepasssyncid | Integer | M | 437176 | If entry from gatepass then gatepass syncid else 0 | ||
| operator3 | Integer | O | 0 | For Equipment Third Operator | ||
| qty | Decimal | O | 0 | For Equipment if Volume required work selected |
Response Values
| Name | Data Type | Min Length | Max Length | M/O | Sample Value | Comments |
|---|---|---|---|---|---|---|
| slno | Integer | M | 12 | Serial No | ||
| tdate | String | M | 10-10-2022 | Trip date |
Sample Request
{
"key": "QH7LlQ3wQMK9oYEKjeG5QOIVJQT4emeq",
"cccode": "30751",
"cctype": "V",
"tdate": "2022-10-22",
"closingremarks": "TEST ENTRY FROM CTPL",
"tripdetails": [
{
"operator1": "32472",
"operator2": "0",
"theads": "1",
"place": "1",
"startkm": "100",
"endkm": "200",
"starthr": "120",
"endhr": "130",
"firmid": "1",
"gatepasssyncid": "437176",
"operator3": "0",
"qty": "0"
}
]
}
Sample Success Response
{
"slno": "12",
"tdate": "10-10-2022",
"e": 200,
"msg": "Success"
}