AdministrationClientDeclineTransaction Method |
Decline the Transaction Item from the submitted Transaction Item RSN
public Result DeclineTransaction( 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 declineTransaction = new AdministrationService.ApproveTransaction(); declineTransaction.TransactionSet_RSN = new Guid("cdc0ddd6-b334-408e-ab23-072d09b26103");; //Required declineTransaction.Reference = "Declined by head office - SW_12"; //Optional // add declineTransaction to request request.Value = declineTransaction;//Required AdministrationService.Result result = svc.DeclineTransaction(request); if (result.FaultCode == 0) { //Request succeeded } else { //Request failed throw new Exception(result.FaultDescription); } }