Click or drag to resize

LoyaltyClientSelectTransactionDetailList Method

Returns a Paged Collection of Transaction Details from the submitted Search Paramaters.

Paging parameters can be defined in the request.

Syntax
C#
public ResultOfPagedCollectionOfTransactionDetail SelectTransactionDetailList(
	ManagementGroupRequestOfTransactionHistorySearch request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfTransactionHistorySearch

Return Value

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

  var search = new LoyaltyService.TransactionHistorySearch();
  search.PageNumber = 1;//Optional - defaults to 1 if not supplied
  search.PageSize = 100;//Optional - default to 100 if not supplied
  search.CardNumbers = new string[] { "21000005" };//Optional
  search.Location = "DemoCorp";//Optional - company name of transaction partner
  search.MinPointsGenerated = 50.00m;//Optional - ignored if null
  search.MaxPointsGenerated = 100.00m;//Optional - ignored if null
  search.MinTransactionDate = DateTime.Now.AddDays(-14);//Optional
  search.MaxTransactionDate = DateTime.Now.AddDays(-7);//Optional
  search.MinTransactionTotal = 703.00m;//Optional - ignored if null
  search.MaxTransactionTotal = 100.00m;//Optional - ignored if null
  search.Member_RSN = new Guid("860df761-0875-4bc3-a5b7-8c0822b075e2");;//Optional - RSN of member
  search.Partner_RSN = new Guid("9441f939-75c4-4737-9a1a-f7c3434c7527");; //Optional - RSN of partner
  search.TransactionID = "NON_SALE_TRANS_123";//Optional
  search.TransactionTypes = new string[] { "SALE", "ADJUSTMENT" };//Optional - Valid values are : 'ADJUSTMENT', 'PAY', 'SALE', 'VOUCHERREDEMPTION', 'ACTIVITY', 'BONUS', 'POINTSEXPIRY', 'POINTSREDEMPTION', 'REWARD'

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

  LoyaltyService.ResultOfPagedCollectionOfTransactionDetail result = svc.SelectTransactionDetailList(request);

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