Click or drag to resize

LoyaltyClientSelectMemberPointsSummaryByProgramCode Method

Returns the Program Member Details and Points Expiry for the submitted Member RSN and Program Code for Expiries that are:

  • Potential Points to be Expired in the future
  • Points already Expired in the past

Syntax
C#
public ResultOfProgramMembershipPointsSummary SelectMemberPointsSummaryByProgramCode(
	ManagementGroupRequestOfMemberPointsSummaryByProgramCode request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfMemberPointsSummaryByProgramCode

Return Value

Type: ResultOfProgramMembershipPointsSummary
Examples
C#
using (var svc = new LoyaltyService.LoyaltyClient())
{
  var request = new LoyaltyService.ManagementGroupRequestOfMemberPointsSummaryByProgramCode();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin

  var search = new LoyaltyService.MemberPointsSummaryByProgramCode();
  search.Member_RSN = new Guid("585a0117-eeda-4841-b96b-5d6ea2fbc231");;//Required - RSN of member
  search.ProgramCode = "SRB";//Required

  //add filter to request
  request.Value = search;

  LoyaltyService.ResultOfProgramMembershipPointsSummary result = svc.SelectMemberPointsSummaryByProgramCode(request);

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