Skip to content

Gift Voucher Booking

Gift Vouchers, which exist in SIHOT.PMS, should also be billable on reservation over internet. The main goal is, to have no special data in SIHOT.WEB and to keep the interface generic to add further gift voucher provider in the future.

Operationcode: CGV

CGV

Direction

SIHOT.PMS ← SIHOT.WEB

Message

<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-DOCUMENT>
        <OC>CGV</OC>
        <ID>1</ID>
        <TN>1</TN>
        <VER>2.1</VER>
        <GV-TYPE></GV-TYPE>
        <GV-REF></GV-REF>
</SIHOT-DOCUMENT>

Attributes Message

Element Description Data type Usage
OC Action type: CGV = Check Gift Voucher String Mandatory
ID SIHOT.WEB ID of the hotel String Mandatory
TN Transaction number Integer Mandatory
VER Used version String Mandatory
GV-TYPE Voucher type (currently only “PMS”) String Mandatory
GV-REF Voucher ID String Mandatory

Response

The operation Code for a CGV is a GVA.

<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-DOCUMENT>
        <OC>GVA</OC>
        <ID>1</ID>
        <TN>1</TN>
        <VER>2.1</VER>
        <RC>0</RC>
        <MSG>OK</MSG>
        <GV-STATUS></GV-STATUS>
        <GV-AMOUNT></GV-AMOUNT>
</SIHOT-DOCUMENT>

Attributes Response

Element Description Data type
OC Action type: GVA = Gift Voucher Answer String
ID SIHOT.WEB ID of the hotel String
TN Transaction number Integer
VER Used version String
RC Return code Integer
MSG Message to be shown to the SIHOT.PMS users String
GV-STATUS Can be VALID, BLOCKED or INVALID String
GV-AMOUNT Voucher credit Decimal