Pesquisar

Are you looking for test card numbers?

Would you like to contact support?

Atenção, esta página não se encontra disponível em Português
Default icon

Refund

Refund a payment back to the shopper.

Refund in Customer Area

You can also refund payments in your Customer Area. For more information, refer to Manage payments.

If you want to return the funds to your shopper, for example if they returned an item, you need to refund the payment. You get the outcome of the refund request asynchronously, in a REFUND webhook.

You can refund either the full captured amount or a part of the captured amount. You can also perform multiple partial refunds, as long as their sum doesn't exceed the captured amount.

Some payment methods do not support partial refunds. To learn if a payment method supports partial refunds, refer to the payment method page such as cards, iDEAL, or Klarna.

You can only refund a payment after it has already been captured. Payments that have not yet been captured have to be cancelled instead. If you want to refund a payment but are not sure whether it has been captured, you can reverse the payment instead.

Refund a payment

Make a POST /payments/{paymentPspReference}/refunds request, where paymentPspReference is the pspReference of the payment that you want to refund. You can find the pspReference in the AUTHORISATION webhook.

In your request, include:

  • merchantAccount: The name of your merchant account that is used to process the payment.
  • amount: The amount that you want to refund.
    • The value must be the same or, in case of a partial refund, less than the captured amount.
    • The currency must match the currency used in authorisation.
  • reference: Your reference for the refund, for example for tagging a partial refund for future reconciliation. The reference parameter is required for GrabPay refunds.
curl https://checkout-test.adyen.com/checkout/v67/payments/8836183819713023/refunds \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
    "merchantAccount": "YOUR_MERCHANT_ACCOUNT",
    "amount": {
      "value": 2500,
      "currency": "EUR"
    },
    "reference": "Refund123"
}'

The /payments/{paymentPspReference}/refunds response includes a pspReference, Adyen's unique reference associated with this refund.

{
    "merchantAccount": "YOUR_MERCHANT_ACCOUNT",
    "paymentPspReference": "8836183819713023",
    "pspReference" : "8412534564722331",
    "reference": "Refund123",
    "status" : "received"
}

REFUND webhook

You get the outcome of the refund request asynchronously, in a REFUND webhook that includes:

  • eventCodeREFUND.
  • pspReference: The pspReference from the /payments/{paymentPspReference}/refunds response. 
  • success: Indicates whether the refund request was successful. Possible values:

    • true: The refund request was successful. This usually means that the refund was successful. For information on exceptions, refer to REFUND_FAILED webhook, and REFUNDED_REVERSED webhook.

    • false: The refund request failed. The webhook includes a reason field with a short description of the problem. Review the reason, fix the issue if possible, and resubmit the refund request.
{
   "live":"false",
   "notificationItems":[
      {
         "NotificationRequestItem":{
            "amount":{
               "currency":"EUR",
               "value":2500
            },
            "eventCode":"REFUND",
            "eventDate":"2021-11-01T00:19:34+01:00",
            "merchantAccountCode":"YOUR_MERCHANT_ACCOUNT",
            "merchantReference": "Refund123",
            "originalReference":"8836183819713023",
            "paymentMethod":"visa",
            "pspReference":"8412534564722331",
            "reason":"",
            "success":"true"
         }
      }
   ]
}
{
   "live":"false",
   "notificationItems":[
      {
         "NotificationRequestItem":{
            "amount":{
               "currency":"EUR",
               "value":2500
            },
            "eventCode":"REFUND",
            "eventDate":"2021-11-01T00:19:34+01:00",
            "merchantAccountCode":"YOUR_MERCHANT_ACCOUNT",
            "merchantReference": "Refund123",
            "originalReference":"8836183819713023",
            "paymentMethod":"visa",
            "pspReference":"8412534564722331",
            "reason":"Transaction hasn't been captured, refund not possible",
            "success":"false"
         }
      }
   ]
}

For more information about the included fields, see REFUND notification reference.

