Is it possible to do a partial refund with a PayPal transaction? I am only seeing documentation for a void (if not settled) or credit (if settled). Credit doesn't look like you can pass an arbitrary amount. Am I missing something? Thanks in advance for any advice.
Solved! Go to Solution.
โ02-26-2018 11:15 AM
Yes, you can send the amount field in the request with an amount up to the amount of the original transaction. Multiple refund requests may be submitted that add up to the total amount of the original reference transaction.
<createTransactionRequest xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="https://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>API_LOGIN_ID</name>
<transactionKey>API_TRANSACTION_KEY</transactionKey>
</merchantAuthentication>
<transactionRequest>
<transactionType>refundTransaction</transactionType>
<amount>1.00</amount>
<refTransId>138</refTransId>
</transactionRequest>
</createTransactionRequest>
โ02-27-2018 05:52 PM
Yes, you can send the amount field in the request with an amount up to the amount of the original transaction. Multiple refund requests may be submitted that add up to the total amount of the original reference transaction.
<createTransactionRequest xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="https://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>API_LOGIN_ID</name>
<transactionKey>API_TRANSACTION_KEY</transactionKey>
</merchantAuthentication>
<transactionRequest>
<transactionType>refundTransaction</transactionType>
<amount>1.00</amount>
<refTransId>138</refTransId>
</transactionRequest>
</createTransactionRequest>
โ02-27-2018 05:52 PM