API Objects Reference

Comprehensive documentation of all API objects and their fields

OrderRequestObject

Used for creating new orders

Fields

FieldTypeDescription
waypointsArray of WaypointObjectGeodata of pickup, intermediate, and drop-off points like coordinates, addresses, etc. Up to 5 points can be mentioned.
extraOptionsArray of EnumAIR_CONDITION NON_SMOKING SMOKING_ALLOWED EXTRA_LUGGAGE_SPACE CHILD_SEAT DISABLED_PEOPLE PETS_ALLOWED BIKE_MOUNT
clientCustomerObjectCustomer info like name, UUID, image, etc.
notesStringText notes for an order.
unitOfLengthEnumMETER KILOMETER MILE
specialCostNumberSpecial price for the order
tripDistanceNumberTrip distance in units specified in "unitOfLength" param for price estimation.
tripDurationIntegerTrip duration in milliseconds for price estimation.
pickupTimeStringPick up time for arrival according to RFC3339 standard
numberOfSeatsIntegerNumber of seats needed
vehicleTypeEnumECONOMY CLASSIC BUSINESS LUXURY RICKSHAW MOTO TESLA BLACK_CAR BLACK_CAB SUV MINIVAN VAN BUS LIMOUSINE HELICOPTER SPEED_BOAT YACHT TOW_TRUCK AMBULANCE PARATRANSIT DELIVERY_TRUCK MOTO_XL COURIER PEDICAB TOW_TRUCK_SMALL TOW_TRUCK_INDUSTRIAL ELECTRIC_VEHICLE HANDYMAN PLUMBER ELECTRICIAN LOCKSMITH DOCTOR NURSE MAID BABYSITTER LAWYER INSURANCE_INSPECTOR CLAIMS_ADJUSTER
tariffTypeEnumPRECISE HOURLY
paymentMethodsEnumCASH TERMINAL THIRD_PARTY
prepaidBooleanIf true - the trip was paid before it started (currently not supported)
tariffIdStringService type UUID
manualAssignDriverStringDriver Id that is used for manual assign
orderSourceEnumPASSENGER_APP DISPATCH_PANEL DISPATCH_API

Code Sample

{
  "waypoints": [
    {
      "exactLatLng": {
        "lat": 37.5,
        "lng": -122.1
      },
      "premise": "Google Store",
      "houseNumber": "22",
      "street": "Avenue",
      "subLocality": "California",
      "locality": "California",
      "city": "Mountain view",
      "district": "California",
      "province": "California",
      "country": "United States",
      "postalCode": "94043",
      "countryCode": "US",
      "poiName": "Google Store",
      "placeLatLng": {
        "lat": 37.5192,
        "lng": -122.0574
      }
    }
  ],
  "extraOptions": [
    "CHILD_SEAT"
  ],
  "client": {
    "clientId": "12345678-1234-1234-1234-1234567890AB",
    "name": "John Smith",
    "phone": "+123121231212",
    "imageUrl": "https://image.com/"
  },
  "notes": "Some text",
  "unitOfLength": "KILOMETER",
  "specialCost": 33.34,
  "tripDistance": 0,
  "tripDuration": 0,
  "pickupTime": "2000-01-01T12:00:27.87+00:20",
  "numberOfSeats": 4,
  "vehicleType": "BUS",
  "tariffType": "PRECISE",
  "paymentMethods": [
    "CASH",
    "TERMINAL"
  ],
  "prepaid": false,
  "tariffId": "12345678-1234-1234-1234-1234567890AB",
  "manualAssignDriver": "12345678-1234-1234-1234-1234567890AB"
}

WaypointObject

Contains location information for a point in the trip

Fields

