Reply
Highlighted
Member
Posts: 1
Registered: ‎07-19-2016

AIM Refund API Error, Please hlep me

[ Edited ]

Hi. I'm testing AIM refund API.

 

I made an  authCaptureTransaction and it was settled successfully. I checked it on sandbox.authorize.net settled transactions.

 

whenever I make a call, I get "The referenced transaction does not meet the criteria for issuing a credit." error.

 

 

<createTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
	<merchantAuthentication>
		<name>4XdaJ4d7hL</name>
		<transactionKey>XXXXXXXXXXXXX</transactionKey>
	</merchantAuthentication>
	<refId>123456</refId>
	<transactionRequest>
		<transactionType>refundTransaction</transactionType>
		<amount>5.00</amount>
		<payment>
			<creditCard>
				<cardNumber>0015</cardNumber>
				<expirationDate>XXXX</expirationDate>
			</creditCard>
		</payment>
		<refTransId>2261391716</refTransId>
	</transactionRequest>
</createTransactionRequest>

 

 

 

<?xml version="1.0" encoding="utf-8"?> 
<createTransactionResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
  <refId>
    123456
  </refId>
  <messages>
    <resultCode>
      Error
    </resultCode>
    <message>
      <code>
        E00027
      </code>
      <text>
        The transaction was unsuccessful.
      </text>
    </message>
  </messages>
  <transactionResponse>
    <responseCode>
      3
    </responseCode>
    <authCode />
    <avsResultCode>
      P
    </avsResultCode>
    <cvvResultCode />
    <cavvResultCode />
    <transId>
      0
    </transId>
    <refTransID>
      2261391716
    </refTransID>
    <transHash>
      A2B0F3BC88BA59676C12F626E50F15CF
    </transHash>
    <testRequest>
      0
    </testRequest>
    <accountNumber>
      XXXX0015
    </accountNumber>
    <accountType>
      Visa
    </accountType>
    <errors>
      <error>
        <errorCode>
          54
        </errorCode>
        <errorText>
          The referenced transaction does not meet the criteria for issuing a credit.
        </errorText>
      </error>
    </errors>
  </transactionResponse>
</createTransactionResponse>

 

 

Highlighted
Administrator Administrator
Administrator
Posts: 563
Registered: ‎08-03-2011

Re: AIM Refund API Error, Please hlep me

 

Hi parkbear01,

 

The transaction ID in question that you are trying to refund 2261391716 has not settled yet. It is still in Captured/Pending Settlement state. It is important to know that you can only run a refund if the transaction has settled successfully . Settlement happens once a day during your transaction cut off time which you can check under your Account Settings. You can check this article for the requirements when processing  a refund.

 

Thanks,

Joy