ResLink

Get Package Availability


Request Profile Table

Element | @Attribute Description/Contents
GetPackage_RQ Root element of message.
PackageID Package ID to query availability for.
DateFrom Start Date of the date range to check availability for.
DateTo End Date of the date range to check availability for.

Scenario:

You want to retrieve Availability of the Package with ID 3.


Example message:

<GetPackageAvailability xmlns="ResLink">   <GetPackageAvailabilityRequest>     <PackageID>3</PackageID>     <DateFrom>2015-02-10</DateFrom>     <DateTo>2015-02-17</DateTo>   </GetPackageAvailabilityRequest> </GetPackageAvailability>


Response Profile Table

Element | @Attribute Description/Contents
GetPackageAvailability_RS Root element of message.
PackageAvailability Object representing a Package Availability instance
  @PackageID ID of the Package
  @Name Name of the Package
TemplateAvailabilities Collection of TemplateAvailability objects
TemplateAvailability Object representing combined availability for a Template
TemplateAvailabilityConfigs Collection of TemplateAvailabilityConfig objects
TemplateAvailabilityConfig Object representing a Template configuration
  @TemplateID ID of the Package Template the configuration is for
  @ComponentID ID of the (default) Component for the Template
  @OffsetType Type of Offset, valid values are ["U" None | "B" Before | "A" After]
  @Offset Offset amount (in nights)
PricingTable Collection of PriceItems
PriceItem Element representing a single Pricing value
  @PaxCount The number of pax the price is for
  @RackRate The Rack Rate for the Operator Voucher Component
  @Commission The Commission for the Operator Voucher Component
  @Currency Currency Code
TemplateAvailabilityDates Collection of TemplateAvailabilityDate objects
TemplateAvailabilityDate Object representing combined availability for a Template on a specific date
  @Date Start date of combined Template Availability
  @Nights Duration of combined Template Availability
  @Available Available spots of combined Template Availability
TemplateAvailabilityDateDetails Collection of TemplateAvailabilityDateDetail objects
TemplateAvailabilityDateDetail Object representing specific Component availability for a Template on a specific date
  @TemplateID ID of the Template
  @ComponentID ID of the Component
  @AvailID ID of the Component Availability
  @Date Start Date of the Component Availability
  @Nights Duration of the Component Availability
  @Available Available sport of the Component Availability

Example message:

