LoyaltyPartnerClientCancelSaleTransactionBatch Method |
Cancel the processing of a queued batch of Transactions, from the submitted Batch RSN. A batch cannot be cancelled after it has been processed.
This method is a step in the workflow for Transaction File Batch submission.
public ResultOfBatch CancelSaleTransactionBatch( ManagementGroupRequestOfguid request )
using (var svc = new LoyaltyService.LoyaltyPartnerClient()) { 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("8e523c44-1344-4f28-a7eb-012752451c44");;//Required - RSN of batch LoyaltyService.ResultOfBatch result = svc.CancelSaleTransactionBatch(request); if (result.FaultCode == 0) { //Request succeeded } else { //Request failed throw new Exception(result.FaultDescription); } }