cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

valid referenced transaction id is required

We use authorize.net for the transaction in our application. In recent we are facing issues with CIM refunds. Everytime we try to refund using customer profile we see the following error "valid referenced transaction id is required". We use the attached XML. The payment is already settled. We are passing the valid customerProfileId and PaymentProfileId. Please let us know what else is being missed and what can we do to get the refund successful.

<createTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
  <merchantAuthentication>
    <name>{{login}}</name>
    <transactionKey>{{transaction_key}}</transactionKey>
  </merchantAuthentication>
  <refId>{{ref_id}}</refId>
  <transactionRequest>
    <transactionType>refundTransaction</transactionType>
    <amount>{{amount_to_pay}}</amount>
    <profile>
      <customerProfileId>{{customer_profile_id}}</customerProfileId>
      <paymentProfile>
        <paymentProfileId>{{payment_profile_id}}</paymentProfileId>
      </paymentProfile>
    </profile>
  </transactionRequest>
</createTransactionRequest>
naureenrazi
Member
1 REPLY 1

Hello @naureenrazi

 

Instead of using the deprecated method above, instead use the previous transaction id.

 

https://developer.authorize.net/api/reference/index.html#payment-transactions-refund-a-transaction

 

Richard

RichardH
Administrator Administrator
Administrator