API documentation

Get information about a booking

GET /api/car_driver/bookings/{booking_id}

Include access_token in HTTP header:

Authorization: Bearer 09ba487fc3df...

Description

This web service returns information about a booking

REQUEST PARAMETERS

Parameter name Parameter type Description
booking_id int id of the booking

Response

Status Code: 201 if OK

{
  "id": 59,
  "start_time": "2015-11-23 10:51:03",
  "end_time": "2015-11-24 10:51:03",
  "duration_minutes": 1440.00000003179,
  "price": 48,
  "type": "actual"
}

Response parameters

Parameter name Parameter type Description
id int id of the booking
start_time datetime start time of the booking
end_time datetime end time of the booking
duration_minutes double duration in minutes of the booking
price int price of the booking
type string can be one of the three values(past/actual/future)

Status Code: 404 if the booking does not exist

Status Code: 401 if request access token not ok