Occupation
Occupation total of hotel day by day
The service runs as the number of times by day (minimum 2, maximum 8). Whenever the service is executed, it will call the endpoint in the PMS partner to get the occupation at the moment.
We need to pass a period to be selected, by default, we use current day + 365 days. Example of call we make.
curl "parceiro_api_endpoint/occupation?startDate=2022-01-01&startDate=2023-01-01" \ -H 'Content-Type: application/json; charset=utf-8'Return a list with the occupation of the hotel day by day between the range selected. Below is a model of the expected list.
Note: The values in total, It's the percent. Ex: 76%, 86%
Hotel
[{ "occupation": 56, "rooms_availability": 7, "rooms_maintenance": 0, "rooms_occupied": 9, "rooms_total": 16, "day": "2023-08-22T00:00:00Z"}, { "occupation": 81, "rooms_availability": 3, "rooms_maintenance": 0, "rooms_occupied": 13, "rooms_total": 16, "day": "2023-08-23T00:00:00Z"}, { "occupation": 94, "rooms_availability": 1, "rooms_maintenance": 0, "rooms_occupied": 15, "rooms_total": 16, "day": "2023-08-24T00:00:00Z"}, { "occupation": 94, "rooms_availability": 1, "rooms_maintenance": 0, "rooms_occupied": 15, "rooms_total": 16, "day": "2023-08-25T00:00:00Z"}, { "occupation": 100, "rooms_availability": 0, "rooms_maintenance": 0, "rooms_occupied": 16, "rooms_total": 16, "day": "2023-08-26T00:00:00Z"}]Category
[{ "occupation": 88, "rooms_availability": 2, "rooms_maintenance": 0, "rooms_occupied": 14, "rooms_total": 16, "day": "2023-08-27T00:00:00Z", "category": "30218"}, { "occupation": 81, "rooms_availability": 3, "rooms_maintenance": 0, "rooms_occupied": 13, "rooms_total": 16, "day": "2023-08-28T00:00:00Z", "category": "30218"}, { "occupation": 56, "rooms_availability": 7, "rooms_maintenance": 0, "rooms_occupied": 9, "rooms_total": 16, "day": "2023-08-29T00:00:00Z", "category": "30218"}, { "occupation": 25, "rooms_availability": 12, "rooms_maintenance": 0, "rooms_occupied": 4, "rooms_total": 16, "day": "2023-08-30T00:00:00Z", "category": "30218"}]