Trip object schemas

TripBooking

PropertyTypeRequiredDescription
quoteIdString
userIntoUserInfo
flightNumberString

TripSearch

PropertyTypeRequiredDescription
tripStatesTripState
tripTypeTripType
paginationRowCountInt
paginationOffsetInt

TripType

PropertyTypeRequiredDescription
asaptrips booked for as soon as possible
prebooktrips booked for a specified date
bothasap & prebook

TripInfo

PropertyTypeRequiredDescription
tripIdString
displayIdString
stateTripState
vehicleVehicle
fleetInfoFleetInfo
fareFare
quoteTripQuote
flightNumberString
originTripLocationDetails
destinationTripLocationDetails
dateScheduledDate
meetingPointMeetingPoint

TripState

PropertyTypeRequiredDescription
requestedThe trip is matching to the most efficient available driver (By Dispatch).
noDriversAvailableThe trip was unfulfilled because no driver was available.
confirmedThe trip has been accepted by Dispatch.
driverEnRouteA driver is “en route” to the origin location. This state can occur multiple times in case of a driver re-assignment
arrivedThe driver has arrived. This state might be skipped in some cases.
passengerOnBoardPassenger is in the vehicle and the ride has “started”
completedThe trip has been completed.
bookerCancelledThe trip has been cancelled by the rider.
driverCancelledThe trip has been cancelled by the dispatch/ driver.
karhooCancelledThe trip has been cancelled by Karhoo.
failedThe trip booking failed
unknownThe trip state is unknown

Vehicle

PropertyTypeRequiredDescription
vehicleClassString
vehicleLicensePlateString
descriptionString
driverDriver

FleetInfo

fleetIdString
nameString
logoUrlString
descriptionString
phoneNumberString
termsConditionsUrlString
emailString

Fare

PropertyTypeRequiredDescription
totalInt
denominateTotalDouble
currencyString
gratuityPercentInt
breakdownFareComponent

FareComponent

PropertyTypeRequiredDescription
valueInt
nameString
descriptionString

TripQuote

PropertyTypeRequiredDescription
totalInt
currencyString
gratuityPercentInt
breakdownFareComponent
denominateTotalDouble
qtaHighMinutesInt
qtaLowMinutesInt
typeQuoteType
vehicleClassString
vehicleAttributesVehicleAttributes

VehicleAttributes

PropertyTypeRequiredDescription
childSeatBool
electricBool
hybridBool
luggageCapacityInt
passengerCapacityInt

TripLocationDetails

PropertyTypeRequiredDescription
displayAddressString
placeIdString
positionPosition
timeZoneIdentifierString

Position

PropertyTypeRequiredDescription
latitudeDouble
longitudeDouble

TripLocationDetails

PropertyTypeRequiredDescription
displayAddressString
placeIdString
positionPosition
timeZoneIdentifierString

MeetingPoint

PropertyTypeRequiredDescription
positionPosition
instructionsString
tyoeMeetingPointType

MeetingPointType

PropertyTypeRequiredDescription
defaultType
pickup
dropOff
meetAndGreet
curbSide
standBy
notSet

Driver

PropertyTypeRequiredDescription
firstNameString
lastNameString
phoneNumberString
photoUrlString
licenseNumberString

CancelReason

PropertyTypeRequiredDescription
askedByDriverToCancel
notNeededAnymore
cannotFindVehicle
driverIsLate
etaTooLong
driverDidntShowUp
otherUserReason