Click or drag to resize

LoyaltyClientSelectCardNumber Method

Return the first Card Number linked to the authenticated Member.

The Token supplied when the Member is Authenticated, links to the Card Number.

Syntax
C#
public ResultOfstring SelectCardNumber(
	ManagementGroupRequestOfguid request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfguid

Return Value

Type: ResultOfstring
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("b1c3d5fc-009b-44d8-b05f-bb81a54b240f");; //Required - RSN of member

  LoyaltyService.ResultOfstring result = svc.SelectCardNumber(request);

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