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.
โ02-27-2015 04:54 AM
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
โ03-06-2015 02:59 PM