Logo
Adyen API Documentation

Cancels or refunds a payment.

POST {{baseUrl}}/cancelOrRefund

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 request for payments that involve (multiple) partial captures.

For more information, refer to Cancel or refund.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status





Curl
curl -X POST 'https://pal-test.adyen.com/pal/servlet/Payment/v51/cancelOrRefund'

ENDPOINTS