PointOfSaleClientSelectMemberByCardNumber Method |
Return the Member Details from the submitted Card Number.
public ResultOfMember SelectMemberByCardNumber( RequestOfMemberCardSearch request )
using (var svc = new PointOfSaleService.PointOfSaleClient()) { var request = new PointOfSaleService.RequestOfMemberCardSearch(); request.Token = "Token";//Required - Token returned from PointOfSaleService.Authenticate var memberCardSearch = new PointOfSaleService.MemberCardSearch(); memberCardSearch.CardNumber = "21000005"; //Required memberCardSearch.ReturnAllMemberData = true; //Optional //add memberCardSearch to request request.Value = memberCardSearch;//Required PointOfSaleService.ResultOfMember result = svc.SelectMemberByCardNumber(request); if (result.FaultCode == 0) { //Request succeeded } else { //Request failed throw new Exception(result.FaultDescription); } }