Reply
Member
Posts: 9
Registered: ‎04-13-2016

More issues with CNP refunds

[ Edited ]

Hello,

I am attempting to issue a CNP refund using the following JSON:

{
	"createTransactionRequest":{
		"merchantAuthentication" {
			"name":"<NAME>",
			"transactionKey":"<KEY>"
		},
		"transactionRequest":{
			"transactionType":"refundTransaction",
			"amount":10.0,
			"payment":{
				"creditCard" {
					"cardNumber":"1234",
 					"expirationDate":"XXXX"
				}
			},
			"refTransId":"60992495427",
			"retail":{
				"marketType":"2",
				"deviceType":"5"
			}
		}
	}
}

The transaction 60992495427 was for $10.00 and has been settled successfully, but I get this response:

messages
    message      
        code: E00027
        text: The transaction was unsuccessful.
    resultCode: Error
transactionResponse
    accountNumber: 
    accountType: 
    authCode: 
    avsResultCode: P
    cvvResultCode: 
    errors      
        errorCode: 54
        errorText: The referenced transaction does not meet the criteria for issuing a credit.
    refTransID: 60992495427
    responseCode: 3
    shipTo
    testRequest: 0
    transHash: <HASH>
    transHashSha2: 
    transId: 0

What am I missing in my refund request? The originial TX was charged to a customer's stored payment information in the CIM system.

 

Thank you!

Highlighted
Member
Posts: 9
Registered: ‎04-13-2016

Re: More issues with CNP refunds

It is also worth noting that the original TX is less than 120 days old.

Posts: 284
Kudos: 47
Solutions: 33
Registered: ‎03-13-2017

Re: More issues with CNP refunds

Hi @8Ball

 

You can check the Error response code tool to get more information for 54 . 

 

https://developer.authorize.net/api/reference/responseCodes.html  

 

CODE: 54

EXPLANATION: The referenced transaction does not meet the criteria for issuing a credit.

INTEGRATION SUGGESTIONS: The referenced transaction does not meet the criteria for issuing a credit. It may be unsettled, an invalid type, the wrong currency, an invalid reference transaction ID or settled more than 120 days ago.

Consider applying for Expanded Credit-Return Capabilities if the merchant needs to refund transactions older than 120 days.

 

 

If still questions i will suggest to contact our CS team . 

 

Thanks

Follow me at

https://twitter.com/anuragg29

https://www.linkedin.com/in/anuragg



Send feedback at developer_feedback@authorize.net