FieldTypeDescription
exactLatLngLatLngObjectCoordinates of the customer
premiseStringA named location, usually a building or collection of buildings with a common name
houseNumberStringHouse number
streetStringStreet name
subLocalityStringA first-order civil entity below a locality
localityStringAn incorporated city or town political entity
cityStringCity name
districtStringDistrict (a subdivision of city)
provinceStringProvince name
countryStringCountry name
postalCodeStringPostal code
countryCodeStringTwo-letter country code ISO 3166-1 alpha-2
poiNameStringA named point of interest
placeLatLngLatLngObjectCoordinates of the place which are used for further geocoding

Code Sample

{
  "exactLatLng": {
    "lat": 37.5,
    "lng": -122.1
  },
  "premise": "Google Store",
  "houseNumber": "22",
  "street": "Avenue",
  "subLocality": "California",
  "locality": "California",
  "city": "Mountain view",
  "district": "California",
  "province": "California",
  "country": "United States",
  "postalCode": "94043",
  "countryCode": "US",
  "poiName": "Google Store",
  "placeLatLng": {
    "lat": 37.4192,
    "lng": -122.0574
  }
}

LatLngObject

Geographic coordinates

Fields

FieldTypeDescription
latNumberLatitude data
lngNumberLongitude data

Code Sample

{
  "lat": 37.4192,
  "lng": -122.0574
}

CustomerObject

Customer information

Fields

FieldTypeDescription
clientIdStringCustomer UUID
nameStringCustomer name
phoneStringCustomer mobile phone number
imageUrlStringCustomer profile image
emailStringCustomer email (from Customer app)

Code Sample

{
  "clientId": "12345678-1234-1234-1234-1234567890AB",
  "name": "John Smith",
  "phone": "+123121231212",
  "imageUrl": "https://image.com/",
  "email": "smith@mail.com"
}

OrderResponseObject

Response after creating an order

Fields

FieldTypeDescription
orderIdStringOrder UUID

Code Sample

{
  "orderId": "12345678-1234-1234-1234-1234567890AB"
}

CompanyObject

Company information

Fields

FieldTypeDescription
nameStringCompany name
logoStringCompany profile image

Code Sample

{
  "name": "My Company",
  "logo": "https://image.com/"
}

OrderOfferObject

Information about an accepted order

Fields

FieldTypeDescription
etaStringEstimated time of arrival according to RFC3339 standard
driverDriverObjectDriver info like name, UUID, profile image, etc.
carCarObjectDriver's car info like model, colour, year, etc.
tariffTariffObjectService type info like name, UUID, currency, etc.

DriverObject

Driver information

Fields

FieldTypeDescription
driverIdStringDriver UUID
nameStringDriver name
phoneStringDriver mobile phone number
emailStringDriver email
imageUrlStringDriver profile image

Code Sample

{
  "driverId": "12345678-1234-1234-1234-1234567890AB",
  "name": "John Smith",
  "phone": "+123121231212",
  "email": "smith@mail.com",
  "imageUrl": "https://image.com/"
}

CarObject

Vehicle information

Fields

FieldTypeDescription
modelStringCar model
colorStringCar color
yearIntegerCar issue year
imageUrlStringCar image
plateNumberStringCar number
numberOfSeatsIntegerNumber of seats
vehicleTypeEnumECONOMY CLASSIC BUSINESS LUXURY RICKSHAW MOTO TESLA BLACK_CAR BLACK_CAB SUV MINIVAN VAN BUS LIMOUSINE HELICOPTER SPEED_BOAT YACHT TOW_TRUCK AMBULANCE PARATRANSIT DELIVERY_TRUCK MOTO_XL COURIER PEDICAB TOW_TRUCK_SMALL TOW_TRUCK_INDUSTRIAL ELECTRIC_VEHICLE HANDYMAN PLUMBER ELECTRICIAN LOCKSMITH DOCTOR NURSE MAID BABYSITTER LAWYER INSURANCE_INSPECTOR CLAIMS_ADJUSTER
optionsArray of EnumAIR_CONDITION NON_SMOKING SMOKING_ALLOWED EXTRA_LUGGAGE_SPACE CHILD_SEAT DISABLED_PEOPLE PETS_ALLOWED BIKE_MOUNT

