Check-Out
The CO record is sent when a SIHOT guest account is deactivated.
Operationcode: CO
CO
Direction
SIHOT → IF Partner
IF Partner → SIHOT
Message
This example shows a check out for room 101. At this moment all key cards will be invalidated.
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<TN>4713</TN>
<OC>CO</OC>
<HN>4711</HN>
<RN>101</RN>
<PCIID>538</PCIID>
<SF>Y</SF>
<SN>Berger</SN>
<CN>Joerg</CN>
<LN>DE</LN>
<SRC>SIHOT</SRC>
<ORG>disp_4711</ORG>
</SIHOT-Document>
Attributes Message
Attribute | Denotation | Type |
---|---|---|
OC | Action Type:CO = Check-Out | String |
HN | Hotel number | uns. Long |
RN | Room number where the guest stayed | String |
PCIID | Pre Check-In ID | uns. Long |
SF | Share flag. | char |
SN | Last name of the guest | String |
CN | First name of the guest | String |
ORG | Origin, this is the identifier of the SIHOT workstation that processed this operation. | String |
Response
The answer could look like:
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<TN>4713</TN>
<OC>ACK</OC>
<RC>1</RC>
<MSG>room not occupied</MSG>
<ORG>disp_4711</ORG>
</SIHOT-Document>
Attributes Response
Examples
Example 1 - SIHOT - one person
This is a request sent from the interface to SIHOT to check out a certain client from a multi bed room. The requirement for checking out a single person is that all guests of the concerning room have their own guest account. The account of the CO person has to be settled.
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<TN>4713</TN>
<OC>CO</OC>
<HN>4711</HN>
<PCIID>538</PCIID>
<ENTIREROOM>0</ENTIREROOM>
</SIHOT-Document>
The answer could look like:
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<TN>4713</TN>
<OC>CO</OC>
<RC>0</RC>
<CDEL>0</CDEL>
</SIHOT-Document>
Example 2 - SIHOT – complete room
This is a request sent from the interface to SIHOT to check out an entire room. The requirement for checking out is that all guest accounts are settled.
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<TN>4713</TN>
<OC>CO</OC>
<RN>101</RN>
<HN>4711</HN>
<PCIID>538</PCIID>
<ENTIREROOM>1</ENTIREROOM>
</SIHOT-Document>
The answer could look like:
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<TN>4713</TN>
<OC>ACK</OC>
<RC>1</RC>
<MSG>room not occupied</MSG>
<ORG>disp_4711</ORG>
</SIHOT-Document>
Example 3 - SIHOT – Room with multiple guest accounts
Example of a check out with three guests in one room with a total of two guest accounts:
Guest Acc. | Name | Guest Type |
---|---|---|
1 | Berger, Joerg | Client |
2 | Conrad, Jochen | Guest |
1 | Berger, Maribelle | Guest |
Check out of the persons with the same account in the room:
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<OC>CO</OC>
<HN>4711</HN>
<USERID>JPA</USERID>
<WS>MARVIN</WS>
<SF>Y</SF>
<SALUTATION>Herr</SALUTATION>
<TITLE>Dr.</TITLE>
<SN>Berger</SN>
<CN>Joerg</CN>
<LN>DE</LN>
<AN>0</AN>
<GID>471168</GID>
<PCIID>538</PCIID>
<GRPID>14136</GRPID>
<RN>440</RN>
<NR_FOR_THIS>440</NR_FOR_THIS>
<KCID_FOR_THIS/>
<FIRST-Person>
<ARR>2020-05-31T13:20:00</ARR>
<DEP>2020-06-05T11:00:00</DEP>
<PCIID>538</PCIID>
<GRPID>14136</GRPID>
<GID>471168</GID>
<SALUTATION>Herr</SALUTATION>
<TITLE>Dr.</TITLE>
<SN>Berger</SN>
<CN>Joerg</CN>
<LN>DE</LN>
<COUNTRY>DE</COUNTRY>
<SEX>1</SEX>
<GT>GUEST</GT>
<GTD>1</GTD>
<GNR>2791</GNR>
<GMD>1</GMD>
<GDB>0</GDB>
<TT>M</TT>
<HQGID>0</HQGID>
<CREQ>0</CREQ>
<CREQSTATE> </CREQSTATE>
<CREDITALLOWED>TRUE</CREDITALLOWED>
<PSTATE>2</PSTATE>
</FIRST-Person>
<SIHOT-Person>
<ARR>2021-12-14T18:00:00</ARR>
<DEP>2021-12-17T12:00:00</DEP>
<PCIID>14105</PCIID>
<GRPID>14138</GRPID>
<GID>2039</GID>
<GID>471169</GID>
<PCIID>539</PCIID>
<SALUTATION>Frau</SALUTATION>
<SN>Berger</SN>
<CN>Maribelle</CN>
<ARR>2021-12-14T18:00:00</ARR>
<DEP>2021-12-17T12:00:00</DEP>
<LN>FR</LN>
<DOB>1982-03-21</DOB>
<SEX>2</SEX>
<GT>GUEST</GT>
<GTD>1</GTD>
<GNR>1808</GNR>
<GMD>1</GMD>
<GDB>117</GDB>
<TT>M</TT>
<HQGID>0</HQGID>
<CREQ>0</CREQ>
<CREQSTATE> </CREQSTATE>
<CREDITALLOWED>TRUE</CREDITALLOWED>
<PSTATE>2</PSTATE>
</SIHOT-Person>
</SIHOT-Document>
Check out of the other person with his own account in the room:
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<OC>CO</OC>
<HN>4711</HN>
<USERID>JPA</USERID>
<WS>MARVIN</WS>
<SF>Y</SF>
<SALUTATION>Herr</SALUTATION>
<TITLE>Dr.</TITLE>
<SN>Conrad</SN>
<CN>Jochen</CN>
<LN>DE</LN>
<AN>0</AN>
<GID>471168</GID>
<PCIID>540</PCIID>
<GRPID>14136</GRPID>
<RN>440</RN>
<NR_FOR_THIS>440</NR_FOR_THIS>
<KCID_FOR_THIS/>
<ARR>2021-12-14T18:00:00</ARR>
<DEP>2021-12-17T12:00:00</DEP>
<PASSWD/>
<FIRST-Person>
<GID>15987</GID>
<PCIID>540</PCIID>
<SALUTATION>Herr</SALUTATION>
<TITLE>Dr.</TITLE>
<SN>Conrad</SN>
<CN>Jochen</CN>
<ARR>2021-12-14T18:00:00</ARR>
<DEP>2021-12-17T12:00:00</DEP>
<LN>DE</LN>
</FIRST-Person>
</SIHOT-Document>