Bookker API Documentation logo Bookker API Documentation

Recuperar reservas supervisadas

Última modificación: 08/03/2024

Recuperar reservas supervisadas mediante id y fecha

Permite recuperar las reservas supervisadas mediante su identificador id y una fecha en formato LocalDate. Las reservas comenzadas, canceladas, finalizadas o expiradas no se retornaran.

A tener en cuenta:

¡Importante!
Los bookingDates se indicaran las fechas en un listado de fechas y horas de inicio y fin en el siguiente formato: 
startDate1,endDate1;startDate2,endDate2;...

Ejemplo:
1707492738104,1707492738104;1707492738104,1707492738104;1707492738104,1707492738104;1707492738104,1707492738104

Acceso al edificio

Dentro de la información de la reserva hay un campo llamado “buildingAccessStatus”, que indica si se ha concedido al usuario acceso al edificio para esa reserva.

Este campo tiene tres posibles valores:

Request

HTTP Request
GET /api/v2/supervisedBookings/023f8912-f16e-4595-90d9-b882c79f4e8d?date=2024-01-27
Headers
Header Value Required
Authorization Bearer eyJ0eXBlIjoiSldUIiwiYWxnIjoiSFM1MT… true
Path variable Value Required
supervisedId 4c4ca085-45ed-4c03-b662-1b28b9b30627 true
Request Param Value Required
date 2024-02-22 true

Response

Si todo ha ido correctamente se devuelve un código 200 OK, con las reservas del usuario supervisor.

