> ## Documentation Index
> Fetch the complete documentation index at: https://adyen-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Undo a Stored Value API Transaction

> Learn how to undo a previous transaction on a gift card or other stored-value card.

The `/voidTransaction` endpoint of our [Stored Value API](https://adyen-preview.mintlify.site/payment-methods/gift-cards/stored-value-api) lets you undo transactions made with this API in the past 24 hours. Refer to [Transaction per provider and channel](#allowed-actions) to see what transactions you can and cannot undo. Undoing transactions is a synchronous operation.

## Not for cancellations or refunds

Because `/voidTransaction` is not related to a payment, you cannot use it to cancel a gift card payment or to make a refund to a gift card. Refer to:

| Transaction | Link | |
| - | - | - |
| Cancel a gift card payment | [Online](https://adyen-preview.mintlify.site/online-payments/cancel.md) | [in-person payments](https://adyen-preview.mintlify.site/point-of-sale/basic-tapi-integration/cancel-a-transaction.md) |
| Make a refund to a gift card | [Online](https://adyen-preview.mintlify.site/online-payments/refund.md) | [in-person payments](https://adyen-preview.mintlify.site/point-of-sale/alternative-payment-methods/gift-cards-terminal-api/refund-gift-cards.md) |

### Transaction per provider and channel

#### Online

| Transaction to void (undo) | Givex | SVS | Fiserv (formerly ValueLink) | Intersolve |
| - | - | - | - | - |
| Issue new | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) |
| Activate | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) |
| Activate and load amount | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) |
| Deactivate (without amount) | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) |
| Load amount | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) |
| Merge balance | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) |

#### In-person payments

| Transaction to void (undo) | Givex | SVS | Fiserv (formerly ValueLink) | Intersolve |
| - | - | - | - | - |
| Issue new | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) |
| Activate | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) |
| Activate and load amount | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) |
| Deactivate (without amount) | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) |
| Load amount | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) |
| Merge balance | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) | ![-x-](https://docs.adyen.com/user/data/smileys/emoji/x.png) |

## Undo a transaction

To undo an `/issue`, `/changeStatus`, `/load`, or `/mergeBalance` transaction made in the past 24 hours for a gift card or other stored-value card:

* Make a POST request to the [`/voidTransaction` endpoint](https://adyen-preview.mintlify.site/payment-methods/gift-cards/stored-value-api#sv-api-endpoints), specifying:

  * `merchantAccount`: ID of the merchant account that you want to process the transaction with.

  * `store`:

    Optional

    For transactions flagged as in-store, the ID of the physical store that you want to process the transaction for.

  * `originalReference`: The `pspReference` of the Stored Value API transaction that you want to undo.

  * `reference`: Your reference to uniquely identify this transaction. To provide multiple references for a transaction, separate them with hyphens ("-"). Maximum length: 80 characters.

  Sample request:

  ```json theme={null}
  {
      "merchantAccount": "ADYEN_MERCHANT_ACCOUNT",
      "originalReference": "851564654294247B",
      "reference": "YOUR_REFERENCE"
  }
  ```

#### Response

You receive a response containing:

* `currentBalance`: The `currency` and total `value` of the funds stored on the card.
* `pspReference`: Adyen's 16-character unique reference associated with the request.
* `resultCode`: Indicates the state of the request. Refer to [Result codes](https://adyen-preview.mintlify.site/payment-methods/gift-cards/stored-value-api#result-codes) for the values that you can receive.

The response may include additional fields, depending on the additional data settings for your merchant account. In your [Customer Area](https://ca-test.adyen.com/), you'll find these settings under **Developers** > **Additional data**.

Sample response:

```json theme={null}
{
    "currentBalance": {
        "currency": "EUR",
        "value": 120000
    },
    "pspReference": "851564673300692A",
    "resultCode": "Success"
}
```

## Related transactions

> [card] [Issue](https://adyen-preview.mintlify.site/payment-methods/gift-cards/stored-value-api/issue)
>
> Issue a new gift card.

> [card] [Load](https://adyen-preview.mintlify.site/payment-methods/gift-cards/stored-value-api/load)
>
> Add funds to a gift card.

> [card] [Merge balance](https://adyen-preview.mintlify.site/payment-methods/gift-cards/stored-value-api/merge-balance)
>
> Transfer the value from one gift card to another of the same type.

## See also

* [Check the value stored on a gift card](https://adyen-preview.mintlify.site/payment-methods/gift-cards/stored-value-api/check-balance)
* [Activate or deactivate a gift card](https://adyen-preview.mintlify.site/payment-methods/gift-cards/stored-value-api/change-status)
* [Stored Value API](https://adyen-preview.mintlify.site/payment-methods/gift-cards/stored-value-api)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.