Pull endpoints
Hotel info and Room Types
Information about hotel for registration process and structure of room type and rooms.
Usage:
- loading hotel info and structure when registering a new hotel
- synchronizing hotel structure - infrequent polling and request when wrong synchronization is detected (unknown room etc.)
post/hotel
Request body
Example request
{
"accessToken": "aa5ae844-051c-4d30-9c67-54b70c99b580"
}Response
OK
Example response
{
"id": "123456",
"name": "Hotel Example",
"address": {
"street": "Pernerova 691",
"city": "Praha 8",
"country": "CZ"
},
"roomTypes": [
{
"id": "123456",
"name": "Double room",
"beds": 2,
"extraBeds": 1,
"roomsCount": 10,
"rooms": [
{
"id": "125",
"name": "Room 125"
}
]
}
]
}