Click or drag to resize

AdministrationClientApproveTransaction Method

Approve the Transaction Item from the submitted Transaction Item RSN

Remarks
Transactions to be approved can be generated from various End Point Web Service Methods. To find the list of Transactions to be Approved, use the Web Service Method: SelectPendingTransactions
Syntax
C#
public Result ApproveTransaction(
	ManagementGroupRequestOfApproveTransaction request
)

Parameters

request
Type: AdministrationServiceManagementGroupRequestOfApproveTransaction

Return Value

Type: Result
Examples
C#
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);
  }
}
See Also