User Tools

Site Tools


data:request:filters

Inquiry: filters

Description

Inquiry type filters returns a list of possible field values ​​for any requests kryteria wyszukiwania.

Selecting one field

You can limit the list of results for one field by specifying its value in the condition filters

Field nametypecontains
trp_rFlightChangeCountintNumber of stops for return flight
trp_flightChangeCountintNumber of stops for ongoing flight
trp_durationintnumber of days
trp_destinationintRegion of the trip/event
trp_depNametextplace of departure / start
trp_depNametextplace of departure / start
trp_depDatedateDate of departure / departure / start of trip
trp_depCodecharCode of departure location/airport ( IATA Code )
ofr_xCatalogcharcatalogs unified by MerlinX
ofr_typecharType of offer
ofr_transferTypecharInfo if transfer is included
ofr_tourOpchartouroperator code
ofr_residentcharResident is available or not
ofr_refundablecharOffer have some flex rules or not
ofr_catalogcharCatalog code
obj_xServiceIdintID meal/service assigned by MerlinX
obj_xCodeintID assigned to the hotel by MerlinX
obj_xCitytextThe city in which the object is assigned by MerlinX (original or revised)
obj_xAttributesbitmaskObject's attributes / flag offer
obj_typecharObject type (hotel/round trip/cruise /...)
obj_roomcharRoom code/ accommodation
obj_luggagecharInfo if main baggage is included
obj_citytextThe city in which the object is located
obj_categoryintCategory of the object multiplied by 10

np:

  <conditions>
    <filters>trp_depDate</filters>
  (...)

Inquiry

Sample request for flowing filters: a trip for 2 adults, ITAKA operator, tour start date between 20.10.2010 and 24.11.2010, the name of the hotel must contain the text “Resort”:

<?xml version='1.0'?>
<mds>
   <auth>
      <login>demo</login>
      <pass>demo</pass>
   </auth>
   <request>
     <type>filters</type>
     <conditions>
       <par_adt>2</par_adt>     
       <ofr_tourOp>ITAK</ofr_tourOp>
       <trp_depDate>20101020:20101124</trp_depDate>
       <obj_codeNameFts>Resort</obj_codeNameFts>
       <filters>trp_depDate,trp_depDesc,ofr_catalog,obj_room,obj_xServiceId,ofr_tourOp,trp_durationM,obj_category,obj_xCity,obj_xCode</filters>
     </conditions>
   </request>
</mds>

answer

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<response>
	<fdef id="trp_depDate">
		<f id="20101020"/>
		<f id="20101021"/>
		<f id="20101024"/>
	</fdef>
	<fdef id="trp_depDesc">
		<f id="Warszawa"/>
		<f id="Wrocław"/>
 
	</fdef>
	<fdef id="ofr_catalog">
		<f id="KL10"/>
		<f id="KN10"/>
		<f id="L291"/>
	</fdef>
	<fdef id="obj_xCode" v="obj_xName">
		<f id="4830" v="Coral Hills Resort"/>
		<f id="4831" v="Dive Inn Resort"/>
		<f id="1455" v="Grand Plaza Resort"/>
		<f id="1050" v="Le Sultan Resort&amp;Spa"/>
		<f id="3568" v="Rehana Sharm Resort"/>
		<f id="4023" v="Resta Reef Resort"/>
		<f id="17373" v="Sharm Bride Resort"/>
	</fdef>
	<fdef id="obj_xCity">
		<f id="Hammamet"/>
		<f id="Marsa Alam"/>
		<f id="Ras Um El Sid"/>
		<f id="Sharm El Sheikh"/>
	</fdef>
	<fdef id="obj_roomCode" v="obj_roomDesc">
		<f id="DSV" v="pok. dwuosobowy,widok na morze"/>
		<f id="DBL" v="pokoj dwuosobowy"/>
	</fdef>
	<fdef id="obj_serviceId">
		<f id="1"/>
		<f id="2"/>
	</fdef>
	<fdef id="ofr_tourOp">
		<f id="ITAK"/>
	</fdef>
	<fdef id="trp_duration">
		<f id="7"/>
		<f id="14"/>
	</fdef>
	<fdef id="obj_category">
		<f id="40"/>
		<f id="45"/>
		<f id="50"/>
	</fdef>
</response>
data/request/filters.txt · Last modified: 2012/05/15 09:29 by marekj