Cancel refund¶
Warning
The v1 API has been deprecated. The v1 API will be supported for the foreseeable future, at least until July 2023. However, new features will only be added to the v2 API.
The documentation for canceling refunds in the new v2 API can be found here. For more information on the v2 API, refer to our v2 migration guide.
DELETE
https://api.mollie.com/v1/payments/*paymentId*/refunds/*id*
For certain payment methods, like iDEAL, the underlying banking system will delay refunds until the next day. Until that time, refunds may be canceled manually via the Mollie Dashboard, or programmatically by using this endpoint.
The refund can only be canceled while the refund’s status
field is either queued
or pending
. See
Refunds for more information.
Parameters¶
Replace paymentId
in the endpoint URL by the payment’s ID, and replace id
by the refund’s ID. For example:
/v1/payments/tr_7UhSN1zuXS/refunds/re_4qqhO89gsT
.
Access token parameters¶
If you are creating an app with Mollie Connect, the testmode
parameter is also
available.
true
to cancel a test mode refund.Response¶
204 No Content