PointOfSaleClientVoucherDetails Method |
Returns the details of the Voucher for the submitted Voucher Number.
public ResultOfVoucherDetail VoucherDetails( RequestOfstring request )
using (var svc = new PointOfSaleService.PointOfSaleClient()) { var request = new PointOfSaleService.RequestOfstring(); request.Token = "Token";//Required - Token returned from PointOfSaleService.Authenticate request.Value = "Voucher code";//Required - Voucher code PointOfSaleService.ResultOfVoucherDetail result = svc.VoucherDetails(request); if (result.FaultCode == 0) { //Request succeeded } else { //Request failed throw new Exception(result.FaultDescription); } }