Reply
Highlighted
Member
Posts: 1
Registered: ‎02-27-2015

invoice number for refund transactions

Hi

I want to identify transactions with an external id, and i'm using invoiceNumber for that. It works fine for all kinds of transactions, except for refundTransaction. When i submit refund invoice number in reports is always empty.

Is there a way to set invoiceNumber for refunds? Or is there some other way to tag transactions so that i can search for them later?

Thanks, Aleh.

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

Re: invoice number for refund transactions

 

Hi OlegYch,

 

You can pass the invoiceNumber with your refund request and it should display in your report:

 

<createTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
  <merchantAuthentication>
    <name>API_LOGIN_ID</name>
    <transactionKey>API_TRANSACTION_KEY</transactionKey>
  </merchantAuthentication>
  <refId>123456</refId>
  <transactionRequest>
    <transactionType>refundTransaction</transactionType>
    <amount>5</amount>
    <payment>
      <creditCard>
        <cardNumber>1111</cardNumber>
        <expirationDate>XXXX</expirationDate>
        <cardCode>999</cardCode>
      </creditCard>
    </payment>
     <refTransId>1234567890</refTransId>
    <order>
     <invoiceNumber>INV-1234</invoiceNumber>
         </order>
     </transactionRequest>
</createTransactionRequest>

 

 

Thanks,

Joy