Code Sample

{
  "model": "Mercedes Benz",
  "color": "Black",
  "year": 2000,
  "imageUrl": "https://image.com/",
  "plateNumber": "1234AB",
  "numberOfSeats": 4,
  "vehicleType": "BUSINESS",
  "options": [
    "AIR_CONDITION",
    "CHILD_SEAT"
  ]
}

TariffObject

Service type and pricing information

Fields

FieldTypeDescription
tariffIdStringService type UUID
nameStringService type name
companyNameStringDriver company name
vehicleTypeEnumECONOMY CLASSIC BUSINESS LUXURY RICKSHAW MOTO TESLA BLACK_CAR BLACK_CAB SUV MINIVAN VAN BUS LIMOUSINE HELICOPTER SPEED_BOAT YACHT TOW_TRUCK AMBULANCE PARATRANSIT DELIVERY_TRUCK MOTO_XL COURIER PEDICAB TOW_TRUCK_SMALL TOW_TRUCK_INDUSTRIAL ELECTRIC_VEHICLE HANDYMAN PLUMBER ELECTRICIAN LOCKSMITH DOCTOR NURSE MAID BABYSITTER LAWYER INSURANCE_INSPECTOR CLAIMS_ADJUSTER
tariffTypeEnumPRECISE HOURLY
numberOfSeatsIntegerNumber of passenger seats
paymentMethodsArray of EnumCASH CREDIT_CARD TERMINAL THIRD_PARTY
currencyEnumCurrency code according to ISO 4217 standard
unitOfLengthEnumMETER KILOMETER MILE
minimumChargeNumberMinimum trip cost
maximumChargeNumberMaximum trip cost
flagDownFeeNumberFlag down fee (seat price)
perDistanceUnitFeeNumberCost of a kilometer (mile) of a trip
perHourFeeNumberCost of an hour of a trip
taximeterModeEnumTIME_AND_MILEAGE TIME_OR_MILEAGE TIME_HOURLY
speedBreakPointNumberSpeed threshold (for taximeterMode = TIME_OR_MILEAGE)
tariffModeEnumDISABLED AUTO AUTO_FIXED_COST
driverCanSetCostBooleanAllow driver to add extra expenses
fixedFaresAvailableBooleanIf true - prepared prices will be applied for fixed zones (this parameter is set on production only)
fixedFareNameStringFixed fare name (this parameter is set on production only)
costNumberEstimated trip cost
fixedCostBooleanFixed trip cost option
prepaidSupportedBooleanIf true - the trip was paid before it started (currently not supported)
asapBookingBooleanASAP booking option
preBookingBooleanPre-booking option
minimumPreBookingDelayIntegerThe minimum period for preorder (milliseconds)

Code Sample

{
  "tariffId": "12345678-1234-1234-1234-1234567890AB",
  "name": "Classic",
  "companyName": "My Company",
  "vehicleType": "CLASSIC",
  "tariffType": "PRECISE",
  "numberOfSeats": 4,
  "paymentMethods": [
    "CREDIT_CARD",
    "CASH"
  ],
  "currency": "USD",
  "unitOfLength": "KILOMETER",
  "minimumCharge": 1,
  "maximumCharge": 10,
  "flagDownFee": 1,
  "perDistanceUnitFee": 1,
  "perHourFee": 60,
  "taximeterMode": "TIME_AND_MILEAGE",
  "speedBreakPoint": 5,
  "tariffMode": "AUTO",
  "driverCanSetCost": true,
  "fixedFaresAvailable": false,
  "cost": 33.34,
  "fixedCost": true,
  "prepaidSupported": false,
  "asapBooking": true,
  "preBooking": true,
  "minimumPreBookingDelay": 900000
}

OrderUpdateObject

Order status and driver location update

Fields

