Im using cybersource SOAP toolkit API to perform transaction. Transaction capture works fine, but whenever I attempt to void a transaction Im getting response code 246 :"you requested a void for a type of transaction that cannot be voided" . Why is this happening? I have included all parameters required to Void transaction
RequestMessage request = new RequestMessage();
request.voidService = new VoidService();
request.voidService.run = "true";
request.voidService.voidRequestID = "value";
request.voidService.voidRequestToken = "value";
request.merchantID = "value";
request.merchantReferenceCode = "value";
TransactionProcessorClient proc = new TransactionProcessorClient();
proc.ChannelFactory.Credentials.UserName.UserName
= "merchantID";
proc.ChannelFactory.Credentials.UserName.Password
= "password";
ReplyMessage reply = proc.runTransaction(request);