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.
PGPG
SIHOT.PMS → SIHOT.WEB
SIHOT.WEB → 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>
<APERS-TYPE-LIST>
<PERS-TYPE>
<TYPE>AD</TYPE>
<TXT>
<LANG>DE</LANG>
<ISO-LANG>de</ISO-LANG>
<T>Erwachsene</T>
</TXT>
<TXT>
<LANG>EN</LANG>
<ISO-LANG>en</ISO-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>
| Element | Description | Data type |
|---|---|---|
| TYPE | Person type code | String |
| TXT | Block with language dependent descriptions (optional) | |
| TXT/LANG | SIHOT language code | String |
| TXT/ISO-LANG | ISO 639-1 language code | String |
| TXT/T | Description | String |
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>
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 |
| 9 | GUEST GROUP –XY- AND ITS DESCRIPTIONS COULD NOT BE USED | With the value of the element |
PGRPGR
SIHOT.WEB → SIHOT.PMS
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<TN>2</TN>
<ID>1</ID>
<OC>PGR</OC>
<LN>DE</LN>
</SIHOT-Document>
| Element | Description | Data type |
|---|---|---|
| LN | Requested 2 char language code | String |
The response is of type OC PG like described in the chapter above.
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.