Click or drag to resize

PointOfSaleClientSelectMembers Method

Return a collection of Members, filtered from the submitted values.

Pagination parameters are available to format the response.

Remarks
  • If a Card or Voucher Number is submitted, then this takes precendence over the other Filter Fields.
Syntax
C#
public ResultOfPagedCollectionOfMemberStub SelectMembers(
	RequestOfMemberSearchFilter request
)

Parameters

request
Type: PointOfSaleServiceRequestOfMemberSearchFilter

Return Value

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

  //Search criteria
  var memberSearchFilter = new PointOfSaleService.MemberSearchFilter();
  memberSearchFilter.PageNumber = 1; //Optional - Defaults to 1
  memberSearchFilter.PageSize = 100; //Optional - Defaults to 100
  memberSearchFilter.CardOrVoucher = "21000005"; //Optional - Can be card number or voucher code
  memberSearchFilter.ActiveMembership = true; //Optional
  memberSearchFilter.EmailAddress = "demo@simplicitycrm.com"; //Optional
  memberSearchFilter.GivenName = "John"; //Optional
  memberSearchFilter.FamilyName = "Doe"; //Optional
  memberSearchFilter.PhoneLocal = "9265400"; //Optional
  memberSearchFilter.PostCode = "0632"; //Optional

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

  PointOfSaleService.ResultOfPagedCollectionOfMemberStub result = svc.SelectMembers(request);

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