cancel
Showing results for 
Search instead for 
Did you mean: 

Production card-present refund error

Hi, please help me with my issue.
I'm trying to make a refund of Card Present transaction using JSON API,
but I have error back "The transaction was unsuccessful. Transactions of this market type cannot be processed on this system."
The problem is only in production mode. 
When I'm doing this in sandbox - it works well.
 
For example the following JSON request returns the same error:
 
{  
   "createTransactionRequest":{  
      "merchantAuthentication":{  
         "name":"MY_ID",
         "transactionKey":"MY_TRANS_KEY"
      },
      "transactionRequest":{  
         "transactionType":"refundTransaction",
         "amount":6.4,
         "payment":{  
            "creditCard":{  
               "cardNumber":"4748",
               "expirationDate":"XXXX"
            }
         },
         "refTransId":"40762389881"
      }
   }
}
 
Thanks.
rota0704
Member
3 REPLIES 3

Can you add more detail about the original transaction?

What fields did you submit with it?

 

 

 

mmcguire
Administrator Administrator
Administrator

I am already found an issue.

There is wrong documentation for Refund Transaction section in API.

If you are using Card-Present, you have also include "retail" element as in capture transactions. 

But in API docs and samples this is absent.

Thanks

I am having the same error, implemented the solution you suggest, but still getting the same error.

 

 

Here is the XML of my request:

<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<createTransactionRequest xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\">\n<merchantAuthentication>\n<name>55hrBV6y45t</name>\n<transactionKey>*********/transactionKey>\n</merchantAuthentication>\n<transactionRequest>\n<transactionType>refundTransaction</transactionType>\n<amount>3.00</amount>\n<payment>\n<creditCard>\n<cardNumber>3215</cardNumber>\n<expirationDate>XXXX</expirationDate>\n</creditCard>\n</payment>\n<refTransId>40927146067</refTransId>\n<order>\n<invoiceNumber>273985</invoiceNumber>\n<description/>\n</order>\n<customer/>\n<billTo>\n<address/>\n<city/>\n<state>n/a</state>\n<zip/>\n<country/>\n</billTo>\n<cardholderAuthentication>\n<authenticationIndicator/>\n<cardholderAuthenticationValue/>\n</cardholderAuthentication>\n<retail>\n<marketType>2</marketType>\n</retail>\n<userFields>\n<userField>\n<name>x_currency_code</name>\n<value>USD</value>\n</userField>\n</userFields>\n</transactionRequest>\n</createTransactionRequest>\n"

 

I get back this error:

"Transactions of this market type cannot be processed on this system"

 

I tried passing a 1 in as the market type too but same error message.  

 

Any ideas?

 

Thanks,

Kurt