Skip to main content
If you want to return the funds to your shopper, but are not certain whether the payment has been captured or not, use the Cancel or Refund functionality.  This will either: 
  • Cancel the payment – in case it has not yet been captured. 
  • Refund the payment – in case it has already been captured.
If you have an Adyen for Platforms integration, note that the /cancelOrRefund endpoint does not accept split instructions. If you want to provide instructions on how to split the refund, we recommend that you:
  1. Check if the payment has been captured.
  2. If not captured yet, make a /payments/{paymentPspReference}/cancels call. If already captured, make a /payments/{paymentPspReference}/refunds call.
Do not use the /cancelOrRefund endpoint for payments that involve multiple partial captures.

Cancel or refund a payment

To issue a cancel or refund, make a request to the /cancelOrRefund endpoint. You need to specify: 
  • merchantAccount: The name of your merchant account that is used to process the payment.
  • originalReference: The original pspReference of the payment that you want to cancel or refund. This reference is returned in the response to your payment request, and in the AUTHORISATION webhook event.
  • reference: Optional Specifies a unique identifier for payment modification. The reference field is useful to tag a partial cancel or refund for future reconciliation.
You will receive a /cancelOrRefund response containing: 
  • pspReference: The PSP reference associated with this /cancelOrRefund request.

CANCEL OR REFUND webhook

To know whether your request to cancel or refund the payment was successful, you need to receive CANCEL_OR_REFUND webhooks. If you have enabled CANCEL_OR_REFUND webhooks, we will send you a webhook event once  we have processed your request to cancel or refund the payment. This event contains: Example of a webhook message with the CANCEL_OR_REFUND event code
For more information about the included fields, see the CANCEL_OR_REFUND webhook reference.

See also