menu

GenerateVoucher Request

{
  "BookingId": "458855",
  "EndUserIp": "123.0.0.0"
}

GenerateVoucher Response

{
  "GenerateVoucherResult": {
    "VoucherStatus": true,
    "ResponseStatus": 1,
    "Error": {
      "ErrorCode": 0,
      "ErrorMessage": ""
    },
    "TraceId": "7895f551-bfc6-4fb8-ace3-01240c660ea4",
    "Status": 1,
    "HotelBookingStatus": "Confirmed",
    "InvoiceNumber": "MW/1516/4343",
    "ConfirmationNo": "LL8F392693 - 010/502365",
    "BookingRefNo": "502365",
    "BookingId": 1302607
  }
}

GenerateVoucher Request with PAN

For bookings that can be placed on hold and do not require immediate vouchering, the PAN information can be skipped at the time of confirmation. However, when vouchering such bookings using the GenerateVoucher method, it is mandatory to include the PAN details at that stage.
PFB the request structure of sending the PAN information.

  {"IsCorporate": "false",
 "BookingId": "458855",
  "HotelRoomsDetails": [
    {
      "HotelPassenger": [
        {
          "PaxId": "166454",
          "PAN": "AAAAA1111B"
        }
      ]
    }
  ],
  "EndUserIp": "122.180.5.93",
 
  "TokenId": "F34A6B0D-E4C9-4958-85C9-ED6F3D57AA77"
}

GenerateVoucher Response

{
  "GenerateVoucherResult": {
    "VoucherStatus": true,
    "ResponseStatus": 1,
    "Error": {
      "ErrorCode": 0,
      "ErrorMessage": ""
    },
    "TraceId": "7895f551-bfc6-4fb8-ace3-01240c660ea4",
    "Status": 1,
    "HotelBookingStatus": "Confirmed",
    "InvoiceNumber": "MW/1516/4343",
    "ConfirmationNo": "LL8F392693 - 010/502365",
    "BookingRefNo": "502365",
    "BookingId": 1302607
  }
}