{
    "supervisor": {
        "id": "7c008797-7ce7-4b6b-9907-8692f855f538",
        "name": "Alex",
        "surname": "Jupiter",
        "alias": "96e9df13309d4720bcc2a9cffbdba213",
        "upn": "alex@bookker.es",
        "email": "alexander.fernandez@bookkercorp.com",
        "image": "https://api.develop.bookkercorp.com/api/v1/bookker/download/organizations/8aee218a-fce2-4900-9410-00f485a2729e/users/1547dd16b98441c5a89b595ef08bc4f0.png",
        "organization": {
            "id": "8aee218a-fce2-4900-9410-00f485a2729e"
        },
        "userRule": {
            "id": "042864eb-99bf-4572-a08a-cf1892239419"
        },
        "mobileRole": {
            "id": "1dfde059-da65-49c9-8db3-dccc4f3292e4"
        },
        "webRole": {
            "id": "3e304417-61d7-4527-b016-8e2572893ecb"
        },
        "canBeSearched": false,
        "type": "BOOKKER_INTERNAL",
        "userLanguage": "es",
        "acceptedBookkerPolicy": true,
        "acceptedBookkerPolicyDate": "2023-05-18T07:57:36.000+00:00",
        "acceptedCustomPolicy": true,
        "acceptedCustomPolicyDate": "2023-09-05T08:48:07.000+00:00",
        "status": "ACTIVATED",
        "dataSource": "UNKNOWN",
        "mobileRoleId": "1dfde059-da65-49c9-8db3-dccc4f3292e4",
        "organizationId": "8aee218a-fce2-4900-9410-00f485a2729e",
        "webRoleId": "3e304417-61d7-4527-b016-8e2572893ecb",
        "userRuleId": "042864eb-99bf-4572-a08a-cf1892239419"
    },
    "title": "Test Edititon Supervised v2 - EMAILS - 04",
    "bookingDates": "1710324000000,1710324900000;1710324900000,1710326700000",
    "floor": {
        "id": "14ab4017-1261-46ff-af05-eadf5d3d69e8",
        "name": "Planta 1",
        "floorNumber": 1,
        "image": "https://api.develop.bookkercorp.com/api/v1/bookker/download/organizations/8aee218a-fce2-4900-9410-00f485a2729e/floors/40d25abc74f043f4afff218f02d2e024.png",
        "building": {
            "id": "758a81f3-f171-404b-b48c-c922828aed49",
            "name": "Júpiter Building",
            "address": {
                "country": "ES",
                "city": "Madrid",
                "address": "Avenida Gran Vía, 85"
            },
            "organization": {
                "id": "8aee218a-fce2-4900-9410-00f485a2729e"
            },
            "timezone": "Europe/Madrid",
            "status": "ACTIVATED",
            "visible": true
        },
        "status": "ACTIVATED",
        "type": "OFFICE",
        "visible": true,
        "buildingId": "758a81f3-f171-404b-b48c-c922828aed49"
    },
    "subcategory": {
        "id": "db5d3245-1df2-42e2-9c6e-51bfadba948b",
        "name": "Puesto de trabajo",
        "category": "WORKSTATION",
        "organization": {
            "id": "8aee218a-fce2-4900-9410-00f485a2729e"
        },
        "deleteHistorial": false,
        "hideBookings": false,
        "canBeSearched": true,
        "shifts": false,
        "shiftsDailyBooking": false,
        "simultaneousBookingsType": "ONLY_BETWEEN_CATEGORIES",
        "priority": 0
    },
    "accessControlType": "ORGANIZER",
    "assignedResources": [
        {
            "organizer": {
                "id": "7c008797-7ce7-4b6b-9907-8692f855f538",
                "name": "Alex",
                "surname": "Jupiter",
                "alias": "96e9df13309d4720bcc2a9cffbdba213",
                "upn": "alex@bookker.es",
                "email": "alexander.fernandez@bookkercorp.com",
                "image": "https://api.develop.bookkercorp.com/api/v1/bookker/download/organizations/8aee218a-fce2-4900-9410-00f485a2729e/users/1547dd16b98441c5a89b595ef08bc4f0.png",
                "organization": {
                    "id": "8aee218a-fce2-4900-9410-00f485a2729e"
                },
                "userRule": {
                    "id": "042864eb-99bf-4572-a08a-cf1892239419"
                },
                "mobileRole": {
                    "id": "1dfde059-da65-49c9-8db3-dccc4f3292e4"
                },
                "webRole": {
                    "id": "3e304417-61d7-4527-b016-8e2572893ecb"
                },
                "canBeSearched": false,
                "type": "BOOKKER_INTERNAL",
                "userLanguage": "es",
                "acceptedBookkerPolicy": true,
                "acceptedBookkerPolicyDate": "2023-05-18T07:57:36.000+00:00",
                "acceptedCustomPolicy": true,
                "acceptedCustomPolicyDate": "2023-09-05T08:48:07.000+00:00",
                "status": "ACTIVATED",
                "dataSource": "UNKNOWN",
                "mobileRoleId": "1dfde059-da65-49c9-8db3-dccc4f3292e4",
                "organizationId": "8aee218a-fce2-4900-9410-00f485a2729e",
                "webRoleId": "3e304417-61d7-4527-b016-8e2572893ecb",
                "userRuleId": "042864eb-99bf-4572-a08a-cf1892239419"
            },
            "resource": {
                "id": "521f1ffb-9974-49f8-b7ed-257d69ab9efb",
                "name": "B-P1-PUESTO-114",
                "posterCode": "B-P1-PUESTO-114",
                "mapCoordinates": {
                    "topLeftX": 309,
                    "topLeftY": 2318,
                    "bottomRightX": 359,
                    "bottomRightY": 2368
                },
                "approachable": false,
                "floor": {
                    "id": "14ab4017-1261-46ff-af05-eadf5d3d69e8"
                },
                "subcategory": {
                    "id": "db5d3245-1df2-42e2-9c6e-51bfadba948b",
                    "priority": 0
                },
                "resourceRule": {
                    "id": "b7d1b637-e263-4616-ad56-ba59bf25e8fd",
                    "advanceCheckIn": 900000,
                    "expirationMargin": 900000,
                    "startTime": 25200000,
                    "endTime": 75600000,
                    "maximumDuration": 50400000,
                    "maximumAdvance": 30,
                    "accessControlType": "ORGANIZER",
                    "requiresApproval": false,
                    "allDayBookings": false,
                    "allDayBookingsCheckInMS": 75600000,
                    "fixedResourcesAccessControlType": "NONE",
                    "maxSpaceBooking": {
                        "time": 3600000,
                        "maxSpaceBookingType": "DAILY"
                    }
                },
                "visible": true,
                "status": "ACTIVATED",
                "group": {
                    "id": "4e486d90-beed-4c6a-9861-9efcfcdf9a24"
                }
            },
            "bookingId": "3ca5bd92-c59a-4f16-9a67-4e5918962dd9",
            "bookingStatus": "PENDING",
            "startDate": 1710324900000,
            "endDate": 1710326700000
        },
        {
            "organizer": {
                "id": "7c008797-7ce7-4b6b-9907-8692f855f538",
                "name": "Alex",
                "surname": "Jupiter",
                "alias": "96e9df13309d4720bcc2a9cffbdba213",
                "upn": "alex@bookker.es",
                "email": "alexander.fernandez@bookkercorp.com",
                "image": "https://api.develop.bookkercorp.com/api/v1/bookker/download/organizations/8aee218a-fce2-4900-9410-00f485a2729e/users/1547dd16b98441c5a89b595ef08bc4f0.png",
                "organization": {
                    "id": "8aee218a-fce2-4900-9410-00f485a2729e"
                },
                "userRule": {
                    "id": "042864eb-99bf-4572-a08a-cf1892239419"
                },
                "mobileRole": {
                    "id": "1dfde059-da65-49c9-8db3-dccc4f3292e4"
                },
                "webRole": {
                    "id": "3e304417-61d7-4527-b016-8e2572893ecb"
                },
                "canBeSearched": false,
                "type": "BOOKKER_INTERNAL",
                "userLanguage": "es",
                "acceptedBookkerPolicy": true,
                "acceptedBookkerPolicyDate": "2023-05-18T07:57:36.000+00:00",
                "acceptedCustomPolicy": true,
                "acceptedCustomPolicyDate": "2023-09-05T08:48:07.000+00:00",
                "status": "ACTIVATED",
                "dataSource": "UNKNOWN",
                "mobileRoleId": "1dfde059-da65-49c9-8db3-dccc4f3292e4",
                "organizationId": "8aee218a-fce2-4900-9410-00f485a2729e",
                "webRoleId": "3e304417-61d7-4527-b016-8e2572893ecb",
                "userRuleId": "042864eb-99bf-4572-a08a-cf1892239419"
            },
            "resource": {
                "id": "521f1ffb-9974-49f8-b7ed-257d69ab9efb",
                "name": "B-P1-PUESTO-114",
                "posterCode": "B-P1-PUESTO-114",
                "mapCoordinates": {
                    "topLeftX": 309,
                    "topLeftY": 2318,
                    "bottomRightX": 359,
                    "bottomRightY": 2368
                },
                "approachable": false,
                "floor": {
                    "id": "14ab4017-1261-46ff-af05-eadf5d3d69e8"
                },
                "subcategory": {
                    "id": "db5d3245-1df2-42e2-9c6e-51bfadba948b",
                    "priority": 0
                },
                "resourceRule": {
                    "id": "b7d1b637-e263-4616-ad56-ba59bf25e8fd",
                    "advanceCheckIn": 900000,
                    "expirationMargin": 900000,
                    "startTime": 25200000,
                    "endTime": 75600000,
                    "maximumDuration": 50400000,
                    "maximumAdvance": 30,
                    "accessControlType": "ORGANIZER",
                    "requiresApproval": false,
                    "allDayBookings": false,
                    "allDayBookingsCheckInMS": 75600000,
                    "fixedResourcesAccessControlType": "NONE",
                    "maxSpaceBooking": {
                        "time": 3600000,
                        "maxSpaceBookingType": "DAILY"
                    }
                },
                "visible": true,
                "status": "ACTIVATED",
                "group": {
                    "id": "4e486d90-beed-4c6a-9861-9efcfcdf9a24"
                }
            },
            "bookingId": "50617426-fcb4-4bd6-ab49-d2b947b8d115",
            "bookingStatus": "PENDING",
            "startDate": 1710324000000,
            "endDate": 1710324900000
        }
    ]
}