Home » Knowledge Base » Search Requests » Response

Response

Parameter Details

** fields are sometimes not returned. This may be a self-closing element or not present.

NameTypeDescription
RequestInfoobjectSee the Request section for details.
ReturnStatusobject
PropertyResultsobjectNot present on Exception.
Total PropertiesintegerThe total number of PropertyResult elements.
PropertyResultobject
••PropertyIDinteger
••PropertyNamestring
••Supplierobject
•••SupplierIDinteger
•••SupplierNamestringInformational only. Please rely on SupplierID
••GIATAIDintegerHotel’s GIATA ID if available. Self-closing if not present.
••CurrencystringCurrency of the result. This will be USD unless by prior arrangement.
••RatingdecimalStar-rating. Half stars are represented as a .5
••Errata **objectSometimes not returned. This may be a self-closing element or not present.
•••Erratumobject
••••StartDatedate stringStarting date the Erratum applies.
••••EndDatedate stringEnding date the Erratum applies.
••••DescriptionstringDescription of the Erratum.
••GeographyLevel1IDinteger
••GeographyLevel2IDinteger
••GeographyLevel3IDinteger
••Countrystring
••Areastring
••Regionstring
••Straplinestring
••Descriptionstring
••CMSBaseUR **stringSometimes not returned. Used to get images below. Note that this and MainImage elements may be missing if no images are available.
••MainImage **stringSometimes not returned. Filename of the main image.
••MainImageThumbnail **stringSometimes not returned. Filename of the main image thumbnail.
••Images **objectSometimes not returned.
•••Imageobject
••••FullSizestringFilename of the full size image.
••••ThumbnailstringFilename of the thumbnail image.
••RoomTypesobject
•••RoomTypeobject
••••RoomIDintegerUsed for making a booking. Integer is 64bit unsigned.
••••RateCode **stringReturned for some properties. Informational only.
••••PropertyRoomID **integerSometimes not returned. Used to identify the physical room and tie it to its Name. Only enabled by request.
••••MealBasisIDinteger
••••NamestringName of the room.
••••View **stringSometimes not returned. This may be a self-closing element or not present.
View of the room. E.g. Ocean View. See Developer Information section.
••••AdultsintegerMaximum number of adults.
••••ChildrenintegerMaximum number of children.
••••InfantsintegerMaximum number of infants.
••••OnRequestbooleanIf true, this room cannot be booked via XML and can only be done manually via phone.
••••SubTotaldecimalAmount before any Supplements, Special Offers or Taxes
••••TotaldecimalAmount after all Supplements, Special Offers or Taxes
••••RoomAppliesToobject
•••••RoomRequestobjectRoomRequest that the response is relevant to.
••••Supplements ** objectSometimes not returned. This may be a self-closing element or not present.
•••••Supplementobject
••••••Namestring
••••••Desc **stringSometimes not returned.
••••••Durationstring enumPer Supplement Per Holiday Per Night
••••••Multiplierstring enumPer Room Per Person
••••••PaxType **string enumSometimes not returned. Only when Multiplier = “Per Person”
All Adult/Child Adult Only
••••••TotaldecimalTotal cost of supplement.
••••SpecialOffers **objectSometimes not returned. This may be a self-closing element or not present.
•••••SpecialOfferobject
••••••Namestring
••••••Typestring enumDiscount Value Discount Percentage Free Kids Free Nights Value Added
•••••••PaxType **string enumSometimes not returned. Only set when Type = “Discount Percentage”
One of:
All Adult Only
•••••••ValuedecimalSometimes not returned. When:
Type = “Free Kids”; Value = # free kids
Type = “Free Nights”; Value = # free nights
Type = “Discount Percentage”; the highest value applicable to any person on any day of the stay. In effect this value is “discount up to n%”.

Please note that this field is for reference only.

The total amount taken off the booking is in SpecialOffer/Total
•••••••Desc **stringSometimes not returned.
May be set when Type = “Value Added”
•••••••Total **decimalSometimes not returned. Total discount of Special Offer.
Not set when Type = “Value Added”
••••Taxes **objectSometimes not returned. This may be a self-closing element or not present.
•••••Taxobject
••••••TaxNamestring
••••••InclusivebooleanWhen “true“, tax is included in original room price {Subtotal}.
When “false“, tax is added on {included in Total figure}
••••••TotaldecimalTotal cost of the tax.
••••CancellationPolicies **objectSometimes not returned. This may be a self-closing element or not present.
•••••CancelBydate stringFormat: yyyy-mm-dd

This is the date the cancellation policy starts. Eg) if CancelBy date is 2000-6-1, a cancellation on 2000-5-31 has no penalty however a cancellation on or after 2000-6-1 would have the penalty applied.

When there are multiple CancellationPolicies returned the one with the latest applicable date is used.
•••••PenaltydecimalTotal value of the penalty.

Example Response

