Click or drag to resize

AdministrationClientDeclineTransaction Method

Decline the Transaction Item from the submitted Transaction Item RSN

Remarks
  • Transactions to be Declined can be generated from various End Point Web Service Methods
  • To find the list of Transactions to be Declined, use the Web Service Method: SelectPendingTransactions
Syntax
C#
public Result DeclineTransaction(
	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 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);
  }
}
See Also