Click or drag to resize

LoyaltyClientSelectVoucherByRSN Method

Syntax
C#
public ResultOfMemberVoucherDetail SelectVoucherByRSN(
	ManagementGroupRequestOfguid request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfguid

Return Value

Type: ResultOfMemberVoucherDetail
Examples
C#
using (var svc = new LoyaltyService.LoyaltyClient())
{
  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("57d2520c-5cdb-4e2e-946e-8b4b242d7683");;//Required - RSN of voucher

  LoyaltyService.ResultOfMemberVoucherDetail result = svc.SelectVoucherByRSN(request);

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