Skip to main content

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.

ParameterAPIKey
TotalDistance/api/CalculateFareWithVehicleTypesDistance
TotalFare/api/CalculateFareWithVehicleTypesFare
CarTypeID/api/CalculateFareWithVehicleTypesVehicleTypeId
JourneyCost/api/CalculateFareWithVehicleTypesJourneyCost
isPriceZone/api/CalculateFareWithVehicleTypesisPriceZone
tariffType/api/CalculateFareWithVehicleTypestariffType
tariffTypeId/api/CalculateFareWithVehicleTypestariffTypeId
farecolor/api/CalculateFareWithVehicleTypesfarecolor
fairType/api/CalculateFareWithVehicleTypesfairType
VehicleMask/api/GetVehicleTypeFromCompanyVehicleMask

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.