Inquiry type filters returns a list of possible field values for any requests kryteria wyszukiwania.
You can limit the list of results for one field by specifying its value in the condition filters
↓ Field name | type | contains |
---|---|---|
obj_category | int | Category of the object multiplied by 10 |
obj_city | text | The city in which the object is located |
obj_luggage | char | Info if main baggage is included |
obj_room | char | Room code/ accommodation |
obj_type | char | Object type (hotel/round trip/cruise /...) |
obj_xAttributes | bitmask | Object's attributes / flag offer |
obj_xCity | text | The city in which the object is assigned by MerlinX (original or revised) |
obj_xCode | int | ID assigned to the hotel by MerlinX |
obj_xServiceId | int | ID meal/service assigned by MerlinX |
ofr_catalog | char | Catalog code |
ofr_refundable | char | Offer have some flex rules or not |
ofr_resident | char | Resident is available or not |
ofr_tourOp | char | touroperator code |
ofr_transferType | char | Info if transfer is included |
ofr_type | char | Type of offer |
ofr_xCatalog | char | catalogs unified by MerlinX |
trp_depCode | char | Code of departure location/airport ( IATA Code ) |
trp_depDate | date | Date of departure / departure / start of trip |
trp_depName | text | place of departure / start |
trp_depName | text | place of departure / start |
trp_destination | int | Region of the trip/event |
trp_duration | int | number of days |
trp_flightChangeCount | int | Number of stops for ongoing flight |
trp_rFlightChangeCount | int | Number of stops for return flight |
np:
<conditions> <filters>trp_depDate</filters> (...)
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>
<?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&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>