AdministrationClientApproveTransaction Method |
Approve the Transaction Item from the submitted Transaction Item RSN
public Result ApproveTransaction( ManagementGroupRequestOfApproveTransaction request )
using (var svc = new AdministrationService.AdministrationClient()) { var request = new AdministrationService.ManagementGroupRequestOfApproveTransaction(); request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin var approveTransaction = new AdministrationService.ApproveTransaction(); approveTransaction.TransactionSet_RSN = new Guid("cef80843-254f-4d85-afdc-6fe8c0b8855a");; //Required approveTransaction.Reference = "Approval by head office - SW_12"; //Optional // add confirmTransactionItem to request request.Value = approveTransaction;//Required AdministrationService.Result result = svc.ApproveTransaction(request); if (result.FaultCode == 0) { //Request succeeded } else { //Request failed throw new Exception(result.FaultDescription); } }