FieldTypeDescription
driverIdStringDriver UUID
driverLocationLocationObjectDriver location info like coordinates, speed, etc.
statusStringCANCELLED_BY_DISPATCH CANCELLED_BY_DRIVER CANCELLED_NO_PASSENGER CANCELLED_DECIDED_NOT_TO_GO CANCELLED_NO_TAXI CANCELLED_DRIVER_OFFLINE CANCELLED_SEARCH_EXCEEDED SEARCH ASSIGNED STARTED ARRIVED TRANSFERRING REVIEW_SUMMARY PAYMENT FINISHED_PAID FINISHED_UNPAID

Code Sample

{
  "driverId": "12345678-1234-1234-1234-1234567890AB",
  "driverLocation": {
    "accuracy": 20,
    "time": "2000-01-01T12:00:27.87+00:20",
    "bearing": 180,
    "speed": 20,
    "lat": 37.4192,
    "lng": -122.0574
  },
  "status": "TRANSFERRING"
}

LocationObject

Location information

Fields

FieldTypeDescription
accuracyNumberObject estimated location radius, in meters
timeStringTime of location calculation according to RFC3339 standard
bearingNumberThe horizontal direction of the mobile device in degrees (0.0, 360.0]
speedNumberObject speed (meters per second)
latNumberObject latitude
lngNumberObject longitude

Code Sample

{
  "accuracy": 20,
  "time": "2000-01-01T12:00:27.87+00:20",
  "bearing": 180,
  "speed": 20,
  "lat": 37.4192,
  "lng": -122.0574
}

TripSummaryObject

Trip summary information

Fields

FieldTypeDescription
createTimeStringOrder creation time according to RFC3339 standard
pickupTimeStringCustomer pickup time according to RFC3339 standard
dropoffTimeStringCustomer dropoff time according to RFC3339 standard
currencyEnumCurrency code according to ISO 4217 standard
unitOfLengthEnumMETER KILOMETER MILE
tripDistanceNumberTrip distance in units specified in "unitOfLength" field
tripDurationIntegerTrip duration in milliseconds
tripCostNumberEstimated trip cost
extraCostNumberAdditional fees
finalCostNumberTotal trip cost with fees
paymentsArray of PaymentObjectTrip payment info like payment method, amount, etc.
ratingByDriverIntegerCustomer's rating by the driver
pickupLocationLatLngObjectPassenger pickup coordinates
dropoffLocationLatLngObjectPassenger final dropoff coordinates
orderSourceEnumPASSENGER_APP DISPATCH_PANEL DISPATCH_API

Code Sample

{
  "createTime": "2000-09-29T12:56:26.834+03:00",
  "pickupTime": "2000-09-29T12:57:05.214+03:00",
  "dropoffTime": "2000-09-29T12:57:12.975+03:00",
  "currency": "USD",
  "unitOfLength": "KILOMETER",
  "tripDistance": 55,
  "tripDuration": 775400,
  "tripCost": 1.13,
  "finalCost": 1.13,
  "payments": [
    {
      "time": "2000-09-29T12:57:12.975+03:00",
      "amount": 1.13,
      "method": "CREDIT_CARD"
    }
  ],
  "ratingByDriver": 5,
  "pickupLocation": {
    "lat": 56.8632431,
    "lng": 27.6422327
  },
  "dropoffLocation": {
    "lat": 56.8632431,
    "lng": 27.6422327
  }
}

PaymentObject

Payment information

Fields

FieldTypeDescription
timeStringTime of payment according to RFC3339 standard
amountNumberAmount of money paid
methodEnumCASH CREDIT_CARD TERMINAL THIRD_PARTY

Code Sample

{
  "time": "2000-09-29T12:56:26.834+03:00",
  "amount": 1.13,
  "method": "CREDIT_CARD"
}

OrderStatusObject

Order status information

Fields

FieldTypeDescription
statusStringCANCELLED_BY_DISPATCH CANCELLED_BY_DRIVER CANCELLED_NO_PASSENGER CANCELLED_DECIDED_NOT_TO_GO CANCELLED_NO_TAXI CANCELLED_DRIVER_OFFLINE CANCELLED_SEARCH_EXCEEDED SEARCH ASSIGNED STARTED ARRIVED TRANSFERRING REVIEW_SUMMARY PAYMENT FINISHED_PAID FINISHED_UNPAID

