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

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.

OlegYch
Member
1 REPLY 1

 

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

Joy
Administrator Administrator
Administrator