Use Cases: Gift Vouchers

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.

Sequence: S_AUTHENTICATE, S_EXTERNAL_GIFTVOUCHER_GET, user confirms, S_EXTERNAL_GIFTVOUCHER_REDEEM, payment posted

Process in SIHOT.PMS

  1. The user opens the guest folio, selects Redeem external voucher, enters the voucher number and, if several systems are connected, selects your system.
  2. SIHOT.PMS requests a token with S_AUTHENTICATE.
  3. SIHOT.PMS requests the voucher with S_EXTERNAL_GIFTVOUCHER_GET.
  4. 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.
  5. SIHOT.PMS sends S_EXTERNAL_GIFTVOUCHER_REDEEM with the complete remaining value of the voucher.
  6. 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

JSON
{
  "transactionId": "6F9619FF-8B86-D011-B42D-00C04FC964FF",
  "externalVoucherNumber": "GV-123456-2026"
}

What your server does:

  • Find the voucher and check whether it can be redeemed: it exists, is valid, is not blocked, has not expired and has a remaining value.
  • If it can be redeemed, return exactly one voucher with all fields and result.success = true.
  • If it cannot be redeemed, return result.success = false and an errorMessage that explains why. SIHOT.PMS shows the message to the user.

Sample Response – voucher can be redeemed

JSON
{
  "transactionId": "6F9619FF-8B86-D011-B42D-00C04FC964FF",
  "giftVoucher": [
    {
      "status": "valid",
      "externalVoucherNumber": "GV-123456-2026",
      "originalAmount": 100.00,
      "remainingAmount": 60.00,
      "partialRedemptionAllowed": true,
      "sellDate": "2026-01-15",
      "expiryDate": "2028-01-15"
    }
  ],
  "result": {
    "success": true,
    "errorCode": null,
    "errorMessage": null,
    "messages": []
  }
}

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

JSON
{
  "transactionId": "3F2504E0-4F89-11D3-9A0C-0305E82C3301",
  "externalVoucherNumber": "GV-123456-2026",
  "amount": 60.00,
  "revenueDate": "2026-11-05"
}

What your server does:

  • 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.

Sample Response

JSON
{
  "transactionId": "3F2504E0-4F89-11D3-9A0C-0305E82C3301",
  "giftVoucher": [
    {
      "status": "redeemed",
      "externalVoucherNumber": "GV-123456-2026",
      "originalAmount": 100.00,
      "remainingAmount": 0.00,
      "partialRedemptionAllowed": true,
      "sellDate": "2026-01-15",
      "expiryDate": "2028-01-15"
    }
  ],
  "result": {
    "success": true,
    "errorCode": null,
    "errorMessage": null,
    "messages": []
  }
}

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.