This section describes the processes at the SIHOT.POS cash desk that send requests to your voucher server, and what your server has to do in each process.
When the cashier scans or enters a voucher code, SIHOT.POS requests the details of the voucher with GetVoucher and shows them to the cashier.
Sample Request – POST <base URL>voucher/GetVoucher
Sample Response – voucher found (HTTP 200)
If the voucher does not exist, answer with HTTP status 281.
SIHOT.POS shows the cashier the status of the voucher:
status |
Shown at the POS |
|---|---|
valid |
The voucher is valid. |
notValid |
The voucher is not valid. |
redeemed |
The voucher is completely redeemed. |
expired |
The voucher has expired. |
blocked |
The voucher status is unknown. |
A voucher can be redeemed only if status is valid, voucherValueRemaining is greater than 0, the voucher is sold (saleDate is a real sale date, not 1899-12-30T00:00:00Z) and the day before expiryDate has not passed yet. See Implementation Basics.
The guest pays a bill, completely or partly, with a voucher.
This process involves:
GetVoucher: SIHOT.POS checks the voucher.RedeemVoucher: SIHOT.POS redeems the amount.GetVoucher and shows the remaining value. The amount to redeem is the open amount of the bill, but at most the remaining value of the voucher. The cashier can change it.RedeemVoucher.Several vouchers can be redeemed on one bill. SIHOT.POS sends one RedeemVoucher request per voucher.
redeemValue. A voucher can be redeemed partly; the rest stays available. SIHOT.POS books exactly this amount as payment.redeemValue is greater than the remaining value, reject the request with an error.transactionId.redeemed as status in later GetVoucher responses.Sample Request – POST <base URL>voucher/RedeemVoucher
Sample Response – HTTP 200
If you reject the redemption, answer with an error status and an error message. SIHOT.POS shows the message to the cashier, and the payment is not booked.
Sample Error Response – HTTP 400
revenueDate is the business date of SIHOT.POS, converted to UTC. In the example, the business date is 2026-11-05 in Central European Time. See Implementation Basics.
A voucher redemption is cancelled in the following cases:
This process involves:
GetVoucher: SIHOT.POS checks the voucher.CancelRedemption: SIHOT.POS cancels the redemption.GetVoucher: SIHOT.POS requests the updated voucher.transactionId and revert it: add the redeemed amount back to the remaining value of the voucher.200. SIHOT.POS then cancels the payment line on the bill.CancelRedemption.Sample Request – POST <base URL>voucher/CancelRedemption
Sample Response – HTTP 200
transactionId to identify the redemption. billNumber is only a reference to the bill in SIHOT.POS and can differ from the value sent in RedeemVoucher.
The guest buys a voucher at the cash desk. The voucher already exists in your system, for example as a pre-printed voucher card, and is activated with the sale.
This process involves:
GetVoucher: SIHOT.POS checks that the voucher can be sold.SellVoucher: SIHOT.POS sells the voucher.GetVoucher: SIHOT.POS requests the sold voucher.GetVoucher. The voucher can be sold if status is valid and it is not sold yet (saleDate is 1899-12-30T00:00:00Z).SellVoucher with the value of the voucher.sellValue.saleDate and the value sellValue.voucherId and a unique transactionId for the sale. SIHOT.POS requests the voucher with this voucherId afterwards.Sample Request – POST <base URL>voucher/SellVoucher
Sample Response – HTTP 200
The cashier cancels the voucher item on the bill, for example because the guest does not want the voucher anymore.
This process involves:
GetVoucher: SIHOT.POS checks the voucher.CancelSellVoucher: SIHOT.POS cancels the sale.GetVoucher: SIHOT.POS requests the updated voucher.transactionId. If the voucher has not been redeemed yet, revert the sale: the voucher is no longer sold.200.Sample Request – POST <base URL>voucher/CancelSellVoucher
Sample Response – HTTP 200
The Reference also describes the endpoints CreateVoucher (create a new voucher) and AddBillToTransaction (add the bill as PDF to a transaction). Please contact us before you implement them.