Failed refund request

When a refund request fails, you receive success: false in the REFUND webhook. Below are the most common reason values in the REFUND webhook:

reason Description
Requested refund amount too high No chargeback or refund has been processed, and the requested refund amount is more than the balance on the payment.
Already partially refunded, new requested refund amount too high Partial refund(s) has(/have) been processed, and the requested refund amount is more than the balance on the payment.
Already partially disputed, new requested refund amount too high Partial chargeback(s) has(/have) been processed, and the requested refund amount is more than the balance on the payment.
Already fully refunded, no balance available for new requested refund Full refund has been processed, and the remaining balance on the payment is 0.
Partially refunded and partially disputed, no balance available for new requested refund Partial refund(s) and chargeback(s) have been processed, and the requested refund amount is more than the balance on the payment.
Partial refund(s) and chargeback(s) have been processed, and the balance on the payment is a negative amount.
Already fully disputed, no balance available for new requested refund Full chargeback has been processed, and the balance on the payment is 0.
A full chargeback and partial refund(s) have been processed, and the balance on the payment is a negative amount.
Insufficient in-process funds on account for refunding this payment There is not enough balance on your merchant account to process the refund.
Transaction hasn't been captured, refund not possible The refund was requested before the transaction was captured. You need to cancel the transaction instead or wait until the transaction is settled.
The maximum period for this operation has expired The refund was requested past the expiration date permitted by the payment method to process the request.

Balance on the payment

The balance on the payment refers to the amount that remains from the original payment. For example, if a transaction has a total of 10 EUR and no refund or chargeback is processed, then the balance on the payment is 10 EUR. After a refund or chargeback of 3 EUR is processed, the remaining balance on the payment is 7 EUR.

REFUND_FAILED webhook

Although rare, a refund can fail after you received a REFUND webhook with success: true.

The successful webhook means that the request has been sent to the card scheme, but it can still be rejected by the card scheme at this point. This may happen even a few days after you submitted the refund request.

Most of the time Adyen can fix the issue, so that the shopper will eventually receive the funds. Sometimes, however, you need to take action yourself. To learn why a refund can fail and what, if anything, you need to do in each case, refer to Failed refunds.

When a refund fails after you received success: true in the REFUND webhook, you will receive a webhook containing:

  • eventCode: REFUND_FAILED
  • pspReference: The pspReference of the refund request.

An overview of failed refunds is available in your Payment accounting report.

Testing failed refunds

In our test environment, you can check how your integration handles failed refunds:

  1. Make a card payment, specifying:

    • holderName: refund failed
    {
      "amount": {
        "currency": "EUR",
        "value": 500
      },
      "reference": "Refund failed test",
      "paymentMethod": {
        "type": "scheme",
        "encryptedCardNumber": "test_4111111111111111",
        "encryptedExpiryMonth": "test_03",
        "encryptedExpiryYear": "test_2030",
        "encryptedSecurityCode": "test_737",
        "holderName": "refund failed"
      },
      "returnUrl": "https://your-company.com/...",
      "merchantAccount": "YOUR_MERCHANT_ACCOUNT"
    }
  2. Refund this payment, either in your Customer Area, or by making an API request.

Once we have processed the request, you'll receive a webhook with eventCode: REFUND_FAILED.

This request may take several hours to process.

REFUNDED_REVERSED webhook

For some payment methods, for example bank transfers, iDEAL, or Bancontact, the status of the payment can change from Refunded to RefundedReversed. This means that the funds have been returned to Adyen, and are back in your account. For example, this may happen if the shopper's bank account is no longer valid. To resolve these scenarios, check with the shopper the status of their bank account.

When a refund is reversed, we inform you of this with a webhook containing:

  • eventCodeREFUNDED_REVERSED
  • successtrue

For more information about the included fields, see the REFUND_WITH_DATA notification reference.

An overview of reversed refunds is available in your Payment accounting report.

See also