Code Sample

{
  "status": "CANCELLED_BY_DISPATCH"
}

VehicleObject

Vehicle information with location

Fields

FieldTypeDescription
locationLocationObjectDriver location info like coordinates, accuracy, etc.
vehicleTypeEnumECONOMY CLASSIC BUSINESS LUXURY RICKSHAW MOTO TESLA BLACK_CAR BLACK_CAB SUV MINIVAN VAN BUS LIMOUSINE HELICOPTER SPEED_BOAT YACHT TOW_TRUCK AMBULANCE PARATRANSIT DELIVERY_TRUCK MOTO_XL COURIER PEDICAB TOW_TRUCK_SMALL TOW_TRUCK_INDUSTRIAL ELECTRIC_VEHICLE HANDYMAN PLUMBER ELECTRICIAN LOCKSMITH DOCTOR NURSE MAID BABYSITTER LAWYER INSURANCE_INSPECTOR CLAIMS_ADJUSTER

Code Sample

{
  "location": {
    "accuracy": 20,
    "time": "2000-01-01T12:00:27.87+00:20",
    "bearing": 180,
    "speed": 20,
    "lat": 37.4192,
    "lng": -122.0574
  },
  "vehicleType": "CLASSIC"
}

OrderPrepareRequestObject

Request to prepare a new order

Fields

FieldTypeDescription
waypointsArray of WaypointObjectGeodata of pickup, intermediate, and drop-off points like coordinates, addresses, etc. Up to 5 points can be mentioned.
unitOfLengthEnumMETER KILOMETER MILE
pickupTimeStringPick up time for arrival according to RFC3339 standard
currencyEnumCurrency code according to ISO 4217 standard
specialCostNumberSpecial price for the order
includedDistanceNumberIncluded in special price distance (special cost applied for the whole trip if not specified)
includedDurationIntegerIncluded in special price duration in millis (special cost applied for the whole trip if not specified)

Code Sample

{
  "waypoints": [
    {
      "exactLatLng": {
        "lat": 37.5,
        "lng": -122.1
      },
      "premise": "Google Store",
      "houseNumber": "22",
      "street": "Avenue",
      "subLocality": "California",
      "locality": "California",
      "city": "Mountain view",
      "district": "California",
      "province": "California",
      "country": "United States",
      "postalCode": "94043",
      "countryCode": "US",
      "poiName": "Google Store",
      "placeLatLng": {
        "lat": 37.5192,
        "lng": -122.0574
      }
    }
  ],
  "unitOfLength": "METER",
  "pickupTime": "2000-01-01T12:00:27.87+00:20",
  "currency": "USD",
  "specialCost": 33.34,
  "includedDistance": 1500,
  "includedDuration": 60000
}

OrderPrepareResponseObject

Response from preparing a new order

Fields

FieldTypeDescription
orderIdStringOrder UUID
confirmationIdStringIdentifier of the operation
orderPreparationDataOrderPreparationDataObjectPrepared data for order creation

Code Sample

{
  "orderId": "12345678-1234-1234-1234-1234567890AB",
  "confirmationId": "12345678-1234-1234-1234-1234567890AB",
  "orderPreparationData": {
    "allTariffsTripEstimations": [
      {
        "cost": 33.34,
        "fixedCost": true,
        "priceMultiplier": 2.1,
        "tariffId": "12345678-1234-1234-1234-1234567890AB"
      }
    ]
  }
}

OrderPreparationDataObject

Prepared data for order creation

Fields

FieldTypeDescription
allTariffsTripEstimationsArray of TripEstimationObjectTrip estimations for different tariffs

Code Sample

{
  "allTariffsTripEstimations": [
    {
      "cost": 33.34,
      "fixedCost": true,
      "priceMultiplier": 2.1,
      "tariffId": "12345678-1234-1234-1234-1234567890AB"
    }
  ]
}

