How can we help?
Follow
SearchHotelAndFlight

Description:

This function is used to search for a hotel & flight combination.

 

Request:

POST http://services.carsolize.com/BookingServices/DynamicPackagingService.svc HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://tempuri.org/IDynamicPackagingService/SearchHotelAndFlight"
Host: services.carsolize.com
Content-Length: 2037
Expect: 100-continue
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

 

Body:

Field Name Description Type Possible Values Mandatory
<Credentials> Credentials that should be used for this function. SearchCredentials   Yes
Username Username which should be used to access the service. String   Depends
Password  Password which should be used to access the service. String   Depends
SessionId In case you already used the OpenSession function and received a valid SessionId, you can pass it instead of the Username & Password. String   Depends
</Credentials> Closer for the Credentials node.      
Request The HotelAndFlightSearchRequest node. HotelAndFlightSearchRequest   Yes
FlightsPageRequest The FlightsPageRequest node. FlightsPageRequest   No
PageNumber   int32   No
ResultsPerPage   int32   No
FlightsFilter The FlightsFilterRequest node. FlightsFilterRequest   No
AircraftType Choose to filter by AircraftType. String []   No
Airlines Choose to filter by Airlines. String []   No
Aliance Choose to filter by Alliance.

FlightAliance []:

OneWorld

SkyTeam

StarAlliance

No
FiltersByLeg The FiltersByLeg node. FlightsFilterRequestPerLeg []   No
ArrivalPeriod The ArrivalPeriod node.

PeriodOfDay []:

Morning

Day

Evening

Night

No
ArrivalTo   String []   No
Connection   String []   No
DepartureFrom   String []   No
DeparturePeriod   PeriodOfDay []:

Morning

Day

Evening

Night

No
DestinationCode   String   No
FlightDurationMax Max duration in hours and minutes Nullable int32   No
FlightDurationMin Min duration in hours and minutes Nullable int32   No
OriginCode   String   No
StopDurationMax Maximum stop duration time between flights in hours and minutes Nullable int32   No
StopDurationMin Minimum stop time duration between flights in hours and minutes Nullable int32   No
</FiltersByLeg> Closer for FiltersByLeg node.      
FlightClass Choose your flight class. ENUM of FlightClassType []

None

Economy

PremiumEconomy

Business

First

PremiumFirst

No
Refundability Choose the refundability of the flight. ENUM of Refundability []

Unknown

Refundable

Nonrefundable

No
SortDescending Choose whether to sort the flight results by Descending (From high to low). Boolean

true

false

No
SortOrder Choose by which property to sort the flights results. FlightSortOrder

Price

DepartureTime

FlightTotalLength

AmountOfStops

No
Stops Choose  int 32 []   No
Suppliers Choose String []   No
MaxPrice Choose the maximum flight price to be returned.   Nullable Double No
MinPrice Choose the minimum flight price to be returned.   Nullable Double No
</FlightsPageRequest> Closer for FlightsPageRequest node.      
 <SearchRequest> The SearchRequest node. DynamicPackagingSearchRequest    
CheckIn Specify the check in date to the hotel. Nullable DateTime   Yes 
CheckOut  Specify the check out date from the hotel. Nullable DateTime   Yes 
DepartureFlightDate  Specify the flight's departure date. DateTime   Yes
DestinationCode  Specify the destination code (3 letters). String   Yes 
DestinationType  Specify the destination type. Enum of LocationType 

Airport

City

Yes
FlightClass Specify the flight class. Enum of FlightClassType  

Economy

PremiumEconomy

Business

First

PremiumFirst

Yes
HotelResultsDetailLevel    Public Entity

Default

Low

Minimal

NoPackages

Meta

LowNoTax

MetaAdvanced

MetaNoTax

Yes
OriginCode Specify the origin code (3 letters). String   Yes 
OriginType  Specify the origin type. Enum of LocationType 

Airport

City

Yes 
ReturnFlightDate  Specify the flight's return date. DateTime   Yes
<Rooms>  The Rooms node.      
<HotelRoomRequest> The HotelRoomRequest node. HotelRoomRequest []   Yes
AdultsCount Specify the adults count for this room. Int32   Yes
KidsAges  Specify the kids ages in this room in an array. Int32 []   Yes
 </HotelRoomRequest> Closer for HotelRoomRequest node.      
</Rooms>  Closer for Room node.      
DesiredResultCurrency Specify the currency in which the search results should be returned. String   Yes
Residency Specify the residency of the client (2 letters). String   Yes
TimeoutSeconds Specify the number of seconds by which you expect to get search results. Int32   No
</SearchRequest> Closer for SearchRequest node.      
IsPaginatedSearch Specify if the search response should be paginated. Boolean   No
</Request> Closer for HotelAndFlightSearchRequest node.      
         

 

Example:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><OpenSession xmlns="http://tempuri.org/"><Username>username@travolutionary.com

</Username>

<Password>password</Password>

</OpenSession>

</s:Body>

</s:Envelope>

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

Comments

Powered by Zendesk