This page describes the rules that your server must follow for all endpoints of the SIHOT.POS Gift Voucher Interface.
SIHOT.POS sends all requests to the base URL that is configured for your server, followed by the path of the endpoint:
| Endpoint | URL |
|---|---|
| Token | <base URL>auth/token |
| Voucher endpoints | <base URL>voucher/<Endpoint>, for example <base URL>voucher/GetVoucher |
If the configured base URL does not end with /, SIHOT.POS adds it. SIHOT.POS adds no further path segments. If your endpoints contain a version or a tenant prefix, include it in the base URL, for example:
https://voucher.example.com/v1/
https://voucher.example.com/my-tenant/v1/
Provide your endpoints via HTTPS.
POST.Content-Type: application/json.Authorization: Bearer <token>. See Authentication.Content-Encoding header.If a request fails with a network error, SIHOT.POS requests a new token and sends the same request once more. Process repeated RedeemVoucher and SellVoucher requests so that an amount is not redeemed twice and a voucher is not sold twice, for example by recognizing a request with the same voucher, bill, cash desk and business date.
Content-Type: application/json.200 as success. Do not use other success codes such as 201 or 204.GetVoucher is called for a voucher that does not exist, answer with HTTP status 281.400 or higher and a JSON body in the following format:If a redemption fails, SIHOT.POS shows error.message to the cashier.
Amounts are JSON numbers in the currency of the voucher, for example 10.5 for 10.50 EUR.
Dates are ISO 8601 values.
| Field | Format |
|---|---|
saleDate, expiryDate (responses) |
UTC midnight, for example 2026-10-12T00:00:00Z. Do not use a time zone offset such as +02:00: SIHOT.POS reads the values as UTC, and an offset can move the date by one day. |
revenueDate in RedeemVoucher |
Business date of SIHOT.POS, converted to UTC. Example: the business date 2026-11-05 in Central European Time is sent as 2026-11-04T23:00:00.0Z. Convert the value to the local time zone of the hotel to get the business date. |
revenueDate in SellVoucher |
Business date of SIHOT.POS, for example 2026-11-05. |
The milliseconds in date values from SIHOT.POS can have one to three digits, for example .0Z. Make sure your server accepts them.
Every GetVoucher response with HTTP status 200 must contain the following fields:
| Field | Rule |
|---|---|
voucherValueTotal |
Total value of the voucher. |
voucherValueRemaining |
Remaining value that can still be redeemed. |
currency |
Currency code, for example EUR. |
status |
valid, notValid, redeemed, expired or blocked. The values are case-sensitive. |
saleDate |
Date of the sale. For a voucher that is not sold yet, return 1899-12-30T00:00:00Z. Such a voucher can be sold but not redeemed. |
expiryDate |
First date on which the voucher is no longer valid. The voucher can be redeemed up to and including the day before. |
saleDate and expiryDate must always be present and must not be null, also for vouchers that are not sold or not valid.
Do not include a field errorCode in the response: SIHOT.POS treats a voucher with an errorCode other than 0 as not found.
redeemSettlementMode is optional. It determines how SIHOT.POS books a redemption: as payment (payment, default) or, if the hotel has configured this in SIHOT.POS, as item (service).
RedeemVoucher and SellVoucher return a transactionId. SIHOT.POS stores it and sends it back when the redemption or the sale is cancelled.
transactionId must be unique.transactionId nor a voucher code (voucherId) may contain a comma (,).billNumber is a string reference to the bill in SIHOT.POS. It can be "0", and in CancelRedemption it can differ from the value sent in RedeemVoucher. To identify a redemption or a sale in a cancellation request, use transactionId, not billNumber.tillNumber is the number of the SIHOT.POS cash desk.branchNumber is currently always 0.