Click or drag to resize

LoyaltyCampaignOfferClientSelectCampaignOfferForCardList Method

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

Paging parameters can be defined in the request.

Syntax
C#
public ResultOfPagedCollectionOfCampaignOffer SelectCampaignOfferForCardList(
	ManagementGroupRequestOfCampaignOfferForCardSearch request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfCampaignOfferForCardSearch

Return Value

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

  var search = new LoyaltyService.CampaignOfferForCardSearch();
  search.PageNumber = 1;//Optional - defaults to 1 if not supplied
  search.PageSize = 100;//Optional - default to 100 if not supplied
  search.Card_Number = "21000005";//Optional
  search.Category = "Bags";//Optional
  search.DetailFormURL = "";//Optional - currently ignored
  search.FulfilmentType = "";//Optional - Valid values are : "NONPERSONALISEDOFFER" or "SHOPPINGCARTPRODUCTOPTIONALWITHSIZEORCOLOUR"
  search.SingleOffer = false;//Optional

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

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

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