Web Services Help.
Structure Of XML Returned From rqGetAvailability

 Toggle All Open/Closed
 AlcancesData/Credentials/ValidatedUser
Element/Attribute Values Description
UserID String char(12) Returned for use in all Service Requests by rqGetCredential
Status String:- Validated or Invalid Designates If LogIn and Credential are valid
ValidatedEmail String:- Valid Email Address The Validated Email Address In System
Localization String:- ISO eg.. "en-GB" Local Setting
SystemCredential String:- char(12) Returned During Initial Validation
This value is used in Authentication Header for all web service calls.
To get this value, send userid & password to rqGetCredentials.
Then use the returned UserID and SystemCredential for all validation.
 AlcancesData/AlcancesAvailability/Availability/Hotels/Hotel
Element/Attribute Values Description
hotelarea String Area Of Hotel
hotelresort String Resort Of Hotel
name String Name Of Hotel
hotelid Positive Integer Unique Hotel ID
roomsavailable String "Complete" or "Partial"
States wether the Hotel has complete rooms or partial room sets available. A partial RoomSet would be where search is for 7 nights and only 5 nights are returned.
 AlcancesData/AlcancesAvailability/Availability/Hotels/Hotels/Rooms/BoardBasis
Element/Attribute Values Description
boardid Positive Integer integer lD of Board Type
code String:- eg. "HB" , "FB" etc. Text Code of Board Type.,
Description String:- eg. "Half Board" Text Description Of Board Type
 AlcancesData/AlcancesAvailability/Availability/Hotels/Hotels/Rooms/BoardBasis/Room
Element/Attribute Values Description
number Positive Integer, 1 to 6 Integer Representing the number of this room, eg: In a search for 2 Rooms, Room1 2AD 1CH, Room 2 3AD, 0CH.
In The results, all possible combinations can be referenced by the required room number.
roomid Positive Integer Integer, Represents the internal Alcances RoomTypeID Code
adults Positive Integer Integer, Number of adults In This Room
children Positive Integer Integer, Number of children In This Room
infants Positive Integer Integer, Number of infants In This Room
minage Positive Integer Integer, Min. Child Age On Contract For This Room
maxage Positive Integer Integer, Max. Child Age On Contract For This Room
availabilitystatus "A" or "P" "A" Represents All Room Nights Available
"B" Represents Partial Room Nights Available
special "Special" or "StandardRates" String, Designates if this room is on "Special" or "StandardRates"
bookingcode String:- Char(12) **IMPORTANT** Unique Booking Code For this Room. Must be passed back to place booking
totalroomadultprice Decimal Total Sum Of Adults Price
totalroomchildprice Decimal Total Sum Of Child Price
totalroominfantprice Decimal Total Sum Of InfantsPrice
totalroomprice Decimal Total Sum Of Adults+Child+Infants Price
 AlcancesData/AlcancesAvailability/Availability/Hotels/Hotels/Rooms/BoardBasis/Room/RoomDescription
Element/Attribute Values Description
roomDescription String:- varchar(50) Text Description Of Room Type
 AlcancesData/AlcancesAvailability/Availability/Hotels/Hotels/Rooms/BoardBasis/Room/Transfers/TransferRates
3 Elements In TransferRates, inbound, outbound and inboundoutbound. Represent 3 x types of Transfer Product for this room and its occupant. All 3 have the 4 Attributes Below. The BookingCode is unique to each of the 3 products. Return the required code if you wish to purchase the transfer.
Element/Attribute Values Description
bookingcode String: Must Be Returned In Booking Data To Reserve and Purchase A Transfer
rate Decimal Price Of Transfer
pax String Denotes For Number Of PAX. Is Possible to have room with 6PAX, and 6 types of Transfer products based upon 1-4 PAX and 5-7 PAX.
Description String Product Description
 AlcancesData/AlcancesAvailability/Availability/Hotels/Hotels/Rooms/BoardBasis/Room/AdultRates
Element/Attribute Values Description
Number Positive Integer Represents A Adult In Room
Rate Decimal Price Of Adult
Nights Positive Integer Nights Rate Valid For
Date Date Date Valid For
 AlcancesData/AlcancesAvailability/Availability/Hotels/Hotels/Rooms/BoardBasis/Room/ChildRates
Element/Attribute Values Description
MinChildAge Positive Integer Min. ChildAge In Room
MaxChildAge Positive Integer Max. ChildAge In Room
Child/Number Positive Integer Number Of Child In Room
Child/Rate Decimal Price Of Child
Child/Nights Positive Integer Nights Rate Valid For
 AlcancesData/AlcancesAvailability/Availability/Hotels/Hotels/Rooms/BoardBasis/Room/InfantRates
