Click or drag to resize

LoyaltyClientSelectProgramPercentageRequiredToNextTier Method

Returns the progress for the number of points required for the Member to progress to the next Membership Tier. Progress is expressed as a percentage for the submitted Card Number.

Parameters are available to optionally return a pro rata percentage based on the next Program Membershop Anniversary Date.

Syntax
C#
public ResultOfdecimal SelectProgramPercentageRequiredToNextTier(
	ManagementGroupRequestOfCardProgramTierSearch request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfCardProgramTierSearch

Return Value

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

  var search = new LoyaltyService.CardProgramTierSearch();
  search.Card_Number = "21000005";//Required
  search.ProRata = true;//Optional - get pro-rata value if true. Otherwise get standard value
  search.ProRataPeriod = 90;//Optional - days that membership duration must exceed to qualify for pro-rata

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

  LoyaltyService.ResultOfdecimal result = svc.SelectProgramPercentageRequiredToNextTier(request);

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