Skip to content

Person groups

Person groups are sent directly from SIHOT.PMS to SIHOT.WEB. If this functionality is activated and configured in SIHOT.WEB, the person groups will be sent to the external system.

Operationcode: PG

PG

Direction

SIHOT.PMS → SIHOT.WEB

SIHOT.WEB → External system

Message

<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-DOCUMENT>
    <OC>PG</OC>
    <ID>1</ID>
    <TN>1</TN>
    <RC>0</RC>
    <MSG>OK</MSG>
    <APERS-TYPE-LIST>
        <PERS-TYPE>
            <TYPE>AD</TYPE>
            <TXT>
                <LANG>de</LANG>
                <T>Erwachsene</T>
            </TXT>
            <TXT>
                <LANG>en</LANG>
                <T>Adults</T>
            </TXT>
        </PERS-TYPE>
        <PERS-TYPE>
            <TYPE>CH</TYPE>
            <TXT>
                <LANG>de</LANG>
                <T>Kinder</T>
            </TXT>
            <TXT>
                <LANG>en</LANG>
                <T>Children</T>
            </TXT>
        </PERS-TYPE>
    </APERS-TYPE-LIST>
</SIHOT-DOCUMENT>

Attributes Message

Element Description Data type
TYPE Person type code String
TXT Block with language dependent descriptions (optional)
TXT/LANG Language code String
TXT/T Description String

Response

This is the answer from SIHOT.WEB and/or from the external system:

<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-DOCUMENT>
        <OC>PG</OC>
        <ID>1</ID>
        <TN>1</TN>
        <RC>0</RC>
        <MSG>OK</MSG>
</SIHOT-DOCUMENT>

Attributes Response

If <RC> = 0, the person groups were created correctly. In all other cases, an error occurred:

RC MSG Description
0 OK Person groups were created correctly.
1 PROCESSING OF THIS MESSAGE FAILED An unexpected error occurred during the creation of the person groups. For further information check the log file named “SIHOTTOWEB.log”.
8 YOUR MESSAGE DOES NOT CONTAIN ANY GUEST GROUPS The message does not contain an element or an element .
9 GUEST GROUP –XY- AND ITS DESCRIPTIONS COULD NOT BE USED With the value of the element under the element a creation of person groups is impossible.

Operationcode: PGR

PGR

Direction

SIHOT.WEB → SIHOT.PMS

Message: OC PGR

<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
    <TN>2</TN>
    <ID>1</ID>
    <OC>PGR</OC>
    <LN>DE</LN>
</SIHOT-Document>

Attributes Message

Element Description Data type
LN Requested 2 char language code String

Response

The response is of type OC PG like described in the chapter above.

Attributes Response

Additionally to the elements described above, the response to the PGR request contains the following elements:

Element Description Data type
ADULT Flag if the according person group is used for adults (Y) or children (N) Y or N
MINAGE Minimum age for the according person group (inklusive)* Long
MAXAGE Maximum age for the according person group (exklusive)* Long

*Please note: If the ages are not configured in SIHOT.PMS, we are sending zero values.