Booking a Cab
Endpoint
POST /api/CabsBookingPostV3/InsertBookJob
Request Body
{
"CustomerName":"John Smith",
"FareTotal":"33.33",
"Telephone":"09876574321",
"PickupAddress":"Huddersfield Police Station (Headquarters), Castlegate, Huddersfield, UK",
"DestinyAddress":"21 Newsome Road, Huddersfield, UK",
"ViaAddress":[
{
"Latitude":"53.6412215",
"Longitude":"-1.7852460"
}
],
"JourneyTime":"07/02/2023 17:00:00",
"PaymentType":"Cash",
"Luggage":"Luggage",
"NoOfPassenger":1,
"Price":7.50,
"PickupLatitude":"53.6412215",
"PickupLongitude":"-1.7852460",
"DropoffLatitide":"53.7839618",
"DropoffLongitude":"-1.7350702",
"VehicleMask":16
}
To provide all parameters to the booking API you can use these API's to retrieve these parameters.
Parameter | API | Key |
---|---|---|
TotalDistance | /api/CalculateFareWithVehicleTypes | Distance |
TotalFare | /api/CalculateFareWithVehicleTypes | Fare |
CarTypeID | /api/CalculateFareWithVehicleTypes | VehicleTypeId |
JourneyCost | /api/CalculateFareWithVehicleTypes | JourneyCost |
isPriceZone | /api/CalculateFareWithVehicleTypes | isPriceZone |
tariffType | /api/CalculateFareWithVehicleTypes | tariffType |
tariffTypeId | /api/CalculateFareWithVehicleTypes | tariffTypeId |
farecolor | /api/CalculateFareWithVehicleTypes | farecolor |
fairType | /api/CalculateFareWithVehicleTypes | fairType |
VehicleMask | /api/GetVehicleTypeFromCompany | VehicleMask |
Once a job is booked, the system generates and returns a job number in response
Example Response
{
"Message": "Job booked successfully",
"DevMessage": "Job booked successfully",
"Content": {
"JobNumber": "7997031"
}
}
You can use this job number to track the job status in our tracking API.