Click or drag to resize

LoyaltyCampaignOfferClientSelectCampaignOfferForMemberList Method

Returns a Paged Collection of all the Campaign Offers available to a Member, filtered from the submitted values.

Paging parameters can be defined in the request.

Remarks
  • Member_RSN is mandatory
  • Program_RSN is mandatory
Syntax
C#
public ResultOfPagedCollectionOfCampaignOffer SelectCampaignOfferForMemberList(
	ManagementGroupRequestOfCampaignOfferForMemberSearch request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfCampaignOfferForMemberSearch

Return Value

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

  var search = new LoyaltyService.CampaignOfferForMemberSearch();
  search.PageNumber = 1;//Optional - defaults to 1 if not supplied
  search.PageSize = 100;//Optional - default to 100 if not supplied
  search.Member_RSN = new Guid("b9906085-854d-4ec1-8960-9df1d55d73b1");;//Required - RSN of member
  search.Category = "Bags";//Optional
  search.Location = "";//Optional
  search.OfferCode = "OFFER_BAGS10";//Optional
  search.PartnerRSN = new Guid("238e2672-d684-45cb-ab56-7931ee8ce230");;//Optional - RSN of partner
  search.Program_RSN = new Guid("14944e32-b0ec-4f8e-93bd-1987fa532c6f");;//Optional - RSN of program

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

  LoyaltyService.ResultOfPagedCollectionOfCampaignOffer result = svc.SelectCampaignOfferForMemberList(request);

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