Click or drag to resize

LoyaltyClientSelectCustomerAccount Method

Return the Customer Account details from the submitted Customer Account RSN.

The Customer Account RSN can be fetched from the Web Service Method: SelectCustomerAccountList

Syntax
C#
public ResultOfCustomerAccount SelectCustomerAccount(
	ManagementGroupRequestOfguid request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfguid

Return Value

Type: ResultOfCustomerAccount
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("d33ff7cf-6497-4d14-95b6-389d5d62c25a");; //Required - RSN of customer account

  LoyaltyService.ResultOfCustomerAccount result = svc.SelectCustomerAccount(request);

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