Refund in Customer Area
You can also refund payments in your Customer Area. For more information, refer to Manage payments. If you want to return the funds to your shopper, for example if they returned an item, you need to make a /refund request. In your call to the /refund endpoint, you need to specify thepspReference of the original payment. If you want to refund a payment for which you do not have the pspReference available, you can also make an unreferenced refund.
You can only refund a payment after it has already been captured. Payments that have not yet been captured have to be cancelled instead.
Refund a payment
In your request to the /refund endpoint, specify:merchantAccount: The name of your merchant account that is used to process the payment.modificationAmount: The amount that you want to refund. This must be the same as or less than the capturedamount.originalReference: The originalpspReferenceof the payment that you want to refund. This reference is returned in the response to your payment request, and in the AUTHORISATION webhook event.reference: Your reference for the refund, for example for tagging a partial refund for future reconciliation. Thereferenceparameter is required for GrabPay refunds.
/refund response containing:
pspReference: The PSP reference associated with this/refundrequest. Note that this is different from the PSP reference associated with the original payment request.
REFUND webhook
Once we have processed your refund request, we send you a webhook with:-
eventCode: REFUND. -
pspReference: Same as thepspReferencein the/refundresponse. -
success: Indicates whether the refund request was successful. Possible values:- true: The refund request was successful. This usually means that the refund was successful. For information on exceptions, refer to Failed refund exceptions.
- false: The refund request failed. The webhook includes a
reasonfield with a short description of the problem. Review the reason, fix the issue if possible, and resubmit the refund request.
Partial refund
With some payment methods, it is also possible to partially refund a payment. In case of a partial refund, you only return a part of the captured amount to the shopper. To partially refund a payment, make a request to the /refund endpoint, specifying:value: The amount that you want to refund. This must not exceed the capturedvalue.
Failed refund
An overview of failed and reversed refunds is available in your Payment accounting report. A refund can fail if:- The refund request is unsuccessful.
- The refund is rejected by the card scheme.
- The refund is reversed.
Unsuccessful refund request
When a refund request is unsuccessful, you receive thesuccess value false in the REFUND webhook. Below are the most common reason values in the REFUND webhook:
The balance on the payment refers to the amount that remains from the original payment. For example, if a transaction has a total of EUR 10 and no refund or chargeback is processed, then the balance on the payment is EUR 10. After a refund or chargeback of EUR 3 is processed, the remaining balance on the payment is EUR 7.
Rejection by card scheme
Although rare, a refund can fail after you received a REFUND webhook withsuccess: true.
The successful webhook means that the request has been sent to the card scheme, but it can still be rejected by the card scheme at this point. This may happen even a few days after you submitted the refund request.
Most of the time Adyen can fix the issue, so that the shopper will eventually receive the funds. Sometimes, however, you need to take action yourself. To learn why a refund can fail and what, if anything, you need to do in each case, refer to Reasons for failed refund after a success:true.
When a refund fails, we inform you of this with a webhook containing:
eventCode: REFUND_FAILEDpspReference: ThepspReferenceof the refund request.
Reversed refund
For some payment methods, for example bank transfers, iDEAL, or Bancontact, the status of the payment can change from Refunded to RefundedReversed. This means that the funds have been returned to Adyen, and are back in your account. For example, this may happen if the shopper’s bank account is no longer valid. To resolve these scenarios, check with the shopper the status of their bank account. When a refund is reversed, we inform you of this with a webhook containing:eventCode: REFUNDED_REVERSEDsuccess: true
Testing failed refunds
In our test environment, you can check how your integration handles failed refunds:-
Make a card payment, specifying:
holderName: refund failed
-
Refund this payment, either in your Customer Area, or by making a
/refundrequest.
eventCode: REFUND_FAILED.
This request may take several hours to process.
Unreferenced refund
Payouts
For sending funds to your customers, use our Payout solution instead. When you migrate your payment data to Adyen or integrate with an Adyen point-of-sale solution, you might need to refund a payment for which you have nopspReference available. The /refundWithData endpoint allows you to make an unreferenced refund to either:
Refunding with data is limited by default due to anti-money laundering and payment industry regulations. To enable this functionality, contact our Support Team.
Refund to a bank account
To refund the funds to a shopper’s bank account, make a request to the/refundWithData endpoint:
/refundWithData response containing a:
pspReference: The PSP reference associated with this/refundWithDatarequest.
Refund with raw card data
If you are PCI-compliant at Level 1 or 2, you can include raw card data in your request to the/refundWithData endpoint:
/refundWithData response containing a:
pspReference: The PSP reference associated with this/refundWithDatarequest.resultCode: Received. If Adyen wasn’t the acquirer for this transaction, it may be Authorized.
Refund to a recurring contract
If a shopper has saved their payment details with you, you can refund a payment by using the recurring contract. In your call to the/refundWithData endpoint, specify:
shopperReference: your unique ID for the shopper.selectedRecurringDetailReference: therecurringDetailReferencefor the recurring contract.shopperInteraction: ContAuth.
/refundWithData response containing a:
pspReference: The PSP reference associated with this/refundWithDatarequest.
REFUND WITH DATA webhook
You receive the outcome of your/refundWithData request asynchronously, in a webhook event that includes:
-
eventCode: REFUND_WITH_DATA. -
additionalData: the information in this objects depends on the additional settings that you enabled. -
originalReference: the PSP reference of the unreferenced refund request. This is not the PSP reference of the payment that is being refunded, because with an unreferenced refund that PSP reference is unknown. In your Customer Area you can find the refund using theoriginalReferencevalue. -
pspReference: the PSP reference generated when the refund was captured. -
success: indicates the outcome of the refund validations. Possible values:- true: Adyen’s validations were successful and we sent the refund request to the card scheme. This usually means that the refund will be processed successfully. However, in rare cases the refund can be rejected by the card scheme, or reversed. For information about these exceptions, see REFUND_FAILED webhook, and REFUNDED_REVERSED webhook.
-
false: the refund validations failed. The webhook includes a
reasonfield with a short description of the problem. Review the reason, fix the issue if possible, and resubmit the refund request.