Detalles del pedido

get
Get Booking Details

https://api.pickerexpress.com/api/getBookingDetails
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.
Request
Response
Request
Headers
content-language
optional
string
en/es
Bearer Token
required
string
Api key.
Query Parameters
bookingID
required
number
ID numérico del pedido
Response
200: OK
Cake successfully retrieved.
{
"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": "[email protected]",
"driverMobile": "+5939999999444",
"driverName": "Conductor Prueba",
"customerEmail": "[email protected]",
"currentCoordinates": {
"coordinates": [
-79.9066651,
-2.1508389
]
},
"arrivalTime": 0
}
}
404: Not Found
Cuando consultas por un booking ID que no existe. Por ejemplo: 123
{
"statusCode": 404,
"error": "Not Found",
"message": "Booking not found"
}
409: Conflict
Cuando consultas a un pedido que no sea tuyo
{
"statusCode": 409,
"error": "Conflict",
"message": "You don't belong to this booking."
}