Click or drag to resize

PointOfSaleClientSelectVouchers Method

Returns a Paged Collection of Vouchers linked to the submitted Card Number and Access Code.

Paging parameters can be defined in the request.

Syntax
C#
public ResultOfPagedCollectionOfVoucher SelectVouchers(
	RequestOfVoucherSearch request
)

Parameters

request
Type: PointOfSaleServiceRequestOfVoucherSearch

Return Value

Type: ResultOfPagedCollectionOfVoucher
Examples
C#
using (var svc = new PointOfSaleService.PointOfSaleClient())
{
  var request = new PointOfSaleService.RequestOfVoucherSearch();
  request.Token = "Token";//Required - Token returned from PointOfSaleService.Authenticate

  var voucherSearch = new PointOfSaleService.VoucherSearch();
  voucherSearch.PageNumber = 1; //Optional - Defaults to 1
  voucherSearch.PageSize = 100; //Optional - Defaults to 100
  voucherSearch.Member_RSN = new Guid("48b61429-b5dc-4341-8fad-5907e755426f");;//Required - RSN of member
  voucherSearch.VoucherStatus = "VALID"; //Optional - Valid values are : 'VALID', 'USED', 'EXPIRED' or 'INACTIVE'

  //add voucherSearch to request
  request.Value = voucherSearch;

  PointOfSaleService.ResultOfPagedCollectionOfVoucher result = svc.SelectVouchers(request);

  if (result.FaultCode == 0)
  {
    //Request succeeded
  }
  else
  {
    //Request failed
    throw new Exception(result.FaultDescription);
  }
}
See Also