LoyaltyClientSelectTransactionDetailByTransactionID Method |
Returns the Transaction Details from the submitted Transaction ID.
The Transaction ID can be fetched from the Web Service Method: SelectTransactionDetailList
public ResultOfTransactionDetail SelectTransactionDetailByTransactionID( ManagementGroupRequestOfstring request )
using (var svc = new LoyaltyService.LoyaltyClient()) { var request = new LoyaltyService.ManagementGroupRequestOfstring(); request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin request.Value = "NON_SALE_TRANS_123";//Required - transaction id LoyaltyService.ResultOfTransactionDetail result = svc.SelectTransactionDetailByTransactionID(request); if (result.FaultCode == 0) { //Request succeeded } else { //Request failed throw new Exception(result.FaultDescription); } }