Click or drag to resize

PointOfSaleClientSelectMemberByCardNumber Method

Return the Member Details from the submitted Card Number.

Syntax
C#
public ResultOfMember SelectMemberByCardNumber(
	RequestOfMemberCardSearch request
)

Parameters

request
Type: PointOfSaleServiceRequestOfMemberCardSearch

Return Value

Type: ResultOfMember
Examples
C#
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);
  }
}
See Also