This section describes the process in SIHOT.PMS that sends requests to your gift voucher server, and what your server has to do.
Redeem a Gift Voucher on a Guest Folio
A guest pays with a gift voucher of your system. The hotel staff redeems the voucher on the guest folio in SIHOT.PMS.
This process involves:
S_AUTHENTICATE: SIHOT.PMS requests a token.
S_EXTERNAL_GIFTVOUCHER_GET: SIHOT.PMS requests the voucher.
S_EXTERNAL_GIFTVOUCHER_REDEEM: SIHOT.PMS redeems the voucher.
Process in SIHOT.PMS
The user opens the guest folio, selects Redeem external voucher, enters the voucher number and, if several systems are connected, selects your system.
SIHOT.PMS requests a token with S_AUTHENTICATE.
SIHOT.PMS requests the voucher with S_EXTERNAL_GIFTVOUCHER_GET.
SIHOT.PMS shows the value and the remaining value of the voucher and asks the user to confirm the redemption. If the user does not confirm, SIHOT.PMS sends no further request.
SIHOT.PMS sends S_EXTERNAL_GIFTVOUCHER_REDEEM with the complete remaining value of the voucher.
After a successful response, SIHOT.PMS posts the amount as payment on the guest folio, with the text Voucher-Nr. <voucher number>. The prefix depends on the language of SIHOT.PMS, for example Gutschein-Nr. in German.
NOTE
SIHOT.PMS always redeems the complete remaining value of the voucher. A partial redemption is not possible.
Step 1 – Get the Voucher
Sample Request – POST <base URL>/S_EXTERNAL_GIFTVOUCHER_GET
Sample Response – voucher cannot be redeemed (HTTP 400)
JSON
{
"transactionId": "6F9619FF-8B86-D011-B42D-00C04FC964FF",
"giftVoucher": [],
"result": {
"success": false,
"errorCode": "VOUCHER_EXPIRED",
"errorMessage": "The gift voucher has expired.",
"messages": []
}
}
IMPORTANT
SIHOT.PMS does not check status or expiryDate itself. If you return a voucher with result.success = true and a remaining value, SIHOT.PMS offers it for redemption.
SIHOT.PMS also stops the process if:
the response does not contain exactly one voucher with the requested number,
remainingAmount is 0,
originalAmount is 0 or less.
Never return a negative remainingAmount: SIHOT.PMS does not reject it before it sends S_EXTERNAL_GIFTVOUCHER_REDEEM.
Step 2 – Redeem the Voucher
Sample Request – POST <base URL>/S_EXTERNAL_GIFTVOUCHER_REDEEM
Redeem amount from the voucher. amount is the remainingAmount that you returned in step 1.
Answer with result.success = true. SIHOT.PMS then posts the payment.
If the redemption is not possible, for example because the remaining value has changed in the meantime, answer with result.success = false and an errorMessage. SIHOT.PMS shows the message and does not post the payment.
SIHOT.PMS evaluates only result.success in this response. The giftVoucher array must be present, but it can be empty.
NOTE
If SIHOT.PMS receives no response within the timeout, it reports an error and does not post the payment. It does not repeat the request. Answer promptly, and make sure that a redemption you have processed is not lost.
Cancelling a Redemption
The interface has no endpoint to cancel a redemption. If a gift voucher payment is cancelled or reversed in SIHOT.PMS, SIHOT.PMS does not send a request to your server. The hotel has to arrange the correction of the voucher with you.