Cancel an authorised payment
Cancels the authorisation on a payment that has not yet been captured, and returns a unique reference for this request. You get the outcome of the request asynchronously, in a TECHNICAL_CANCEL webhook.
If you want to cancel a payment using the pspReference, use the /payments/{paymentPspReference}/cancels endpoint instead.
If you want to cancel a payment but are not sure whether it has been captured, use the /payments/{paymentPspReference}/reversals endpoint instead.
For more information, refer to Cancel.
In: header
Header Parameters
A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).
Request Body
application/json
Information about your application. For more details, see Building Adyen solutions.
The merchant account that is used to process the payment.
The reference of the payment that you want to cancel.
Your reference for the cancel request. Maximum length: 80 characters.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/cancels" \ -H "Idempotency-Key: 37ca9c97-d1d1-4c62-89e8-706891a563ed" \ -H "Content-Type: application/json" \ -d '{ "paymentReference": "YOUR_UNIQUE_REFERENCE_FOR_THE_PAYMENT", "reference": "YOUR_UNIQUE_REFERENCE_FOR_THE_CANCELLATION", "merchantAccount": "YOUR_MERCHANT_ACCOUNT" }'Example response when a payment cancellation was requested
{ "merchantAccount": "YOUR_MERCHANT_ACCOUNT", "paymentReference": "YOUR_UNIQUE_REFERENCE_FOR_THE_PAYMENT", "reference": "YOUR_UNIQUE_REFERENCE_FOR_THE_CANCELLATION", "pspReference": "993617894906488A", "status": "received"}Update the status of a payment link PATCH
Updates the status of a payment link. Use this endpoint to [force the expiry of a payment link](https://docs.adyen.com/online-payments/pay-by-link#update-payment-link-status).
Update an authorised amount POST
Increases or decreases the authorised payment amount and returns a unique reference for this request. You get the outcome of the request asynchronously, in an [**AUTHORISATION_ADJUSTMENT** webhook](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes). You can only update authorised amounts that have not yet been [captured](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments/{paymentPspReference}/captures). The amount you specify in the request is the updated amount, which is larger or smaller than the initial authorised amount. For more information, refer to [Authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#use-cases).
