Skip to content

Request for restrictions

Get configuresd restriction from SIHOT in order to visualizie these data to the customer. SIHOT supports different types of restrtion. Therefore the request can choose which type should be returned.

Operationcode: GET-RESTRICTS

GET-RESTRICTS

Direction

SIHOT.PMS ← SIHOT.WEB

Message

<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-DOCUMENT>
        <OC>GET-RESTRICTS</OC>
        <ID>2520</ID>
        <TN>1</TN>
        <LANG>DE</LANG>
        <IDLIST>
               <ID>2520</ID>
        </IDLIST>
        <TYPES>0;1;2;3;4;5</TYPES>
        <KEY></KEY>
        <FROM>2011-04-15</FROM>
        <TO>2011-10-29</TO>
</SIHOT-DOCUMENT>

Attributes Response

The usage of these attributes is optional

Element Description Data type
FROM Begin of restriction period Date
TO End of restriction period Date
IDLIST A list of hotel-IDs. The IDs are defined in several ID-Tags.
TYPES

The type of the restriction. It is possible to search for several restriction types by separating the types with a semicolon. The following types are possible:

Types Restrictions
0 Category
1 WEB
2 Service/Package code
3 Travel Click
4 Rate segment
5 Hotel
Integer
KEY Specifies the specific element of the selected restriction type. For example a specific room category for category restrictions or a defined package code for package code restrictions. String

Response

<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-DOCUMENT>
    <SIHOT-Version>
        <Version>9.0.0.0000</Version>
        <EXE>U:\\SINETRES.EXE</EXE>
    </SIHOT-Version>
    <TN>1</TN>
    <ID>9</ID>
    <RC>0</RC>
    <OC>RESTRICTS</OC>
    <A-RESTRICT-LIST>
        <RESTRICT>
            <KEY>PW1</KEY>
            <FROM>2011-01-02</FROM>
            <TO>2011-03-24</TO>
            <INFO/>
            <MIN-STAY>7</MIN-STAY>
            <MAX-STAY>7</MAX-STAY>
            <AARR-LIST>0,1,2,3,4,5,6</AARR-LIST>
            <ADEP-LIST>0,1,2,3,4,5,6</ADEP-LIST>
            <BLOCK>N</BLOCK>
        </RESTRICT>
        <RESTRICT>
            <KEY>PW2</KEY>
            <FROM>2011-01-02</FROM>
            <TO>2011-03-24</TO>
            <INFO/>
            <MIN-STAY>14</MIN-STAY>
            <MAX-STAY>14</MAX-STAY>
            <AARR-LIST>0,1,2,3,4,5,6</AARR-LIST>
            <ADEP-LIST>0,1,2,3,4,5,6</ADEP-LIST>
            <BLOCK>N</BLOCK>
        </RESTRICT>
    </A-RESTRICT-LIST>
</SIHOT-DOCUMENT>

Attributes Response

See table in previous chapter.