Skip to content

Create Card

Create Card is the command to create key cards e.g. for office rooms, banqueting rooms or guest rooms (e.g. for pre check-in). This function is an add-on to the check in command and enables the hotel to create key cards at any time.

Operationcode: CC

CC

Direction

SIHOT.PMS -> IF Partner

Message

This is an example of a create card record for a guest with two cards and access to his room 101, the room 102 and to the areas 5, 22 and 23; the card should be encoded at coding station 2.

<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
  <TN>4812</TN>
  <OC>CC</OC>
  <HN>4711</HN>
  <PCIID>538</PCIID>
  <SALUTATION>Herr</SALUTATION>
  <TITLE>Dr.</TITLE>
  <SN>Berger</SN>
  <CN>Joerg</CN>
  <GID>471168</GID>
  <ARR>2002-05-31T13:20:00</ARR>
  <DEP>2002-06-05T11:00:00</DEP>
  <LN>DE</LN>
  <RN>101</RN>
  <PASSWD></PASSWD>
  <PAY-TV>1</PAY-TV>
  <PH0>00101</PH0>
  <AP>00001000000000000000011</AP>
  <CS>2</CS>
  <CA>1</CA>
  <NC>2</NC>
  <AI1>102</AI1>
  <SRC>SIHOT</SRC>
  <ORG>disp_4711</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
AP Definition of the access points. The access points are defined in a key card system and in the SIHOT registry accordingly. String
NC Number of cards uns. Byte
CS Coding Station String
CA Card action String
AI1 Additional Information 1. This could be e.g. a number of an additional room. If this function is used depends on the used key card interface String
AI2 See AI1 String
AI3 See AI1 String
AI4 See AI1 String
AI5 See AI1 String
CARDNO This CardNo is sent from SIHOT in case that an operator has given a Card Number. This function is used in case that e.g. you don't have a transponder reader but enter the card number manually. String
CIO Originates from a check-in, a check-out, a room move or a create key-card command Char
DCO Direct Check Out Bool
KCID Using the keycard ID instead of the room number, if available. String
BEDKCID Using the keycard ID of the bed instead of the bed number, if available. String

Response

The answer can look like this in case of OK:

<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
  <TN>4812</TN>
  <OC>ACK</OC>
  <RC>0</RC>
  <ORG>disp_4711</ORG>
</SIHOT-Document>

Attributes Response

Attribute Denotation Type
OC ACK String
TN Transaction Number uns. Long.
RC Return Code. In case of an error, 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.

Examples

Example 1 - Create Card

<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
  <TN>4829</TN>
  <OC>CC</OC>
  <HN>4711</HN>
  <ARR>2002-05-31T13:20:00</ARR>
  <DEP>2002-06-05T11:00:00</DEP>
  <CA>1</CA>
  <NC>2</NC>
  <RN>101</RN>
  <ORG>disp_4711</ORG>
  <DCO>0</DCO>
  <AP>010000000000000000000000001</AP>
  <CS>2</CS>
  <KCID>1101</KCID>
  <USERID>ADM</USERID>
  <WS>MARVIN</WS>
  <PCIID>68</PCIID>
  <AN>9901</AN>
  <SN>Ostergard</SN>
  <CN>Hanne Kristine</CN>
  <TG></TG>
  <EMAIL>ostergard@email.com</EMAIL>
  <MOBILE>+4508154711</MOBILE>
  <RN>100</RN>
  <NR_FOR_THIS>100</NR_FOR_THIS>
  <KCID_FOR_THIS>100ID</KCID_FOR_THIS>
  <ROOMSIMPLIED>
    <RN>101</RN>
  </ROOMSIMPLIED>
</SIHOT-Document>

Note:

To simplify the creation of a card in case a suite contains more than one room or a room contains more than one bed, we introduced the new tags <NR_FOR_THIS> and <KCID_FOR_THIS>. The tag <NR_FOR_THIS> always provides the number of the suite, room or bed for which the card should be created. If a KCID for this number is defined in SIHOT, it will be provided through the tag <KCID_FOR_THIS>.

The answer can look like this in case of OK.

<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
  <TN>4829</TN>
  <OC>ACK</OC>
  <RC>0</RC>
  <ORG>disp_4711</ORG>
</SIHOT-Document>

Example 2 - Create Card for one bed in a room

Create Card can also be used to create a card for a bed in a room:

<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
  <TN>4878</TN>
  <NC>1</NC>
  <CA>1</CA>
  <AP></AP>
  <DCO>0</DCO>
  <CS>4711</CS>
  <ARR>2017-10-25T14:16:00</ARR>
  <DEP>2017-10-28T12:00:00</DEP>
  <OC>CC</OC>
  <HN>4</HN>
  <USERID>ADM</USERID>
  <WS>MARVIN</WS>
  <PCIID>2904</PCIID>
  <AN>101</AN>
  <SN>Ostergard</SN>
  <CN>Hanne Kristine</CN>
  <TG></TG>
  <EMAIL>ostergard@email.com</EMAIL>
  <MOBILE></MOBILE>
  <RN>100</RN>
  <NR_FOR_THIS>100A</NR_FOR_THIS>
  <KCID_FOR_THIS>100AID</KCID_FOR_THIS>
  <BEDSIMPLIED>
    <BED>
      <BEDNO>100A</BEDNO>
      <BEDKCID>100AID</BEDKCID>
    </BED>
  </BEDSIMPLIED>
  <CIO>I</CIO>
</SIHOT-Document>

The answer can look like this in case of OK.

<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
  <TN>4879</TN>
  <OC>ACK</OC>
  <RC>0</RC>
  <ORG>disp_4711</ORG>
</SIHOT-Document>

Example 3 - Create Card for a room with two beds

If there are two beds in the room that is being checked in, both beds are sent within the <BEDSIMPLIED> tag.

<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
  <TN>4879</TN>
  <NC>1</NC>
  <CA>1</CA>
  <AP></AP>
  <DCO>0</DCO>
  <CS>4711</CS>
  <ARR>2017-10-25T14:18:00</ARR>
  <DEP>2017-10-27T12:00:00</DEP>
  <OC>CC</OC>
  <HN>4</HN>
  <USERID>ADM</USERID>
  <WS>MARVIN</WS>
  <PCIID>2907</PCIID>
  <AN>101</AN>
  <SN>Ostergard</SN>
  <CN>Hanne Kristine</CN>
  <TG></TG>
  <EMAIL>ostergard@email.com</EMAIL>
  <MOBILE></MOBILE>
  <RN>101</RN>
  <NR_FOR_THIS>101</NR_FOR_THIS>
  <KCID_FOR_THIS>101ID</KCID_FOR_THIS>
  <BEDSIMPLIED>
    <BED>
      <BEDNO>101A</BEDNO>
      <BEDKCID></BEDKCID>
    </BED>
    <BED>
      <BEDNO>101B</BEDNO>
      <BEDKCID></BEDKCID>
    </BED>
  </BEDSIMPLIED>
  <CIO>I</CIO>
</SIHOT-Document>

The answer can look like this in case of OK.

<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
  <TN>4879</TN>
  <OC>ACK</OC>
  <RC>0</RC>
  <ORG>disp_4711</ORG>
</SIHOT-Document>

See for more information