- For a referenced refund, we return a CANCEL_OR_REFUND webhook.
- For an unreferenced refund, we return a REFUND_WITH_DATA webhook.
acquirerResponseCode to indicate the outcome.
When a refund is processed, the amount is deducted from your in-process funds, and appears in your shopper’s account within a few days.
Requirements
Before you begin, take into account the following requirements.CANCEL_OR_REFUND webhook
Before we send your referenced refund request to be processed, we perform various validations. If these validations succeed, usually the refund itself also succeeds. You receive the outcome of the validations asynchronously, in a CANCEL_OR_REFUND webhook that includes:
Example of a webhook message with the CANCEL_OR_REFUND event code
REFUND_WITH_DATA webhook
Before we send your unreferenced refund request to be processed, we perform various validations. If these validations succeed, usually the refund itself also succeeds. You receive the outcome of the validations asynchronously, in a REFUND_WITH_DATA webhook 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.
Reasons for failed refund validation
When our validations of a refund fail, you receive a webhook for the refund withsuccess: false and the reason of the failure. The next table shows the most common reasons.Where the table mentions the balance on the payment, this 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.