---
title: "Cancel payment refund"
method: DELETE
path: "/payments/{paymentId}/refunds/{refundId}"
tags: ["Refunds API"]
---

# Cancel payment refund

`DELETE /payments/{paymentId}/refunds/{refundId}`

## Request

- Base URL: `https://api.mollie.com/v2`
- URL: `https://api.mollie.com/v2/payments/{paymentId}/refunds/{refundId}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://my.mollie.com/oauth2/authorize`
    - Token URL: `https://api.mollie.com/oauth2/tokens` scopes: `refunds.write`

Refunds will be executed with a delay of two hours. Until that time, refunds may be canceled manually via the Mollie Dashboard, or by using this endpoint.

A refund can only be canceled while its `status` field is either `queued` or `pending`. See the [Get refund endpoint](get-refund) for more information.

> 🔑 Access with
>
> [API key](/reference/authentication)
>
> [Advanced access token with **refunds.write**](/reference/authentication)
>
> [OAuth access with **refunds.write**](/reference/authentication)

## Query parameters

- `testmode` boolean

## Response `204`

An empty response if the refund was successfully canceled.

- unknown

## Other responses

- `404`: No entity with this ID exists.
- `429`: Rate Limit has been reached.

---

[API](https://skmtc.dev/mollie/apis/accepting-payments.md) - [All operations](https://skmtc.dev/mollie/apis/accepting-payments/llms.txt) - [OpenAPI document](https://skmtc.dev/mollie/apis/accepting-payments/revisions/64fc448adebb?raw)
