Click or drag to resize

LoyaltyClientSelectCustomerAccountList Method

Return a collection of Customer Accounts, filtered from the submitted values.

Pagination parameters are available to format the response.

Syntax
C#
public ResultOfPagedCollectionOfCustomerAccountStub SelectCustomerAccountList(
	ManagementGroupRequestOfCustomerAccountSearch request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfCustomerAccountSearch

Return Value

Type: ResultOfPagedCollectionOfCustomerAccountStub
Examples
C#
using (var svc = new LoyaltyService.LoyaltyClient())
{
  var request = new LoyaltyService.ManagementGroupRequestOfCustomerAccountSearch();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin

  var search = new LoyaltyService.CustomerAccountSearch();
  search.PageNumber = 1;//Optional - defaults to 1 if not supplied
  search.PageSize = 100;//Optional - default to 100 if not supplied
  search.Member_RSN = new Guid("01ba0fa8-3dad-490c-a559-211184b0cbfe");;//Optional - RSN of member
  search.Partner_Category = "Retail";//Optional

  //add search to request
  request.Value = search;

  LoyaltyService.ResultOfPagedCollectionOfCustomerAccountStub result = svc.SelectCustomerAccountList(request);

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