Modifications

Refund or cancel a payment

Refunds a payment if it has already been captured, and cancels a payment if it has not yet been captured. Returns a unique reference for this request. You get the outcome of the request asynchronously, in a CANCEL_OR_REFUND webhook.

The reversed amount is always the full payment amount.

Do not use this request for payments that involve multiple partial captures.

For more information, refer to Reversal.

post/payments/{paymentPspReference}/reversals

Path parameters

paymentPspReferencestring required

The pspReference of the payment that you want to reverse.

Headers

Idempotency-Keystring

A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).

Request body

merchantAccountstring required

The merchant account that is used to process the payment.

referencestring

Your reference for the reversal request. Maximum length: 80 characters.

Response

Created - the request has been fulfilled and has resulted in one or more new resources being created.

merchantAccountstring required

The merchant account that is used to process the payment.

paymentPspReferencestring required

The pspReference of the payment to reverse.

pspReferencestring required

Adyen's 16-character reference associated with the reversal request.

referencestring

Your reference for the reversal request.

status'received' required

The status of your request. This will always have the value received.

Changes

Changed in 3 of the 54 revisions of this API.5

    • added the new optional request property enhancedSchemeData/carRental

      new-optional-request-property

    • added the new optional request property enhancedSchemeData/lodging

      new-optional-request-property

    • added the new optional request property enhancedSchemeData/temporaryServices

      new-optional-request-property

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the new optional request property enhancedSchemeData/levelTwoThree

      new-optional-request-property

    • added the new optional request property enhancedSchemeData

      new-optional-request-property