Assign / delete card
Assign/Delete Card is the command used to assign/delete key cards.
Operationcode: AC
AC
Direction
SIHOT.PMS → IF Partner
Message
This is an example for an AC record:
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
  <TN>4753</TN>
  <OC>AC</OC>
  <HN>1</HN>
  <USER>JP</USER>
  <PCIID>175869</PCIID>
  <CARDNO>47110815</CARDNO>
  <CA>1</CA>
  <NEWMEDIA>1</NEWMEDIA>
  <CS>1</CS>
  <ARR>2024-05-31T13:20:00</ARR>
  <DEP>2024-06-07T10:00:00</DEP>
  <SERVERNAME>MARVIN</SERVERNAME>
  <SERVERID>CBS</SERVERID>
  <ORG>SIHOT-SERVER-ID:CBS</ORG>
</SIHOT-Document>
Attributes Message
In addition to the basic types (described in Definition of XML-Attributes) we use these attributes for key card systems.
| Attribute | Denotation | Type | 
|---|---|---|
| OC | ACK | String | 
| TN | Transaction Number | uns. Long | 
| HN | Hotel Number | uns. Long | 
| USER | User who created the record Number | String | 
| PCIID | Pre Check-In ID | uns. Long | 
| CARDNO | Number of the card to be assigned | String | 
| CA | Card Action: 1 assign / 0 delete | uns. Long | 
| NEWMEDIA | If the assigned card is new 1, if it is resent 0 | uns. Long | 
| CS | Coding Station | String | 
| SERVERNAME | The name of the server | uns. Long | 
| SERVERID | The name of the service running on the server | uns. Long | 
| ORG | Origin, this is the identifier of the SIHOT workstation that processed this operation. | String | 
If an operation used the <TN> tag, this tag has also to be returned to the sender. The same applies to the <ORG> tag.
Response
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
  <TN>4753</TN>
  <OC>ACK</OC>
  <RC>1</RC>
  <MSG>room not occupied</MSG>
  <ORG>SIHOT-SERVER-ID:CBS</ORG>
</SIHOT-Document>
Attributes Response
| Attribute | Denotation | Type | 
|---|---|---|
| OC | ACK | String | 
| TN | Transaction Number | uns. Long. | 
| RC | Return Code. Here we refer to the content of the MSG tag. | uns. Long | 
| MSG | Message Text, error message in plain text (optional) | String | 
| ORG | Origin, this is the identifier of the SIHOT workstation that processed this operation. | String | 
If an operation used the <TN> tag, this tag has also to be returned to the sender. The same applies to the <ORG> tag.