Bookker API Documentation logo Bookker API Documentation

Recuperar vehículos del usuario

Última modificación: 22/02/2022

Recupera los vehículos que tiene registrados el usuario y sus accesos a los edificios.

Tipos de vehículo:

Tipos de estado de validación:

¡IMPORTANTE!

La forma actual en la que se indica el vehículo asociado a la reserva mediante licensePlate queda deprecada y en su lugar se utilizará vehicleId.

Request

HTTP request
GET /api/v1/parkings/vehicles
Headers
Header Value Required
Authorization Bearer eyJ0eXBlIjoiSldUIiwiYWxnIjoiSFM1MT… true

Response

En caso correcto se devuelve un código 200 y la información de los vehículos.

{
    "vehicles": [
        {
            "vehicleId": "7ff07a0f-44b9-4a99-a359-461c0fb62ba0"
            "licensePlate": "1234 ABC",
            "brand": "Seat",
            "model": "Leon",
            "color": "Azul",
            "type": "CAR",
            "vehicleBuildings": [
                {
                    "buildingId": "118ae778-1d81-4589-b02c-8583add71994",
                    "licensePlate": "1234 ABC",
                    "vehicleStatus": "VALIDATED"
                },
                {
                    "buildingId": "328a81f3-f171-404b-b48c-c922828aed51",
                    "licensePlate": "1234 ABC",
                    "vehicleStatus": "VALIDATED"
                },
                {
                    "buildingId": "758a81f3-f171-404b-b48c-c922828aed49",
                    "licensePlate": "1234 ABC",
                    "vehicleStatus": "VALIDATED"
                }
            ]
        },
        {
            "vehicleId": "7ff07a0f-44b9-4a99-a359-461c0fb62ba0"
            "licensePlate": "9098LMP",
            "brand": "Ford",
            "model": "Puma",
            "color": "Rojo",
            "type": "CAR",
            "vehicleBuildings": [
                {
                    "buildingId": "9f7868b3-c276-494c-aa34-c8ca7967ee7f",
                    "licensePlate": "9098LMP",
                    "vehicleStatus": "VALIDATED"
                },
                {
                    "buildingId": "be9aae13-608b-4ac1-a52e-9a6941ab2b67",
                    "licensePlate": "9098LMP",
                    "vehicleStatus": "PENDING_VALIDATION"
                },
                {
                    "buildingId": "f469c253-f622-44d8-9b6c-03beedfc8049",
                    "licensePlate": "9098LMP",
                    "vehicleStatus": "LOCKED"
                }
            ]
        },
        {
            "vehicleId": "7ff07a0f-44b9-4a99-a359-461c0fb62ba0"
            "licensePlate": "BBH",
            "brand": "Bbv",
            "model": "Bbv",
            "color": "Hhh",
            "type": "CAR",
            "vehicleBuildings": []
        },
        {
            
            "licensePlate": "FBBH",
            "brand": "Bbv",
            "model": "Bbv",
            "color": "Hhh",
            "type": "CAR",
            "vehicleBuildings": [
                {
                    "buildingId": "328a81f3-f171-404b-b48c-c922828aed51",
                    "licensePlate": "FBBH",
                    "vehicleStatus": "PENDING_VALIDATION"
                },
                {
                    "buildingId": "be9aae13-608b-4ac1-a52e-9a6941ab2b67",
                    "licensePlate": "FBBH",
                    "vehicleStatus": "PENDING_VALIDATION"
                }
            ]
        }
    ]
}