Transmission of available discounts
This request is used to retrieve the available discounts for a given period.
Operationcode: DISCOUNTS
DISCOUNTS
Direction
SIHOT.PMS ← SIHOT.WEB
Message
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-DOCUMENT>
<OC>DISCOUNTS</OC>
<ID>1</ID>
<FROM>2017-03-01</FROM>
<TO>2017-03-31</TO>
<DISCOUNT-GROUP></DISCOUNT-GROUP>
</SIHOT-DOCUMENT>
Attributes
Attribute | Description | Data type | Usage |
---|---|---|---|
ID | Hotel ID | Long | Mandatory |
FROM | Start date for the request | Date | Mandatory |
TO | End date for the request | Date | Mandatory |
DISCOUNT-GROUP | Requested discount group | String | Optional |
Response
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<OC>DISCOUNTS</OC>
<ID>1</ID>
<RC>0</RC>
<DISCOUNTLIST>
<DISCOUNT>
<FROM>2017-01-01</FROM>
<TO>9999-12-31</TO>
<PERS-TYPE>1A
</PERS-TYPE>
<BLOCKED>N</BLOCKED>
<DISCOUNT-AMOUNT>0
</DISCOUNT-AMOUNT>
</DISCOUNT>
<DISCOUNT>
<FROM>2017-01-01</FROM>
<TO>9999-12-31</TO>
<DISCOUNT-GROUP>R1
</DISCOUNT-GROUP>
<BLOCKED>N</BLOCKED>
<DISCOUNT-AMOUNT>12.5
</DISCOUNT-AMOUNT>
</DISCOUNT>
<DISCOUNT>
<FROM>2017-01-01</FROM>
<TO>9999-12-31</TO>
<GUEST-ID>25
</GUEST-ID>
<NAME>GUBSE AG</NAME>
<BLOCKED>N</BLOCKED>
<DISCOUNT-AMOUNT>12.5
</DISCOUNT-AMOUNT>
</DISCOUNT>
<DISCOUNT>
<FROM>2017-01-01</FROM>
<TO>9999-12-31</TO>
<PERS-TYPE>6C
</PERS-TYPE>
<BLOCKED>N</BLOCKED>
<DISCOUNT-AMOUNT>100
</DISCOUNT-AMOUNT>
</DISCOUNT>
<DISCOUNT>
<FROM>2017-01-01</FROM>
<TO>9999-12-31</TO>
<PERS-TYPE>5A
</PERS-TYPE>
<BLOCKED>N</BLOCKED>
<DISCOUNT-AMOUNT>75
</DISCOUNT-AMOUNT>
</DISCOUNT>
<DISCOUNT>
<FROM>2017-02-13</FROM>
<TO>2017-02-26</TO>
<DISCOUNT-GROUP>
WEBSPEC17
</DISCOUNT-GROUP>
<BLOCKED>N</BLOCKED>
<DISCOUNT-AMOUNT>10
</DISCOUNT-AMOUNT>
</DISCOUNT>
</DISCOUNTLIST>
</SIHOT-Document>
Attributes Response
Attribute | Description | Data type |
---|---|---|
ID | Hotel ID | Long |
RC | return code for this request: 0..OK 1..an error occurred, see <MSG> |
Long |
MSG | If <RC> is 1, this element contains the error message | String |
DISCOUNTLIST | List of discounts | XML block |
DISCOUNT | Block with discount data | XML block |
FROM | Start date of the current discount record, might be smaller than the requested from-date if the discount record starts earlier | Date in ISO format |
TO | End date of the current discount record, might be larger than the requested to-date if the discount is still available after the to-date. | Date in ISO format |
SELL-FROM | Start date of the sellable period for the discount | Date in ISO format |
SELL-TO | End date of the sellable period for the discount | Date in ISO format |
DISCOUNT-GROUP | Name or code of the discount record | String |
GUEST-ID | SIHOT unique ID of the assigned guest or company | Long |
NAME | Name of the assigned guest or company | String |
YIELD | Yield information | String |
PERS-TYPE | Person type | String |
RATE-SEGMENT | Rate segment | String |
PCAT | Rate category | String |
SID | Service ID or package code | String |
T-SID | Type of the service | String |
SID-FILTER | Service filter | Long |
MIN-STAY | Minimum length of stay | Long |
BLOCKED | Flag if the discount is available or not | Char N or Y |
DISCOUNT-AMOUNT | Discount amount | Decimal |