Este método consultará los detalles de un pedido. Se debe enviar en el parámetro bookingID el bookingNumericId que se obtiene al crear pedido.
{
"statusCode": 200,
"message": "Success",
"data": {
"bookingNumericId": 1234,
"createdAt": "2020-02-17T19:13:04.886Z",
"customerName": "cliente cliente",
"customerMobile": "+593999999999",
"statusText": "COMPLETED",
"currentStatus": 5,
"orderAmount": 0,
"deliveryFee": 2.2,
"pickupCoordinates": {
"coordinates": [
-79.8517301,
-2.168945
],
"type": "Point"
},
"deliveryCoordinates": {
"coordinates": [
-79.903208,
-2.163133
],
"type": "Point"
},
"driverEmail": "conductores@pickerexpress.com",
"driverMobile": "+5939999999444",
"driverName": "Conductor Prueba",
"customerEmail": "cliente@cliente.com",
"currentCoordinates": {
"coordinates": [
-79.9066651,
-2.1508389
]
},
"arrivalTime": 0
}
}
{
"statusCode": 404,
"error": "Not Found",
"message": "Booking not found"
}
{
"statusCode": 409,
"error": "Conflict",
"message": "You don't belong to this booking."
}