PointOfSaleClientSelectMembers Method |
Return a collection of Members, filtered from the submitted values.
Pagination parameters are available to format the response.
public ResultOfPagedCollectionOfMemberStub SelectMembers( RequestOfMemberSearchFilter request )
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); } }