TripEstimationObject

Trip estimation information

Fields

FieldTypeDescription
costNumberEstimated trip cost
fixedCostBooleanFixed trip cost option
priceMultiplierNumberPrice multiplier
tariffIdStringService type UUID

Code Sample

{
  "cost": 33.34,
  "fixedCost": true,
  "priceMultiplier": 2.1,
  "tariffId": "12345678-1234-1234-1234-1234567890AB"
}

TopupRequestObject

Request object for driver account topup

Fields

FieldTypeDescription
moneyObjectMoney amount details
commentStringAdditional information about the topup transaction

WithdrawRequestObject

Request object for driver account withdrawal

Fields

FieldTypeDescription
moneyObjectMoney amount details
commentStringReason for the withdrawal

CommitInvoiceRequestObject

Request object for committing a pending invoice

Fields

FieldTypeDescription
invoiceIdStringUnique identifier of the invoice to commit

InvoiceObject

Invoice information

Fields

FieldTypeDescription
invoiceIdStringUnique identifier for the invoice
statusStringCurrent status of the invoice (e.g. pending, committed)
typeStringType of invoice (topup or withdraw)
amountNumberInvoice amount
currencyStringCurrency code (e.g. EUR)
commentStringAdditional information or reason for the invoice
createdAtStringInvoice creation timestamp in RFC3339 format
updatedAtStringLast update timestamp in RFC3339 format

OrderConfirmRequestObject

Request object for confirming an order

Fields

FieldTypeDescription
confirmationIdStringIdentifier of the operation
extraOptionsArray of EnumAIR_CONDITION NON_SMOKING SMOKING_ALLOWED EXTRA_LUGGAGE_SPACE CHILD_SEAT DISABLED_PEOPLE PETS_ALLOWED BIKE_MOUNT
clientCustomerObjectCustomer info like name, UUID, image, etc.
notesStringText notes for an order
numberOfSeatsIntegerNumber of seats needed
vehicleTypeEnumECONOMY CLASSIC BUSINESS LUXURY RICKSHAW MOTO TESLA BLACK_CAR BLACK_CAB SUV MINIVAN VAN BUS LIMOUSINE HELICOPTER SPEED_BOAT YACHT TOW_TRUCK AMBULANCE PARATRANSIT DELIVERY_TRUCK MOTO_XL COURIER PEDICAB TOW_TRUCK_SMALL TOW_TRUCK_INDUSTRIAL ELECTRIC_VEHICLE HANDYMAN PLUMBER ELECTRICIAN LOCKSMITH DOCTOR NURSE MAID BABYSITTER LAWYER INSURANCE_INSPECTOR CLAIMS_ADJUSTER
tariffTypeEnumPRECISE HOURLY
paymentMethodsEnumCASH TERMINAL THIRD_PARTY
prepaidBooleanIf true - the trip was paid before it started (currently not supported)
manualAssignDriverStringDriver Id that is used for manual assign

Code Sample

{
  "confirmationId": "12345678-1234-1234-1234-1234567890AB",
  "extraOptions": [
    "CHILD_SEAT"
  ],
  "client": {
    "clientId": "12345678-1234-1234-1234-1234567890AB",
    "name": "John Smith",
    "phone": "+123121231212",
    "imageUrl": "https://image.com/"
  },
  "notes": "Some text",
  "numberOfSeats": 4,
  "vehicleType": "BUS",
  "tariffType": "PRECISE",
  "paymentMethods": [
    "CASH",
    "TERMINAL"
  ],
  "prepaid": false,
  "manualAssignDriver": "12345678-1234-1234-1234-1234567890AB"
}

OrderConfirmResponseObject

Response object for confirming an order

Fields

FieldTypeDescription
orderIdStringOrder UUID

Code Sample

{
  "orderId": "12345678-1234-1234-1234-1234567890AB"
}