Refund a Payment {#thunes-ideal-refund-intro}
=============================================

This section describes how to refund a payment. You can refund a settled payment for the full amount or a partial amount by sending a refund request. Multiple partial refund requests are also supported, and the total amount of all of the refund requests must be less than the settled amount.  
Requesting a refund requires the sale request ID from the sale response. The sale request ID is in the id response field.

Endpoints {#thunes-ideal-refund-intro_section_t2w_424_jyb}
----------------------------------------------------------

**Production:** `POST ``https://api.cybersource.com``/pts/v2/payments/`*{id}*`/refunds`{#thunes-ideal-refund-intro_d7e372}  
**Test:** `POST ``https://apitest.cybersource.com``/pts/v2/payments/`*{id}*`/refunds`{#thunes-ideal-refund-intro_d7e385}  
The *{id}* is the request ID contained in the original transaction request.

Required Fields for Refunding a Payment {#thunes-ideal-refund-req-fields}
=========================================================================

clientReferenceInformation.code
:

orderInformation.amountDetails.currency
:
Set to `EUR`.

orderInformation.amountDetails.totalAmount
:

paymentInformation.paymentType.method.name
:
Set to `P24`.

paymentInformation.paymentType.name
:
Set to `bankTransfer`.

processingInformation.actionList
:
Set to `AP_REFUND`.

Example: Refunding a Payment {#thunes-ideal-refund-ex-rest}
===========================================================

Request

```
{
    "clientReferenceInformation": {
        "code": "refnum-1234"
    },
    "paymentInformation": {
        "paymentType": {
            "method": {
                "name": "IDEALT"
            },
            "name": "bankTransfer"
        }
    },
    "processingInformation": {
        "actionList": "AP_REFUND"
    },
    "orderInformation": {
        "amountDetails": {
            "totalAmount": "600.00",
            "currency": "EUR"
        }
    }
}
```

Response to a Successful Request

```
{
    "_links": {
        "self": {
            "method": "GET",
            "href": "/pts/v2/refunds/7551880639626418704805"
        },
        "status": {
            "method": "POST",
            "href": "/pts/v2/refresh-payment-status/7551880639626418704805"
        }
    },
    "clientReferenceInformation": {
        "code": "refnum-1234",
        "returnReconciliationId": "HX0HTE22MIIY"
    },
    "id": "7551880639626418704805",
    "orderInformation": {
        "amountDetails": {
            "currency": "EUR"
        }
    },
    "processorInformation": {
        "responseDetails": "00006",
        "transactionId": "555912063193",
        "responseCode": "00006"
    },
    "reconciliationId": "XFZ55E5TB5S3",
    "refundAmountDetails": {
        "refundAmount": "600.00"
    },
    "status": "REFUNDED",
    "submitTimeUtc": "2025-08-14T16:14:25Z"
}
```

Response Statuses for Refund a Payment {#thunes-ideal-refund-status}
====================================================================

`Cybersource` responds to your refund request with one of these statuses in the status field:

* `FAILED`: The refund request failed.
* `REFUNDED`: The refund request is accepted but is not completed. Send a check status request to verify that the status is refunded. For more information, see [Check a Transaction Status](/docs/cybs/en-us/thunes/developer/all/rest/thunes/thunes-ideal-intro/thunes-ideal-status-intro.md "").

