Skip to content

Get Hotels by criteria

Operationcode: GET-ALL-HOTEL-CRITERIA

GET-ALL-HOTEL-CRITERIA

Direction

SIHOT.PMS ← SIHOT.WEB SIHOT.PMS → SIHOT.WEB

Message

SIHOT.WEB executes the following request (GET-ALL-HOTEL-CRITERIA) to SIHOT.PMS in order to receive all available hotel criteria.

<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
        <OC>GET-ALL-HOTEL-CRITERIA</OC>
        <TN>6</TN>
        <LANG>DE</LANG>
</SIHOT-Document>

If the hotel criterion is not available in the given language, the hotels default language is being used.

Response

This is an example answer to the request GET-ALL-HOTEL-CRITERIA.

<?xml version="1.0" encoding="iso-8859-1"?>
<SIHOT-Document>
        <SIHOT-Version>
             <Version>9.0.0.0000</Version>
                <EXE>D:\\SIHOT\\sinetres.exe</EXE>
        </SIHOT-Version>
        <TN>345</TN>
        <RC>0</RC>
        <OC>HOTEL-CRITERIA</OC>
        <A-HOTEL-CRITERIA-LIST>
                <A-HOTEL-CRITERION>
                        <CRITERION_NAME>ACT/Fit/Fitness</CRITERION_NAME>
                        <CRITERION_ID>120001/0006/0000</CRITERION_ID>
                </A-HOTEL-CRITERION>
        </A-HOTEL-CRITERIA-LIST>
</SIHOT-Document>

Attributes Response

RC MSG Description
0 empty All Right
1 No criteria found. No Tags <CRITERION_ID> were found inside <CRITERIALIST>
2 Received invalid dates. At least one of the dates received in <FROM> or <TO> was invalid.
3 No hotels found. For the given criteria no hotels were found between FROM and TO date.
Attribute Description Data type
RC Answer codes

0 no problems

others problems occurred, see -Tag

Short
MSG If an error or problem occurred, this Tag contains the associated message. String
A-HOTEL-CRITERIA-LIST List of available hotel criteria.
A-HOTEL-CRITERION One tag for each criterion.
CRITERION_NAME Tag for the criterions name. String
CRITERION_ID Tag for the criterions ID. This ID is necessary for receiving hotels with the available criterion in GET-HOTELS-BY-CRITERIA. String
CRITERIALIST List with the requested CRITERION_IDs.
FROM, TO Dates when the requested criteria should be available. Date
A-HOTEL-LIST List of hotels with the requested criteria.
A-HOTEL A single hotel.
ID Number of the hotel. Long
NAME1, NAME2 Names of the hotel. String
CITY Location of the hotel. String
LANG The language in which the criteria should be received. (IS0 639 coded, e. g. de = German) (not required, the hotels default language will be used if no language is given or the given language is not available). String

Operationcode: GET-HOTELS-BY-CRITERIA

GET-HOTELS-BY-CRITERIA

SIHOT.WEB makes the following request (GET-ALL-HOTEL-CRITERIA) to SIHOT.PMS in order to receive all available hotel criteria.

Direction

SIHOT.PMS ← SIHOT.WEB SIHOT.PMS → SIHOT.WEB

Message

<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
        <OC>GET-HOTELS-BY-CRITERIA</OC>
        <TN>6</TN>
        <FROM>2009-10-01</FROM>
        <TO>2009-10-31</TO>
        <CRITERIALIST>
                <CRITERION_ID>120001/0006/0000</CRITERION_ID>
                <CRITERION_ID>120001/0006/0001</CRITERION_ID>
                <CRITERION_ID>120001/0006/0002</CRITERION_ID>
        </CRITERIALIST>
</SIHOT-Document>

Response

This is an example to the request GET-HOTELS-BY-CRITERIA. It returns only hotels with all of the requested criteria.

<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
        <SIHOT-Version>
                <Version>9.0.0.0000</Version>
                <EXE>D:\\SIHOT\\sinetres.exe</EXE>
        </SIHOT-Version>
        <TN>1</TN>
        <ID>1500</ID>
        <OC>HOTELS-BY-CRITERIA</OC>
        <RC>0</RC>
        <A-HOTEL-LIST>
                <A-HOTEL>
                        <ID>0001</ID>
                        <NAME1>GUBSE</NAME1>
                        <NAME2>DELUXE-HOTEL</NAME2>
                        <CITY>Landsweiler-Reden</CITY>
                        </A-HOTEL>
                        <A-HOTEL>
                        <ID>1234</ID>
                        <NAME1>\*\*\*\*\* HOTEL</NAME1>
                        <NAME2>GUBSE</NAME2>
                        <CITY>Landsweiler-Reden</CITY>
                        </A-HOTEL>
        </A-HOTEL-LIST>
</SIHOT-Document>

Attributes Response

See previous Chapter Attributes Response