How to Use the Deals API

_1_graph_icon.png

Drive acquisition through deals-focused landing pages which automatically display the latest deals.

_1_illustration.pngThese results are best achieved by using the destination string in the Deals API:

Example:

http://api.ean.com/ean-services/rs/hotel/v3/deals?
cid=[Your CID]
&apiKey=[Your API Key] 
&sig=[Your Signature] 
&minorRev=30
&locale=en_US
&currencyCode=USD
&destinationString=New York, New York
&effectiveStartDate=2017-08-07
&effectiveEndDate=2017-08-09

The number of unique promoIds in your response is your deal count for your requested destination:

_2_illustration.png

 

_2_graph_icon.png

Convert more travelers with act-now messaging that highlights new, expiring and last-minute deals.

_3_illustration.png

 

_4_illustration.png

To showcase expiring deals, look at the effective end date and subtract the current date to get the number of days until the deal ends.

 

_5_illustration.png

To find new deals, find effective start dates and compare against the current date to see if it is new

Display a calendar view of upcoming deals to help customers plan their next trip.  

_6_illustration.png

Use the Deals API's hotelIdList option instead of destinationString to check for upcoming deals from specific hotels:

Example:

http://api.ean.com/ean-services/rs/hotel/v3/deals?
cid=[your cid]
&apiKey=[your API Key] 
&sig=[generated signature]
&minorRev=30
&locale=en_US
&currencyCode=USD
&effectiveStartDate=2017-09-10
&effectiveEndDate=2017-09-12
&hotelIdList=124017

Results:

_7.1_illustration.png

_3_graph_icon.png

Convert more travelers by sending out upcoming hotel deals via email.  

_9_illustration.png

 

This is best done by performing a Deals API request with destinationString:

Example:

http://api.ean.com/ean-services/rs/hotel/v3/deals?
cid=[your cid]
&apiKey=[your API Key] 
&sig=[generated signature]
&minorRev=30
&locale=en_US
&currencyCode=USD
&effectiveStartDate=2017-09-10
&effectiveEndDate=2017-09-12
&destinationstring=Dubai
 

_10_illustration.png

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments