LoyaltyCampaignOfferClientDeleteCampaignOffer Method |
Delete the Campaign Offer from the submitted Campaign Offer RSN.
The Campaign Offer RSN can be fetched from the Web Service Method: SelectCampaignOfferList
public Result DeleteCampaignOffer( ManagementGroupRequestOfguid request )
using (var svc = new LoyaltyService.LoyaltyCampaignOfferClient()) { var request = new LoyaltyService.ManagementGroupRequestOfguid(); request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin request.Value = new Guid("a4a8980d-70d5-42a1-b6ce-280f65ad331e");;//Required - RSN of campaign offer LoyaltyService.Result result = svc.DeleteCampaignOffer(request); if (result.FaultCode == 0) { //Request succeeded. } else { //Request failed throw new Exception(result.FaultDescription); } }