Affiliate
Welcome to the Alphabeds affiliate programme, using Travelcentral from Aria Software. Affiliate.asmx is an XML Webservice that offers room availability to our affiliate partners so that they can show our product range on their website. Click on a method below to find out more about the operations behind Affiliate.asmx.
General notes
- There are currently 4 webmethods which fetch availability from our system
- State is transferred to the Alphabeds site using an encoded cgi string
- Prices are returned at gross rates in GBP, unless a currency is supplied
- Prices on some rooms may be approximate. This is due to some limitations of legacy systems. When the user clicks on the valuate link, the price given will be the final price.
Technical notes
- Take note of the HTTP headers you must pass with each XML document. The XML panel in each webmethod description is essentially the HTTP string you should be posting.
- This is a SOAP implementation of an XML Webservice. Whilst using a SOAP toolkit isn't strictly necessary, it will help speed up development.
- Some errors will be returned in an <XMLError> tag in each result set (e.g. missing node values). SOAP Exceptions may be generated (e.g. malformed SOAP request); these will return a server error 500 and a SOAP message. This is as per the SOAP specification.
- Dates in the TravelCentral system are always processed in the following format: YYYY-MM-DD
- As we interact with many different systems, do not assume that a node named "EdiCode" will always be an integer. Many codes and keys will take a variety of string forms, so it is wise to budget for a reasonable string length in your internal systems (128 will be adequate for most code fields).
- MasterDestination fields are taken from the Travelcentral master list of destinations. These are in the form of a GUID and should be given in the format: {ABCD-EFGH-IJKL-MNOP}.
The following operations are supported. For a formal definition, please review the Service Description.
-
GetAvailability
MessageName="GetAffiliateAvailability"
This method returns availability from all available rooms in the Travelcentral system. Availability (at the moment) is queried one room at a time. To use the method, simply pass the required parameters and a result set is returned that you may need to store in your own business logic.
Valuating the results on the alpha site
Once a customer has found an available room, they must submit it for valuation to the Alpha-beds website.This valuation will give the customer the final price and alows the customer to continue the booking process.The search parameters must be passed in the following format:
http://www.alpharooms.com/hotel.aspx?
destinationid=destinationID
&affiliate=au.Code1
&sessionid=SessionID
&code1=au.Code1
&r=au.Code1
&from_date=arrdate(yyyy-MM-dd)
&to_date=depdate(yyyy-MM-dd)
&destinationkey=room.DestinationKey
&boardcode=BoardCode
&roomcode=RoomCode
&roomadults=1
&roomchildren=2
&edisource=EdiSource
&edicode=EdiCode
&contract=Contract
&incoming_contract=IncomingContract
&childage1=0
&childage2=0
&establishmentkey=room.EstablishmentKey
&searched=true
For Example, Playa Nous Hotel: http://holovirus/AlphaBeds3/hotel.aspx?destinationid=fdcecbb6-b92e-4495-baa4-700f5d046687&affiliate=affiliatename&sessionid=9269381e-5f6b-48ca-9c28-1d7ec42213d3&code1=affiliatename&r=affiliatename&from_date=2006-09-14&to_date=2006-09-21&destinationkey=MALLORCA%20(MAJORCA)&boardcode=BB&roomcode=7074&roomadults=1&roomchildren=2&edisource=O&edicode=846&contract=07852466-a27c-4437-afb2-4952d78fc1c5&incoming_contract=zzzzzz&childage1=0&childage2=0&establishmentkey=1f57a009-6fc4-40a3-b887-a73edb314c40&searched=true
If a field from the XML is blank, just pass an empty value in the CGI string. -
GetAvailabilityByDestinationName
MessageName="GetAffiliateAvailabilityByDestinationName"
As GetAffiliateAvailability but takes a destination name rather than an ID -
GetAvailabilityByDestinationNameAndCurrency
MessageName="GetAffiliateAvailabilityByDestinationNameAndCurrency"
As GetAffiliateAvailabilityByDestinationName but takes Currency Too (USD, EUR, GBP - anything else defaults to GBP) -
GetAvailabilityWithCurrency
MessageName="GetAffiliateAvailabilityWithCurrency"
As GetAffiliateAvailability but you can pass in a currency value too to get your results in the currency of your choice (USD, EUR, GBP - anything else defaults to GBP) -
GetAvailabilityWithCurrencyAndLocale
MessageName="GetAffiliateAvailabilityWithCurrencyAndLocale"
As GetAffiliateAvailability but you can pass in a currency value too to get your results in the currency of your choice (USD, EUR, GBP - anything else defaults to GBP). Locale = 2057 (UK) 1036 (fr) 1031 (de) 3082 (es) -
GetAvailabilityWithPF
MessageName="GetAffiliateAvailabilityWithPF"
This method returns availability from all available rooms in the Travelcentral system. Availability (at the moment) is queried one room at a time. To use the method, simply pass the required parameters and a result set is returned that you may need to store in your own business logic.
Valuating the results on the alpha site
Once a customer has found an available room, they must submit it for valuation to the Alpha-beds website.This valuation will give the customer the final price and alows the customer to continue the booking process.The search parameters must be passed in the following format:
http://www.alpharooms.com/hotel.aspx?
destinationid=destinationID
&affiliate=au.Code1
&sessionid=SessionID
&code1=au.Code1
&r=au.Code1
&from_date=arrdate(yyyy-MM-dd)
&to_date=depdate(yyyy-MM-dd)
&destinationkey=room.DestinationKey
&boardcode=BoardCode
&roomcode=RoomCode
&roomadults=1
&roomchildren=2
&edisource=EdiSource
&edicode=EdiCode
&contract=Contract
&incoming_contract=IncomingContract
&childage1=0
&childage2=0
&establishmentkey=room.EstablishmentKey
&searched=true
For Example, Playa Nous Hotel: http://holovirus/AlphaBeds3/hotel.aspx?destinationid=fdcecbb6-b92e-4495-baa4-700f5d046687&affiliate=affiliatename&sessionid=9269381e-5f6b-48ca-9c28-1d7ec42213d3&code1=affiliatename&r=affiliatename&from_date=2006-09-14&to_date=2006-09-21&destinationkey=MALLORCA%20(MAJORCA)&boardcode=BB&roomcode=7074&roomadults=1&roomchildren=2&edisource=O&edicode=846&contract=07852466-a27c-4437-afb2-4952d78fc1c5&incoming_contract=zzzzzz&childage1=0&childage2=0&establishmentkey=1f57a009-6fc4-40a3-b887-a73edb314c40&searched=true
If a field from the XML is blank, just pass an empty value in the CGI string.