--- title: "Undo a Stored Value API transaction" description: "Learn how to undo a previous transaction on a gift card or other stored-value card." url: "https://docs.adyen.com/payment-methods/gift-cards/stored-value-api/void" source_url: "https://docs.adyen.com/payment-methods/gift-cards/stored-value-api/void.md" canonical: "https://docs.adyen.com/payment-methods/gift-cards/stored-value-api/void" last_modified: "2026-05-25T12:55:01+02:00" language: "en" --- # Undo a Stored Value API transaction Learn how to undo a previous transaction on a gift card or other stored-value card. [View source](/payment-methods/gift-cards/stored-value-api/void.md) The `/voidTransaction` endpoint of our [Stored Value API](/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](/online-payments/cancel) | [in-person payments](/point-of-sale/basic-tapi-integration/cancel-a-transaction) | | Make a refund to a gift card | [Online](/online-payments/refund) | [in-person payments](/point-of-sale/gift-cards-terminal-api/refund-gift-cards) | ### Transaction per provider and channel #### Online | Transaction to void (undo) | Givex | SVS | Fiserv (formerly ValueLink) | Intersolve | | --------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | | Issue new | ![-x-](/user/data/smileys/emoji/x.png "-x-") | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | ![-x-](/user/data/smileys/emoji/x.png "-x-") | | Activate | ![-x-](/user/data/smileys/emoji/x.png "-x-") | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | | Activate and load amount | ![-x-](/user/data/smileys/emoji/x.png "-x-") | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | | Deactivate (without amount) | ![-x-](/user/data/smileys/emoji/x.png "-x-") | ![-x-](/user/data/smileys/emoji/x.png "-x-") | ![-x-](/user/data/smileys/emoji/x.png "-x-") | ![-x-](/user/data/smileys/emoji/x.png "-x-") | | Load amount | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | | Merge balance | ![-x-](/user/data/smileys/emoji/x.png "-x-") | ![-x-](/user/data/smileys/emoji/x.png "-x-") | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | ![-x-](/user/data/smileys/emoji/x.png "-x-") | #### In-person payments | Transaction to void (undo) | Givex | SVS | Fiserv (formerly ValueLink) | Intersolve | | --------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | | Issue new | ![-x-](/user/data/smileys/emoji/x.png "-x-") | ![-x-](/user/data/smileys/emoji/x.png "-x-") | ![-x-](/user/data/smileys/emoji/x.png "-x-") | ![-x-](/user/data/smileys/emoji/x.png "-x-") | | Activate | ![-x-](/user/data/smileys/emoji/x.png "-x-") | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | ![-x-](/user/data/smileys/emoji/x.png "-x-") | ![-x-](/user/data/smileys/emoji/x.png "-x-") | | Activate and load amount | ![-x-](/user/data/smileys/emoji/x.png "-x-") | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | ![-x-](/user/data/smileys/emoji/x.png "-x-") | ![-x-](/user/data/smileys/emoji/x.png "-x-") | | Deactivate (without amount) | ![-x-](/user/data/smileys/emoji/x.png "-x-") | ![-x-](/user/data/smileys/emoji/x.png "-x-") | ![-x-](/user/data/smileys/emoji/x.png "-x-") | ![-x-](/user/data/smileys/emoji/x.png "-x-") | | Load amount | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | | Merge balance | ![-x-](/user/data/smileys/emoji/x.png "-x-") | ![-x-](/user/data/smileys/emoji/x.png "-x-") | ![-x-](/user/data/smileys/emoji/x.png "-x-") | ![-x-](/user/data/smileys/emoji/x.png "-x-") | ## 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](/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 { "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](/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 { "currentBalance": { "currency": "EUR", "value": 120000 }, "pspReference": "851564673300692A", "resultCode": "Success" } ``` ## Related transactions ###### [Issue](/payment-methods/gift-cards/stored-value-api/issue) [Issue a new gift card.](/payment-methods/gift-cards/stored-value-api/issue) ###### [Load](/payment-methods/gift-cards/stored-value-api/load) [Add funds to a gift card.](/payment-methods/gift-cards/stored-value-api/load) ###### [Merge balance](/payment-methods/gift-cards/stored-value-api/merge-balance) [Transfer the value from one gift card to another of the same type.](/payment-methods/gift-cards/stored-value-api/merge-balance) ## See also * [Check the value stored on a gift card](/payment-methods/gift-cards/stored-value-api/check-balance) * [Activate or deactivate a gift card](/payment-methods/gift-cards/stored-value-api/change-status) * [Stored Value API](/payment-methods/gift-cards/stored-value-api)