<GetPackageAvailabilityResponse xmlns="ResLink">   <GetPackageAvailabilityResult>     <PackageAvailability PackageID="3" Name="Test Package">       <TemplateAvailabilities>         <TemplateAvailability BaseTemplateID="7">           <TemplateAvailabilityConfigs>             <TemplateComponentConfig TemplateID="7" ComponentID="68" OffsetType="U" Offset="0">               <PricingTable>                 <PriceItem PaxCount="1" RackRate="289" Commission="52.02" Currency="AUD" />               </PricingTable>             </TemplateComponentConfig>             <TemplateComponentConfig TemplateID="8" ComponentID="20" OffsetType="B" Offset="0">               <PricingTable>                 <PriceItem PaxCount="1" RackRate="0.00" Commission="0.00" Currency="AUD" />               </PricingTable>             </TemplateComponentConfig>             <TemplateComponentConfig TemplateID="9" ComponentID="20" OffsetType="A" Offset="0">               <PricingTable>                 <PriceItem PaxCount="1" RackRate="0.00" Commission="0.00" Currency="AUD" />               </PricingTable>             </TemplateComponentConfig>             <TemplateComponentConfig TemplateID="91" ComponentID="20" OffsetType="A" Offset="1">               <PricingTable>                 <PriceItem PaxCount="1" RackRate="0.00" Commission="0.00" Currency="AUD" />               </PricingTable>             </TemplateComponentConfig>           </TemplateAvailabilityConfigs>           <TemplateAvailabilityDates>             <TemplateAvailabilityDate Date="2015-02-09T00:00:00" Nights="4" Available="10">               <TemplateAvailabilityDateDetails>                 <TemplateAvailabilityDateDetail TemplateID="7" ComponentID="68" AvailID="22958" Date="2015-02-10T08:30:00" Nights="1" Available="14" />                 <TemplateAvailabilityDateDetail TemplateID="8" ComponentID="20" AvailID="42044" Date="2015-02-09T00:00:00" Nights="1" Available="10" />                 <TemplateAvailabilityDateDetail TemplateID="9" ComponentID="20" AvailID="42046" Date="2015-02-11T00:00:00" Nights="1" Available="100" />                 <TemplateAvailabilityDateDetail TemplateID="91" ComponentID="20" AvailID="42047" Date="2015-02-12T00:00:00" Nights="1" Available="100" />               </TemplateAvailabilityDateDetails>             </TemplateAvailabilityDate>             <TemplateAvailabilityDate Date="2015-02-11T00:00:00" Nights="4" Available="14">               <TemplateAvailabilityDateDetails>                 <TemplateAvailabilityDateDetail TemplateID="7" ComponentID="68" AvailID="22959" Date="2015-02-12T08:30:00" Nights="1" Available="14" />                 <TemplateAvailabilityDateDetail TemplateID="8" ComponentID="20" AvailID="42046" Date="2015-02-11T00:00:00" Nights="1" Available="100" />                 <TemplateAvailabilityDateDetail TemplateID="9" ComponentID="20" AvailID="42048" Date="2015-02-13T00:00:00" Nights="1" Available="100" />                 <TemplateAvailabilityDateDetail TemplateID="91" ComponentID="20" AvailID="42049" Date="2015-02-14T00:00:00" Nights="1" Available="100" />               </TemplateAvailabilityDateDetails>             </TemplateAvailabilityDate>             <TemplateAvailabilityDate Date="2015-02-13T00:00:00" Nights="4" Available="14">               <TemplateAvailabilityDateDetails>                 <TemplateAvailabilityDateDetail TemplateID="7" ComponentID="68" AvailID="22960" Date="2015-02-14T08:30:00" Nights="1" Available="14" />                 <TemplateAvailabilityDateDetail TemplateID="8" ComponentID="20" AvailID="42048" Date="2015-02-13T00:00:00" Nights="1" Available="100" />                 <TemplateAvailabilityDateDetail TemplateID="9" ComponentID="20" AvailID="42050" Date="2015-02-15T00:00:00" Nights="1" Available="100" />                 <TemplateAvailabilityDateDetail TemplateID="91" ComponentID="20" AvailID="42051" Date="2015-02-16T00:00:00" Nights="1" Available="100" />               </TemplateAvailabilityDateDetails>             </TemplateAvailabilityDate>             <TemplateAvailabilityDate Date="2015-02-15T00:00:00" Nights="4" Available="14">               <TemplateAvailabilityDateDetails>                 <TemplateAvailabilityDateDetail TemplateID="7" ComponentID="68" AvailID="22961" Date="2015-02-16T08:30:00" Nights="1" Available="14" />                 <TemplateAvailabilityDateDetail TemplateID="8" ComponentID="20" AvailID="42050" Date="2015-02-15T00:00:00" Nights="1" Available="100" />                 <TemplateAvailabilityDateDetail TemplateID="9" ComponentID="20" AvailID="42052" Date="2015-02-17T00:00:00" Nights="1" Available="100" />                 <TemplateAvailabilityDateDetail TemplateID="91" ComponentID="20" AvailID="42053" Date="2015-02-18T00:00:00" Nights="1" Available="100" />               </TemplateAvailabilityDateDetails>             </TemplateAvailabilityDate>           </TemplateAvailabilityDates>         </TemplateAvailability>       </TemplateAvailabilities>     </PackageAvailability>   </GetPackageAvailabilityResult> </GetPackageAvailabilityResponse>