<?xml version="1.0" encoding="UTF-8"?>
<SearchResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance">
    <ReturnStatus>
    <Success>True</Success>
    <Exception />
  </ReturnStatus>
  <PropertyResults>
    <TotalProperties>1</TotalProperties>
    <PropertyResult>
      <PropertyID>99</PropertyID>
        <RoomTypes>
          <RoomType>
            <RoomID>999</RoomID>
            <PropertyRoomTypeID>1</PropertyRoomTypeID>
            <MealBasisID>1</MealBasisID>
            <Name>Example Villa</Name>
            <Supplier>
              <SupplierID>6</SupplierID>
              <SupplierName>RMI</SupplierName>
            </Supplier>
            <View>Sea View</View>
            <Adults>2</Adults>
            <Children>2</Children>
            <Infants>1</Infants>
            <OnRequest>True</OnRequest>
            <SubTotal>5896.80</SubTotal>
            <Total>6565.35</Total>
            <RoomsAppliesTo>
              <RoomRequest>1</RoomRequest>
            </RoomsAppliesTo>
            <Supplements>
              <Supplement>
                <Name>test supplement</Name>
                <Duration>Per Night</Duration>
                <Multiplier>Per Person</Multiplier>
                <PaxType>Adult Only</PaxType>
                <Total>220</Total>
              </Supplement>
            </Supplements>
            <SpecialOffers>
              <SpecialOffer>
                <Name>Example special offer</Name>
                <Type>Value Added</Type>
                <PaxType />
                <Value />
                <Desc>test desc</Desc>
                <Total />
              </SpecialOffer>
              <SpecialOffer>
                <Name>Example special offer 2</Name>
                  <Type>Free Kids</Type>
                  <PaxType />
                  <Value>1</Value>
                  <Desc>test desc</Desc>
                  <Total>1000</Total>
              </SpecialOffer>
            </SpecialOffers>
            <Taxes>
              <Tax>
              <TaxName>test %</TaxName>
              <Inclusive>False</Inclusive>
              <Total>1148.55</Total>
            </Tax>
            <Tax>
              <TaxName>Government Tax</TaxName>
              <Inclusive>True</Inclusive>
              <Total>423.15</Total>
            </Tax>
            <Tax>
              <TaxName>Service Charge</TaxName>
              <Inclusive>True</Inclusive>
              <Total>604.5</Total>
            </Tax>
            <Tax>
              <TaxName>test</TaxName>
              <Inclusive>False</Inclusive>
              <Total>300</Total>
            </Tax>
          </Taxes>
        <CancellationPolicies>
        <CancellationPolicy>
          <CancelBy>2020-07-11</CancelBy>
          <Penalty>574.28</Penalty>
        </CancellationPolicy>
        <CancellationPolicy>
          <CancelBy>2020-07-18</CancelBy>
          <Penalty>1148.55</Penalty>
        </CancellationPolicy>
      </CancellationPolicies>
    </RoomType>
    <RoomType>
      <RoomID>998</RoomID>
      <MealBasisID>1</MealBasisID>
      <Name>Example Villa</Name>
      <View>Sea View</View>
      <Adults>2</Adults>
      <Children>0</Children>
      <Infants>0</Infants>
      <OnRequest>True</OnRequest>
      <SubTotal>3960</SubTotal>
      <Total>4400</Total>
      <RoomsAppliesTo>
        <RoomRequest>2</RoomRequest>
      </RoomsAppliesTo>
      <Supplements/>
        <SpecialOffers>
          <SpecialOffer>
            <Name>Early Bird Booking</Name>
            <Type>Adult Only</Type>
            <PaxType>All</PaxType>
            <Value>10</Value>
            <Desc/>
            <Total>440</Total>
          </SpecialOffer>
        </SpecialOffers>
        <Taxes>
          <Tax>
            <TaxName>Government Tax</TaxName>
            <Inclusive>True</Inclusive>
            <Total>423.15</Total>
          </Tax>
        </Taxes>
        <CancellationPolicies>
          <CancellationPolicy>
            <CancelBy>2020-07-18</CancelBy>
            <Penalty>440</Penalty>
            </CancellationPolicy>
          </CancellationPolicies>
        </RoomType>
      </RoomTypes>
      <PropertyName>Example Island</PropertyName>
      <Supplier>
        <SupplierID>6</SupplierID>
        <SupplierName>RMI</SupplierName>
      </Supplier>
      <GIATAID>99999</GIATAID>
      <Currency>USD</Currency>
      <Rating>4.5</Rating>
      <Errata>
        <Erratum>
          <StartDate>2022-08-04</StartDate>
          <EndDate>2022-08-11</EndDate>
          <Description>Small pool will be closed for maintenance</Description>
        </Erratum>
      <Errata>
      <GeographyLevel1ID>6</GeographyLevel1ID>
      <GeographyLevel2ID>10</GeographyLevel2ID>
      <GeographyLevel3ID>22</GeographyLevel3ID>
      <Country>West Indies</Country>
      <Area>St Vincent &amp; Grenadines</Area>
      <Region>Example Island</Region>
      <Strapline>Intimate, exotic and all-inclusive</Strapline>
      <Description>Example Island, a high-end luxury resort</Description>
      <CMSBaseURL>https://xmlhost/custom/content/</CMSBaseURL>
      <MainImage>CMSImage_999.jpg</MainImage>
      <MainImageThumbnail>CMSImageThumb_999.jpg</MainImageThumbnail>
      <Images>
        <Image>
          <FullSize>CMSImage_1000.jpg</FullSize>
          <Thumbnail>CMSImageThumb_1000.jpg</Thumbnail>
        </Image>
        <Image>
          <FullSize>CMSImage_1001.jpg</FullSize>
          <Thumbnail>CMSImageThumb_1001.jpg</Thumbnail>
        </Image>
      </Images>
    </PropertyResult>
  </PropertyResults>
</SearchResponse>
keyboard_arrow_up To top