Click or drag to resize

AdministrationClientReverseTransactionItem Method

Reverse the matching Transaction to the submitted Transaction Item RSN. The Reversal Transaction is a contra of the original Transaction.

Syntax
C#
public ResultOfTransactionProduct ReverseTransactionItem(
	ManagementGroupRequestOfReverseTransactionItem request
)

Parameters

request
Type: AdministrationServiceManagementGroupRequestOfReverseTransactionItem

Return Value

Type: ResultOfTransactionProduct
Examples
C#
using (var svc = new AdministrationService.AdministrationClient())
{
  var request = new AdministrationService.ManagementGroupRequestOfReverseTransactionItem();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin

  var reverseTransactionItem = new AdministrationService.ReverseTransactionItem();
  reverseTransactionItem.TransactionItem_RSN = new Guid("367e5388-c3b0-45a9-b015-9946a5894695");; //Required
  reverseTransactionItem.AdjustmentInternalNote = string.Empty; //Required;
  reverseTransactionItem.AdjustmentReasonNote = "Item damaged"; //Required

  request.Value = reverseTransactionItem;
  AdministrationService.ResultOfTransactionProduct result = svc.ReverseTransactionItem(request);

  if (result.FaultCode == 0)
  {
    //Request succeeded
  }
  else
  {
    //Request failed          
    throw new Exception(result.FaultDescription);
  }
}
See Also