Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To check which reservations are arriving today we use the arrivalFrom/arrivalTo filters. These are a range of days, but if we use the same date on both you will get the arrivals for a single date. Remember that the format is yyyy-MM-dd! That can be applied to departureFrom/departureTo, stayFrom/stayTo and createdFrom/createdTo (the format on these last two is yyyy-MM-dd'T'HH:mm:ss.SSS'Z' ). The url would look like this:

Code Block
languagepowershell
themeDJango
http://{ulysescloudURL}/public/api/v1/chain/1/property/3/reservation?arrivalFrom=2018-12-18&arrivalTo=2018-12-18

Filtering by reservations that are pending to arrive today

Using the mentioned filters you can get the pending to arrival reservationRoomStay. Since "pending" is a situation you can ask for the situations in the ReservationSituationType endpoint and then use its id in the Reservation filters. To set an arrival date set arrivalFrom/arrivalTo filters to the same date value. It would look like this:

Code Block
languagepowershell
themeDJango
http://{ulysescloudURL}/public/api/v1/chain/1/property/3/reservation?arrivalFrom=2018-12-18&arrivalTo=2018-12-18&reservationSituationTypeId=4

Filtering by reservations that depart today

To check which reservations are arriving today we use the departureFrom/departureTo filters. These are a range of days, but if we use the same date on both you will get the departures for a single date. Remember that the format is yyyy-MM-dd! That can be applied to arrivalFrom/arrivalTo, stayFrom/stayTo and createdFrom/createdTo (the format on these last two is yyyy-MM-dd'T'HH:mm:ss.SSS'Z' ). The url would look like this:

Code Block
languagepowershell
themeDJango
http://{ulysescloudURL}/public/api/v1/chain/1/property/3/reservation?departureFrom=2018-12-18&departureTo=2018-12-18

Filtering by reservations that are pending to depart today

Since all the reservations that should depart today and haven't done the checkout are in the situation "inHouse" you can ask for the situations in the ReservationSituationType endpoint and then use its id in the Reservation filters. To set a departure date set departureFrom/departureTo filters to the same date value. It would look like this:

Code Block
languagepowershell
themeDJango
http://{ulysescloudURL}/public/api/v1/chain/1/property/3/reservation?departureFrom=2018-12-18&departureTo=2018-12-18&reservationSituationTypeId=3