Modifications
Cancel or refund a payment
Cancels a payment if it has not been captured yet, or refunds it if it has already been captured. This is useful when it is not certain if the payment has been captured or not (for example, when using auto-capture).
Do not use this endpoint for payments that involve:
- Multiple partial captures.
- Split data either at time of payment or capture for Adyen for Platforms.
Instead, check if the payment has been captured and make a corresponding /refund or /cancel call.
For more information, refer to Cancel or refund.
This endpoint is inactive and is no longer supported for new integrations.
- If you are building a new integration, use the Checkout API /payments/{paymentPspReference}/reversals endpoint instead.
- If you have an existing integration using this endpoint, reach out to your Adyen contact and migrate to the Checkout API.
The Checkout API enables your online payments integration to accept all supported payment methods, use the latest features, and access more benefits.
post/cancelOrRefund
Request body
Response
OK - the request has succeeded.