Documentation

api.reservations.from_reservation_id

Returns a reservation given some reservation ID. If the reservation can not be found, it returns None. Pass latest=True to return the latest iteration of this reservation chain since each edit of a reservation receives a unique reservation ID, this ensures you are on the latest version of a reservation even if you pass in an older ID.

Arguments:

def api.reservations.from_reservation_id(
  reservation_id: str = None, # Reservation ID
  latest: bool = None, # Whether to return the latest edit of this reservation
):

Returns a dict representing a reservation or None.

Example:

reservation_dict = api.reservations.from_reservation_id(reservation_id="foo")