Element/Attribute Values Description
Infant/Number Positive Integer Number Of Infant In Room
Infant/Rate Decimal Price Of Infant
Infant/Nights Positive Integer Nights Rate Valid For
 AlcancesData/AlcancesAvailability/Availability/Hotels/Hotels/Rooms/BoardBasis/Room/FixedSupplements
** Important! **
The FixedSupplements Element May Optionally include the following
..AdultSupplement Element And Its Attributes As Listed Below
..ChildSupplement Element (As AdultSupplement Element, but called "ChildSupplements")
..InfantSupplement Element (As AdultSupplement Element, but called "ChildSupplements")
Element/Attribute Values Description
ChildrenTotal Decimal Total Value Of Child Fixed Supplements
AdultsTotal Decimal Total Value Of Adult Fixed Supplements
InfantsTotal Decimal Total Value Of Infant Fixed Supplements
AdultSupplement/Rate Decimal Unit Price Of Supplemnent
AdultSupplement/RateType Money or % Denotes Type Of Suppplement
AdultSupplement/Nights Positive Integer Number Of Nights Valid For
AdultSupplement/Description String Description Of Supplement
AdultSupplement/Unit String:- PAX, NIGHT or STAY Depicts Unit Of Pricing
AdultSupplement/Qty Positive Integer Quantity Sold
AdultSupplement/Total Decimal AdultSupplement/Rate * AdultSupplement/Qty
 AlcancesData/AlcancesAvailability/Availability/Hotels/Hotels/Rooms/BoardBasis/Room/OptionalSupplements
Not Currently Available via Web Services
 AlcancesData/AlcancesAvailability/SearchCriteria
Element/Attribute Values Description
nights Positive Integer
rooms Positive Integer
checkin Date
checkout Date
roomnumber Positive Integer
numberofadults Positive Integer
numberofchildren Positive Integer
childage1 Positive Or Negative nteger
childage2 Positive Or Negative nteger
childage3 Positive Or Negative nteger
childage4 Positive Or Negative nteger
childage5 Positive Or Negative nteger
childage6 Positive Or Negative nteger
 AlcancesData/AlcancesAvailability/SpecialOffers/HotelSpecials
Not Currently Available Via Web Services.
Please Note! Special Offers and Standard Rates Are Automatically Inluded In The Search Results

XML Output:
<AlcancesData>
   <Credentials>
     <ValidatedUser>
       <UserID>xxxxxxxxxxxx</UserID>
       <Status>Validated</Status>
       <ValidatedEmail>xx@yy.com</ValidatedEmail>
       <Localization>en-GB</Localization>
       <SystemCredential>yyyyyyyyyyyy</SystemCredential>
     </ValidatedUser>
   </Credentials>
<AlcancesAvailability>
  <Availability>
    <Hotels>
      <Hotel HotelArea="Mallorca" HotelResort="Santa Ponsa" Name="Club Santa Ponsa" HotelID="529" RoomsAvailable="Complete">
        <Rooms>
          <BoardBasis BoardID="1" Code="HB" Description="Half Board">
            <Room Number="1" RoomID="95" Adults="2" Children="0" Infants="0" MinAge="2" MaxAge="12" AvailabilityStatus="A"
                Special="StandardRates" BookingCode="075E13D94C43" TotalRoomAdultPrice="262.8" TotalRoomChildPrice="0"
                TotalRoomInfantPrice="0" TotalRoomPrice="262.80">
              <RoomDescription>STUDIO (MAX 3AD or 2AD+1CH)</RoomDescription>
              <Transfers>
                <TransferRates>
                  <InBound BookingCode="TR1_26_075E13D94C43" Rate="39.47" PAX="1-4" Description="Oneway (InBound)" />
                  <OutBound BookingCode="TR2_462_075E13D94C43" Rate="39.47" PAX="1-4" Description="Oneway (OutBound)" />
                  <InBoundOutBound BookingCode="TR3_378_075E13D94C43" Rate="78.94" PAX="1-4" Description="ReturnTrip" />
                </TransferRates>
              </Transfers>
              <AdultRates>
                <Adult Number="1" Rate="17.20" Nights="1" Date="01/12/2005" />
                <Adult Number="2" Rate="17.20" Nights="1" Date="01/12/2005" />
              </AdultRates>
              <ChildRates MinChildAge="2" MaxChildAge="12" >
                <Child Number="1" Rate="17.20" Nights="1" />
                <Child Number="2" Rate="17.20" Nights="1" />
              </ChildRates>
              <InfantRates >
                <Infant Number="1" Rate="0" Nights="1" />
                <Infant Number="2" Rate="0" Nights="1" />
              </InfantRates>
              <FixedSupplements ChildrenTotal="0" AdultsTotal="0" InfantsTotal="0" >
              <OptionalSupplements />
            </Room>
          </BoardBasis>
        </Rooms>
      </Hotel>
    </Hotels>
  </Availability>
</AlcancesAvailability>
<AlcancesData>