Reply
Highlighted
Member
Posts: 8
Registered: ‎02-20-2018
Accepted Solution

PayPal Partial Refund?

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.


Accepted Solutions
Highlighted
Solution
Accepted by topic author JChalek
‎03-08-2018 08:53 AM
Administrator
Posts: 145
Registered: ‎11-29-2017

Re: PayPal Partial Refund?

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>

View solution in original post


All Replies
Highlighted
Solution
Accepted by topic author JChalek
‎03-08-2018 08:53 AM
Administrator
Posts: 145
Registered: ‎11-29-2017

Re: PayPal Partial Refund?

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>