Click or drag to resize

LoyaltyClientSelectCardByRSN Method

Returns the Card Details for the submitted Card RSN. Also returns a Transaction History associated to the submitted Card RSN.

Syntax
C#
public ResultOfCardDetail SelectCardByRSN(
	ManagementGroupRequestOfguid request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfguid

Return Value

Type: ResultOfCardDetail
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("f06c783d-0b58-43d7-b028-50b427e35336");; //Required - RSN of card

  LoyaltyService.ResultOfCardDetail result = svc.SelectCardByRSN(request);

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