Click or drag to resize

LoyaltyPartnerClientSelectPartnerCategory Method

Return the Partner Category Details from the submitted Partner Category RSN.

The Partner Category RSN can be fetched from the Web Service Method: SelectPartnerCategoryList

Syntax
C#
public ResultOfPartnerCategory SelectPartnerCategory(
	ManagementGroupRequestOfguid request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfguid

Return Value

Type: ResultOfPartnerCategory
Examples
C#
using (var svc = new LoyaltyService.LoyaltyPartnerClient())
{
  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("82278c35-a6da-4298-a357-0e42b48e6dbe");;//Required - RSN of partner category

  LoyaltyService.ResultOfPartnerCategory result = svc.SelectPartnerCategory(request);

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