Property Search

Returns a list of property ids or full property content for the requested active properties. Use this API to retrieve property ids or full property content based on your search criteria.

Parameters

Name

Description

Accept

string

( header )

Must be application/json

Accept - Encoding

string

( header )

Must be gzip

Authorization

string

( header )

Must be Your API Key

Customer-Ip

string

( header )

Must be IP address of the customer, as captured by your integration. Send IPV4 addresses only.

Ensure your integration passes the customer’s IP, not your own. This value helps determine their location and other settings.

Also used for fraud recovery and other important analytics.

action

string

( query )

Must be "search" as parameter

Action methods in Web API controller can have one or more parameters of different types. It can be either primitive type or complex type. Web API binds action method parameters either with URL's query string or with request body depending on the parameter type.

apiKey

string

( query )

Must be a valid API Key

The API Key provided to you is critical to the security of your request data – treat it like a password. Never include the raw value in any publicly accessible site or app code. You will be provided with an API key when you are approved to integrate TPS API.

ModeType

string

( query )

Must be either "Test" or "LIVE"

Your application must be approved from Adivaha Personnel. All the transactions will be treated as LIVE once the parameter is set to LIVE.

requestBody

array

( query )

Must be an array with the following parameters

regionid

string

( query )

Must be combination of Latitude and Longitude with | seperated. ie. "regionid":"22.56972|88.36972"

destination

string

( query )

Region name picked from Destination Autocomplete (Text name of the Place, State/Province - more common for additional countries.) ie. "destination:Kolkata, India"

checkIn

string

( query )

The date by which a guest must check in. Must follow YYYY-MM-DD format. ie. "checkIn:2019-05-30"

checkOut

string

( query )

The date by which a guest must check out. Must follow YYYY-MM-DD format. ie. "checkIn:2019-05-31"

rooms

number

( query )

Number of rooms to be set for the search, can be between 1-7

adults

number

( query )

Number of adults to be set for the search, can be between 1-4

children

number

( query )

Number of children to be set for the search, can be between 1-2

REQUEST

API Endpoint: https://travelbeesapi.com/webServices/hotels/v2-sandbox/api.php

header: array(
'Content-Type:application/json',
'Accept-encoding: gzip',
'x-api-key:'ADD-YOUR-KEY'
);

GET: https://travelbeesapi.com/webServices/hotels/v2-sandbox/api.php?action=getLocations&requestBody={"regionid": "28.632558|77.220036","destination": "New delhi, India","checkIn": "06/28/2019","checkOut": "06/29/2019","rooms": 1,
"adults": 2,"children": 0}
					 

Response

The API returns an HTTP response, which generally includes the result of the request invocation

{
    "status": 200,
    "status_message": "OK",
    "responseData": {
        "regionid": "28.632558|77.220036",
        "destination": null,
        "rooms": 1,
        "adults": 2,
        "children": 0,
        "checkIn": "05/30/2019",
        "checkOut": "05/31/2019",
        "HotelLists": {
            "size": 200,
            "PropertyCount": 954,
            "HotelList": [
                {
                    "HotelID": "260962",
                    "Name": "Hotel Palace Heights",
                    "Location": "Near Jantar Mantar",
                    "Address1": "D-26/28 Connaught Place",
                    "Address2": "Inner circle (B. Odeon Big Cinema)",
                    "City": "New Delhi",
                    "StateProvince": "",
                    "PostalCode": "110001",
                    "Country": "IN",
                    "Latitude": "28.63412",
                    "Longitude": "77.22068",
                    "PropertyCategory": "1",
                    "StarRating": "3.0",
                    "distance": "0.11477984491063374",
                    "thumbnail": "https://adivaha.com/hotels/2000000/1790000/1782800/1782711/c120af07_b.jpg",
                    "HighRate": "71.86",
                    "LowRate": "71.86",
                    "tripAdvisorRating": "4.5",
                    "tripAdvisorReviewCount": "771",
                    "valueAdds": "Breakfast Buffet,Free Wireless Internet",
                    "currentAllotment": 15
                },
                {
                    "HotelID": "313956",
                    "Name": "The Corus Hotel",
                    "Location": "Near Jantar Mantar",
                    "Address1": "B-49, Inner Circle, Connaught Place",
                    "Address2": "Front of Rajeev Chowk Metro Station",
                    "City": "New Delhi",
                    "StateProvince": "",
                    "PostalCode": "110001",
                    "Country": "IN",
                    "Latitude": "28.63361",
                    "Longitude": "77.21830",
                    "PropertyCategory": "1",
                    "StarRating": "3.0",
                    "distance": "0.12793993449208424",
                    "thumbnail": "https://adivaha.com/hotels/2000000/1190000/1184800/1184743/dc22807c_b.jpg",
                    "HighRate": "80.47",
                    "LowRate": "80.47",
                    "tripAdvisorRating": "3",
                    "tripAdvisorReviewCount": "299",
                    "valueAdds": ",Breakfast Buffet",
                    "currentAllotment": 13
                },
                {
                    "HotelID": "482371",
                    "Name": "Jukaso Inn Down Town",
                    "Location": "Near Jantar Mantar",
                    "Address1": "L-Block, Connaught Circus",
                    "Address2": "",
                    "City": "New Delhi",
                    "StateProvince": "",
                    "PostalCode": "110 001",
                    "Country": "IN",
                    "Latitude": "28.63399",
                    "Longitude": "77.22169",
                    "PropertyCategory": "1",
                    "StarRating": "2.5",
                    "distance": "0.14090024300232534",
                    "thumbnail": "https://adivaha.com/hotels/10000000/9520000/9510600/9510580/96c56f41_b.jpg",
                    "HighRate": "55.26",
                    "LowRate": "55.26",
                    "tripAdvisorRating": "3",
                    "tripAdvisorReviewCount": "90",
                    "valueAdds": ",Continental Breakfast,Free Wireless Internet",
                    "currentAllotment": 14
                }
                
            ]
        }
    }
}