LoyaltyClientSelectCustomerAccountList Method |
Return a collection of Customer Accounts, filtered from the submitted values.
Pagination parameters are available to format the response.
public ResultOfPagedCollectionOfCustomerAccountStub SelectCustomerAccountList( ManagementGroupRequestOfCustomerAccountSearch request )
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); } }