Cancel payment refund
Refunds API

DELETE
https://api.mollie.nl/v1/payments/paymentId/refunds/id
Authentication: API keys OAuth access tokens

For certain payment methods, like iDEAL, the underlying banking system will delay refunds until the next day. Until that time, refunds may be cancelled manually in your Mollie account, or automatically by using this endpoint.

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.

Includes

Some endpoints allow you to indicate if you want more information to be included in the API response via the include querystring parameter.

  • No includes supported for this endpoint.

Response

204
No Content

Example

Request code

$mollie = new Mollie_API_Client;
$mollie->setApiKey('test_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM');

$mollie->payments_refunds->withParentId("tr_WDqYK6vllg")
    ->cancel("re_4qqhO89gsT");

Response

HTTP/1.1 204 No Content