Recuperar reservas supervisadas
Última modificación: 09/08/2023
Recuperar reservas
Permite recuperar las reservas supervisadas de un usuario supervisor
A tener en cuenta:
-
Sólo se obtendrán las reservas que tengan estado PENDING o CONFIRMED.
-
Sólo se obtendrán las reservas cuya fecha de fin no sea mayor que la fecha actual
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:
- PENDING: La reserva está pendiente de la aprobación o denegación de acceso.
- GRANTED: Se le ha concedido acceso al edificio.
- DENIED: Se ha rechazado el acceso al edificio.
Request
HTTP Request
GET /api/v1/users/me/bookings/supervised
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer eyJ0eXBlIjoiSldUIiwiYWxnIjoiSFM1MT… | true |
Response
Si todo ha ido correctamente se devuelve un código 200 OK, con las reservas supervisadas del usuario.
{
"supervisedBookings":[
{
"supervisedBookingId":"175edf83-df85-41b9-b3ab-8e516e039448",
"title":"varios",
"floorId":"1ed6c4c3-a6c1-415b-bee4-0ca3323c51f7",
"accessControlType": "OPTIONAL",
"bookingList":[
{
"startDate":1567746000000,
"endDate":1567746900000,
"allDayBooking":false,
"resourceType": "WORKSTATION",
"buildingAccessStatus": "PENDING",
"assignationInfoList":[
{
"userEmail":"david.navarro@bookkercorp.com",
"userId":"78c48bbc-0aa0-4e15-8a84-bcf9d55bfbef",
"userType": "BOOKKER_INTERNAL",
"resource":{
"id":"fa6bb859-575e-4771-a03b-fafbc9935d6a",
"name":"Puesto 5 P3",
"posterCode":"A05P3",
"image": "https://api.develop.bookkercorp.com/api/v1/bookker/download/organizations/8aee218a-fce2-4900-9410-00f485a2729e/users/5432a51ff76e4e349a0fcd6759eeaa0a.jpeg",
"externalSyncEmail":"sala.negro@kabel.es",
"phone":"967432831",
"mapCoordinates":{
"topLeftX":144,
"topLeftY":3000,
"bottomRightX":194,
"bottomRightY":3048
},
"approachable":true,
"features": [
{
"id": "2c17a0c5-52c9-454b-838f-588901e7edf8",
"name": "Proyector",
"email": "txoflas@gmail.com",
"organization": {
"id": "8aee218a-fce2-4900-9410-00f485a2729e"
}
}
],
"floor":{
"id":"14ab4017-1261-46ff-af05-eadf5d3d69e8",
"name":"Planta 1",
"floorNumber":1,
"image":"8aee218a-fce2-4900-9410-00f485a2729e/buildings/758a81f3-f171-404b-b48c-c922828aed49/floors/14ab4017-1261-46ff-af05-eadf5d3d69e8/maps/40d25abc74f043f4afff218f02d2e024.png",
"building":{
"id":"758a81f3-f171-404b-b48c-c922828aed49",
"name":"Jupiter Building",
"address":{
"country":"ES",
"city":"Madrid",
"address":"Avenida Gran VÃa, 85",
"coordinates":null
},
"organization":{
"id":"8aee218a-fce2-4900-9410-00f485a2729e"
},
"timezone":"Europe/Madrid",
"status":"ACTIVATED"
},
"status":"ACTIVATED",
"type":"OFFICE",
"visible":true
},
"subcategory":{
"id":"072ac366-1c4f-4995-af07-1a111f8fcc12",
"name":"Sala de reuniones",
"category":"SPACE",
"organization":{
"id":"8aee218a-fce2-4900-9410-00f485a2729e"
},
"deleteHistorial":false,
"hideBookings":false,
"canBeSearched":true
},
"resourceRule":{
"id":"8dcbdb92-ad3d-4948-ad45-43f527a7e0a0",
"advanceCheckIn":900000,
"expirationMargin":900000
},
"visible":true
},
"bookingId":"29ac4185-b955-4c1a-b823-0c5d9430a859",
"userCheckInInfo":{
"checkedIn":false,
"checkedOut":false
}
},
{
"userEmail":"aitor.gil@bookercorp.com",
"userId":"8bd79424-6782-473e-bcc1-8e94d550f2de",
"userType": "BOOKKER_INTERNAL",
"resource":{
"id":"902895dd-72eb-4abb-a11f-c4164ec9f72f",
"name":"Puesto 3 P3",
"posterCode":"A03P3",
"externalSyncEmail":"puesto03p3@resource.com",
"phone":"989731231",
"mapCoordinates":{
"topLeftX":292,
"topLeftY":3226,
"bottomRightX":340,
"bottomRightY":3274
},
"approachable":true,
"features": [
{
"id": "2c17a0c5-52c9-454b-838f-588901e7edf8",
"name": "Proyector",
"email": "txoflas@gmail.com",
"organization": {
"id": "8aee218a-fce2-4900-9410-00f485a2729e"
}
}
],
"floor":{
"id":"14ab4017-1261-46ff-af05-eadf5d3d69e8",
"name":"Planta 1",
"floorNumber":1,
"image":"8aee218a-fce2-4900-9410-00f485a2729e/buildings/758a81f3-f171-404b-b48c-c922828aed49/floors/14ab4017-1261-46ff-af05-eadf5d3d69e8/maps/40d25abc74f043f4afff218f02d2e024.png",
"building":{
"id":"758a81f3-f171-404b-b48c-c922828aed49",
"name":"Jupiter Building",
"address":{
"country":"ES",
"city":"Madrid",
"address":"Avenida Gran VÃa, 85",
"coordinates":null
},
"organization":{
"id":"8aee218a-fce2-4900-9410-00f485a2729e"
},
"timezone":"Europe/Madrid",
"status":"ACTIVATED"
},
"status":"ACTIVATED",
"type":"OFFICE",
"visible":true
},
"subcategory":{
"id":"072ac366-1c4f-4995-af07-1a111f8fcc12",
"name":"Sala de reuniones",
"category":"SPACE",
"organization":{
"id":"8aee218a-fce2-4900-9410-00f485a2729e"
},
"deleteHistorial":false,
"hideBookings":false,
"canBeSearched":true
},
"resourceRule":{
"id":"8dcbdb92-ad3d-4948-ad45-43f527a7e0a0",
"advanceCheckIn":900000,
"expirationMargin":900000
},
"visible":true
},
"bookingId":"3e414b31-fd91-44f0-a4e3-80536350232e",
"userCheckInInfo":{
"checkedIn":false,
"checkedOut":false
}
},
{
"userEmail":"aitor.gomez@bookercorp.com",
"userId":"8133c93f-97d7-4fef-ab87-97b1a3df9d47",
"userType": "BOOKKER_INTERNAL",
"resource":{
"id":"d048868a-32dd-406c-8411-5578581b12a0",
"name":"Puesto 4 P3",
"posterCode":"A04P3",
"image": "https://api.develop.bookkercorp.com/api/v1/bookker/download/organizations/8aee218a-fce2-4900-9410-00f485a2729e/users/5432a51ff76e4e349a0fcd6759eeaa0a.jpeg",
"externalSyncEmail":"puesto04p3@resource.com",
"phone":"963127831",
"mapCoordinates":{
"topLeftX":209,
"topLeftY":3226,
"bottomRightX":258,
"bottomRightY":3274
},
"approachable":true,
"features": [
{
"id": "2c17a0c5-52c9-454b-838f-588901e7edf8",
"name": "Proyector",
"email": "txoflas@gmail.com",
"organization": {
"id": "8aee218a-fce2-4900-9410-00f485a2729e"
}
}
],
"floor":{
"id":"14ab4017-1261-46ff-af05-eadf5d3d69e8",
"name":"Planta 1",
"floorNumber":1,
"image":"8aee218a-fce2-4900-9410-00f485a2729e/buildings/758a81f3-f171-404b-b48c-c922828aed49/floors/14ab4017-1261-46ff-af05-eadf5d3d69e8/maps/40d25abc74f043f4afff218f02d2e024.png",
"building":{
"id":"758a81f3-f171-404b-b48c-c922828aed49",
"name":"Jupiter Building",
"address":{
"country":"ES",
"city":"Madrid",
"address":"Avenida Gran VÃa, 85",
"coordinates":null
},
"organization":{
"id":"8aee218a-fce2-4900-9410-00f485a2729e"
},
"timezone":"Europe/Madrid",
"status":"ACTIVATED"
},
"status":"ACTIVATED",
"type":"OFFICE",
"visible":true
},
"subcategory":{
"id":"072ac366-1c4f-4995-af07-1a111f8fcc12",
"name":"Sala de reuniones",
"category":"SPACE",
"organization":{
"id":"8aee218a-fce2-4900-9410-00f485a2729e"
},
"deleteHistorial":false,
"hideBookings":false,
"canBeSearched":true
},
"resourceRule":{
"id":"8dcbdb92-ad3d-4948-ad45-43f527a7e0a0",
"advanceCheckIn":900000,
"expirationMargin":900000
},
"visible":true
},
"bookingId":"cf90cbca-ebd2-4274-a667-e2561ba4a413",
"userCheckInInfo":{
"checkedIn":false,
"checkedOut":false
}
}
]
},
{
"startDate":1567832400000,
"endDate":1567833300000,
"allDayBooking":false,
"resourceType": "WORKSTATION",
"buildingAccessStatus": "PENDING",
"assignationInfoList":[
{
"userEmail":"aitor.gomez@bookercorp.com",
"userId":"8133c93f-97d7-4fef-ab87-97b1a3df9d47",
"userType": "BOOKKER_INTERNAL",
"resource":{
"id":"d048868a-32dd-406c-8411-5578581b12a0",
"name":"Puesto 4 P3",
"posterCode":"A04P3",
"image": "https://api.develop.bookkercorp.com/api/v1/bookker/download/organizations/8aee218a-fce2-4900-9410-00f485a2729e/users/5432a51ff76e4e349a0fcd6759eeaa0a.jpeg",
"externalSyncEmail":"puesto04p3@resource.com",
"phone":"963127831",
"mapCoordinates":{
"topLeftX":209,
"topLeftY":3226,
"bottomRightX":258,
"bottomRightY":3274
},
"approachable":true,
"features": [
{
"id": "2c17a0c5-52c9-454b-838f-588901e7edf8",
"name": "Proyector",
"email": "txoflas@gmail.com",
"organization": {
"id": "8aee218a-fce2-4900-9410-00f485a2729e"
}
}
],
"floor":{
"id":"14ab4017-1261-46ff-af05-eadf5d3d69e8",
"name":"Planta 1",
"floorNumber":1,
"image":"8aee218a-fce2-4900-9410-00f485a2729e/buildings/758a81f3-f171-404b-b48c-c922828aed49/floors/14ab4017-1261-46ff-af05-eadf5d3d69e8/maps/40d25abc74f043f4afff218f02d2e024.png",
"building":{
"id":"758a81f3-f171-404b-b48c-c922828aed49",
"name":"Jupiter Building",
"address":{
"country":"ES",
"city":"Madrid",
"address":"Avenida Gran VÃa, 85",
"coordinates":null
},
"organization":{
"id":"8aee218a-fce2-4900-9410-00f485a2729e"
},
"timezone":"Europe/Madrid",
"status":"ACTIVATED"
},
"status":"ACTIVATED",
"type":"OFFICE",
"visible":true
},
"subcategory":{
"id":"072ac366-1c4f-4995-af07-1a111f8fcc12",
"name":"Sala de reuniones",
"category":"SPACE",
"organization":{
"id":"8aee218a-fce2-4900-9410-00f485a2729e"
},
"deleteHistorial":false,
"hideBookings":false,
"canBeSearched":true
},
"resourceRule":{
"id":"8dcbdb92-ad3d-4948-ad45-43f527a7e0a0",
"advanceCheckIn":900000,
"expirationMargin":900000
},
"visible":true
},
"bookingId":"c1e8b299-c1f4-48c1-ae1a-2fd0f758b627",
"userCheckInInfo":{
"checkedIn":false,
"checkedOut":false
}
},
{
"userEmail":"aitor.gil@bookercorp.com",
"userId":"8bd79424-6782-473e-bcc1-8e94d550f2de",
"userType": "BOOKKER_INTERNAL",
"resource":{
"id":"902895dd-72eb-4abb-a11f-c4164ec9f72f",
"name":"Puesto 3 P3",
"posterCode":"A03P3",
"image": "https://api.develop.bookkercorp.com/api/v1/bookker/download/organizations/8aee218a-fce2-4900-9410-00f485a2729e/users/5432a51ff76e4e349a0fcd6759eeaa0a.jpeg",
"externalSyncEmail":"puesto03p3@resource.com",
"phone":"989731231",
"mapCoordinates":{
"topLeftX":292,
"topLeftY":3226,
"bottomRightX":340,
"bottomRightY":3274
},
"approachable":true,
"features": [
{
"id": "2c17a0c5-52c9-454b-838f-588901e7edf8",
"name": "Proyector",
"email": "txoflas@gmail.com",
"organization": {
"id": "8aee218a-fce2-4900-9410-00f485a2729e"
}
}
],
"floor":{
"id":"14ab4017-1261-46ff-af05-eadf5d3d69e8",
"name":"Planta 1",
"floorNumber":1,
"image":"8aee218a-fce2-4900-9410-00f485a2729e/buildings/758a81f3-f171-404b-b48c-c922828aed49/floors/14ab4017-1261-46ff-af05-eadf5d3d69e8/maps/40d25abc74f043f4afff218f02d2e024.png",
"building":{
"id":"758a81f3-f171-404b-b48c-c922828aed49",
"name":"Jupiter Building",
"address":{
"country":"ES",
"city":"Madrid",
"address":"Avenida Gran VÃa, 85",
"coordinates":null
},
"organization":{
"id":"8aee218a-fce2-4900-9410-00f485a2729e"
},
"timezone":"Europe/Madrid",
"status":"ACTIVATED"
},
"status":"ACTIVATED",
"type":"OFFICE",
"visible":true
},
"subcategory":{
"id":"072ac366-1c4f-4995-af07-1a111f8fcc12",
"name":"Sala de reuniones",
"category":"SPACE",
"organization":{
"id":"8aee218a-fce2-4900-9410-00f485a2729e"
},
"deleteHistorial":false,
"hideBookings":false,
"canBeSearched":true
},
"resourceRule":{
"id":"8dcbdb92-ad3d-4948-ad45-43f527a7e0a0",
"advanceCheckIn":900000,
"expirationMargin":900000
},
"visible":true
},
"bookingId":"c7796be6-b6b7-4b92-98fa-1f732da1d67a",
"userCheckInInfo":{
"checkedIn":false,
"checkedOut":false
}
},
{
"userEmail":"david.navarro@bookkercorp.com",
"userId":"78c48bbc-0aa0-4e15-8a84-bcf9d55bfbef",
"resource":{
"id":"fa6bb859-575e-4771-a03b-fafbc9935d6a",
"name":"Puesto 5 P3",
"posterCode":"A05P3",
"image": "https://api.develop.bookkercorp.com/api/v1/bookker/download/organizations/8aee218a-fce2-4900-9410-00f485a2729e/users/5432a51ff76e4e349a0fcd6759eeaa0a.jpeg",
"externalSyncEmail":"sala.negro@kabel.es",
"phone":"967432831",
"mapCoordinates":{
"topLeftX":144,
"topLeftY":3000,
"bottomRightX":194,
"bottomRightY":3048
},
"approachable":true,
"floor":{
"id":"14ab4017-1261-46ff-af05-eadf5d3d69e8",
"name":"Planta 1",
"floorNumber":1,
"image":"8aee218a-fce2-4900-9410-00f485a2729e/buildings/758a81f3-f171-404b-b48c-c922828aed49/floors/14ab4017-1261-46ff-af05-eadf5d3d69e8/maps/40d25abc74f043f4afff218f02d2e024.png",
"building":{
"id":"758a81f3-f171-404b-b48c-c922828aed49",
"name":"Jupiter Building",
"address":{
"country":"ES",
"city":"Madrid",
"address":"Avenida Gran VÃa, 85",
"coordinates":null
},
"organization":{
"id":"8aee218a-fce2-4900-9410-00f485a2729e"
},
"timezone":"Europe/Madrid",
"status":"ACTIVATED"
},
"status":"ACTIVATED",
"type":"OFFICE",
"visible":true
},
"subcategory":{
"id":"072ac366-1c4f-4995-af07-1a111f8fcc12",
"name":"Sala de reuniones",
"category":"SPACE",
"organization":{
"id":"8aee218a-fce2-4900-9410-00f485a2729e"
},
"deleteHistorial":false,
"hideBookings":false,
"canBeSearched":true
},
"resourceRule":{
"id":"8dcbdb92-ad3d-4948-ad45-43f527a7e0a0",
"advanceCheckIn":900000,
"expirationMargin":900000
},
"visible":true
},
"bookingId":"f5fb73cf-7e90-4382-b85d-8a7a7f237c1a",
"userCheckInInfo":{
"checkedIn":false,
"checkedOut":false
}
}
]
}
]
}
]
}