Skip to main content

Get Availability Calendar - Pull_ListPropertyAvailabilityCalendar

This method returns night-by-night calendar including number of available units, minimum stay, maximum stay and changeover day settings.

Use Cases​

  • Provide precise search results to your guests
  • Identify available periods
  • Show minimum length of stay and changeover restrictions

Best Practices​

  1. Request reasonable ranges (1-12 months)
  2. Cache for 15-30 minutes or until you receive an LNM notification
  3. Use LNM for real-time updates

Request​

XML request​

<Pull_ListPropertyAvailabilityCalendar_RQ>
<Authentication>
<AccessKey>[AccessKey]</AccessKey>
<SecretKey>[SecretKey]</SecretKey>
</Authentication>
<PropertyID>1</PropertyID>
<DateFrom>2014-01-04</DateFrom>
<DateTo>2014-01-09</DateTo>
</Pull_ListPropertyAvailabilityCalendar_RQ>

Request fields​

XML PathData TypeTypeDescription
Pull_ListPropertyAvailabilityCalendar_RQCRoot element
Pull_ListPropertyAvailabilityCalendar_RQ/AuthenticationC, MAuthentication details
Pull_ListPropertyAvailabilityCalendar_RQ/Authentication/AccessKeyString(100)MAccess key
Pull_ListPropertyAvailabilityCalendar_RQ/Authentication/SecretKeyString(100)MSecret key
Pull_ListPropertyAvailabilityCalendar_RQ/PropertyIDStringMUnique property ID
Pull_ListPropertyAvailabilityCalendar_RQ/DateFromString(10)MStart of the range(YYYY-MM-DD format)
Pull_ListPropertyAvailabilityCalendar_RQ/DateToString(10)MEnd of the range (the last date to be included in the response)(YYYY-MM-DD format)

Response​

XML response​

<Pull_ListPropertyAvailabilityCalendar_RS>
<Status ID="0">Success</Status>
<ResponseID>0123456789ABCDEF0123456789ABCDEF</ResponseID>
<PropertyCalendar PropertyID="1">
<CalDay Date="2012-03-01" Units="0" Reservations="1" MSMXTypeID="2">
<IsBlocked>true</IsBlocked>
<MinStay>2</MinStay>
<Changeover>1</Changeover>
</CalDay>
<CalDay Date="2012-03-02" Units="1" Reservations="0" MSMXTypeID="2">
<IsBlocked>false</IsBlocked>
<MinStay>3</MinStay>
<Changeover>1</Changeover>
</CalDay>
<CalDay Date="2012-03-03" Units="1" Reservations="0" MSMXTypeID="1">
<IsBlocked>false</IsBlocked>
<MinStay>3</MinStay>
<MaxStay>9</MaxStay>
<Changeover>1</Changeover>
</CalDay>
<CalDay Date="2012-03-04" Units="1" Reservations="0">
<IsBlocked>false</IsBlocked>
<Changeover>4</Changeover>
</CalDay>
<CalDay Date="2012-03-05" Units="1" Reservations="0">
<IsBlocked>false</IsBlocked>
<Changeover>4</Changeover>
</CalDay>
</PropertyCalendar>
</Pull_ListPropertyAvailabilityCalendar_RS>

Response fields​

XML PathData TypeTypeDescription
Pull_ListPropertyAvailabilityCalendar_RSCRoot element
Pull_ListPropertyAvailabilityCalendar_RS/StatusString(100)MSee ListStatuses
Pull_ListPropertyAvailabilityCalendar_RS/Status@IDIntegerMSee ListStatuses
Pull_ListPropertyAvailabilityCalendar_RS/ResponseIDString(32)MUnique response ID
Pull_ListPropertyAvailabilityCalendar_RS/PropertyCalendarC, OSingle property
Pull_ListPropertyAvailabilityCalendar_RS/PropertyCalendar@PropertyIDStringMUnique property ID
Pull_ListPropertyAvailabilityCalendar_RS/PropertyCalendar/CalDayCRepresents a single day
Pull_ListPropertyAvailabilityCalendar_RS/PropertyCalendar/CalDay@DateString(10)MDate(YYYY-MM-DD format)
Pull_ListPropertyAvailabilityCalendar_RS/PropertyCalendar/CalDay@UnitsIntegerMNumber of units available
Pull_ListPropertyAvailabilityCalendar_RS/PropertyCalendar/CalDay@ReservationsIntegerMNumber of confirmed reservations
Pull_ListPropertyAvailabilityCalendar_RS/PropertyCalendar/CalDay@MSMXTypeIDIntegerOMinStay and MaxStay restriction type. Stay-through minimum stay (1) indicates that the restriction applies to every day of the stay. Arrival-only (2) indicates the restriction applies only to the arrival date. MinStay and MaxStay will use the same restriction type.
Pull_ListPropertyAvailabilityCalendar_RS/PropertyCalendar/CalDay/IsBlockedBooleanMReturns whether the property is unavailable for that day. If True/1, the property is not available.
Pull_ListPropertyAvailabilityCalendar_RS/PropertyCalendar/CalDay/MinStayIntegerOMinimum length of stay for that day
Pull_ListPropertyAvailabilityCalendar_RS/PropertyCalendar/CalDay/MaxStayIntegerOMaximum length of stay for that day
Pull_ListPropertyAvailabilityCalendar_RS/PropertyCalendar/CalDay/ChangeoverIntegerMChangeover for that day. See ChangeoverTypes