Ride Feedback


POST /v1/bookings/feedback

Your users can submit their ride experience at the end of every trip.


Request Parameters

Name Data Type Description Type
booking_id string Booking ID for the ride Payload
rating integer

The rating for the driver

Possible values: 1, 2, 3, 4, 5

Payload
feedback string

[Optional] Feedback about ride/driver from a set of pre-defined options

Note: Send the options selected by the user as comma separated values

Payload
comments string [Optional] Additional feedback about ride/driver Payload
Authorization string Authorization Token identifies the user Header
X-APP-TOKEN string Key which identifies the partner Header
Content-Type string "application/json" to be passed Header

Example Request

POST

https://devapi.olacabs.com/v1/bookings/feedback


  "body": {
    "booking_id":"CRN123456789",
    "rating": 2,
    "feedback": "Delayed pickup,Unprofessional behaviour,High pricing,Too many driver calls,Cab not clean",
    "comments": "Horrible Ride"
  }
      
      

  "headers": {
    "Authorization": "Bearer 6121212f12ff12f12f1f12f1f12ff",
    "X-APP-TOKEN": "66121212f12ff12f12f1f12f1f12fc",
    "Content-Type": "application/json"
  }

Example Response


{
  "status": "SUCCESS",
  "request_type": "BOOKING_FEEDBACK"
}



Driver Feedback Options


GET /v1.5/bookings/feedback/options

Users can submit their experience after a ride. This API will give a list of all the acceptable feedback options for different categories.

Name Data Type Description Type
category string ex: mini Payload
sub_category(optional) string Mandatory for outstation/rental, ex: mini Payload
Authorization string Authorization Token identifies the user Header
X-APP-TOKEN string Key which identifies the partner Header

Example Request

GET

https://devapi.olacabs.com/v1.5/bookings/feedback/options?category=rental&sub_category=micro


"headers": {
  "Authorization": "Bearer b6121212f12ff12f12f1f12f1f12ff",
  "X-APP-TOKEN": "6a56121212f12ff12f12f1f12f1f12f8c"
}

Example Response


{
    "status": "SUCCESS",
    "driver_feedback_options": {
        "1": [
            "Delayed Pick up",
            "Driver Unprofessional",
            "Driver Untrained",
            "Unsafe Driving",
            "Car Quality",
            "Incorrect Billing",
            "Dropped at wrong location",
            "Not Value for Money"
        ],
        "2": [
            "Delayed Pick up",
            "Driver Unprofessional",
            "Driver Untrained",
            "Unsafe Driving",
            "Car Quality",
            "Incorrect Billing",
            "Dropped at wrong location",
            "Not Value for Money"
        ],
        "3": [
            "Delayed Pick up",
            "Driver Unprofessional",
            "Driver Untrained",
            "Unsafe Driving",
            "Car Quality",
            "Incorrect Billing",
            "Dropped at wrong location",
            "Not Value for Money"
        ],
        "4": [
            "Delayed Pick up",
            "Driver Unprofessional",
            "Driver Untrained",
            "Unsafe Driving",
            "Car Quality",
            "Incorrect Billing",
            "Dropped at wrong location",
            "Not Value for Money"
        ],
        "5": [
            "Polite and professional driver",
            "On-time pickup",
            "Comfortable feature-rich car",
            "Driver familiar with the route",
            "Value for Money"
        ]
    }
}

Note

  • Driver feedback options can be different for different categories.
  • Booking Feedback API expects valid feedback options for a given category.