Pedidos pasados

Get Past Bookings

GET https://api.pickerexpress.com/api/getPastBooking

Este endpoint te retorna los pedidos que has realizado con la API key ingresada

Query Parameters

Headers

{
    "statusCode": 200,
    "message": "Success",
    "data": {
        "count": 50,
        "bookings": [
            {
                "_id": "5e456865e930c604be094569",
                "bookingNumericId": 1234,
                "createdAt": "2020-02-13T15:16:53.976Z",
                "customerName": "Cliente Prueba",
                "customerMobile": "+593999999999",
                "statusText": "COMPLETED",
                "currentStatus": 5,
                "orderAmount": 0,
                "deliveryFee": 2.2,
                "pickupCoordinates": {
                    "coordinates": [
                        -79.8517301,
                        -2.168945
                    ],
                    "type": "Point"
                },
                "deliveryCoordinates": {
                    "coordinates": [
                        -79.898831,
                        -2.172911
                    ],
                    "type": "Point"
                },
                "driverEmail": "conductores@pickerexpress.com",
                "driverImage": {
                    "original": "",
                    "thumbnail": ""
                },
                "driverMobile": "+593999999999",
                "driverName": "Conductores",
                "customerEmail": "cliente@gmail.com",
                "customerImage": {
                    "original": "",
                    "thumbnail": ""
                }
            },
        ]
    }
}

El parámetro count de la respuesta indica la cantidad de pedidos que has realizado.

El parámetro bookings de la respuesta contiene todos pedidos.

Se usan los parámetros skip y limit para hacer paginación.

Last updated