{"title":"Undo a Stored Value API transaction","category":"default","creationDate":1776961628,"content":"<p>The <code>\/voidTransaction<\/code> endpoint of our <a href=\"\/pt\/payment-methods\/gift-cards\/stored-value-api\">Stored Value API<\/a> lets you undo transactions made with this API in the past 24 hours. Refer to <a href=\"#allowed-actions\">Transaction per provider and channel<\/a> to see what transactions you can and cannot undo. Undoing transactions is a synchronous operation.<\/p>\n<h3>Not for cancellations or refunds<\/h3>\n<p>Because <code>\/voidTransaction<\/code> 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:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Transaction<\/th>\n<th style=\"text-align: left;\">Link<\/th>\n<th style=\"text-align: left;\"><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\">Cancel a gift card payment<\/td>\n<td style=\"text-align: left;\"><a href=\"\/pt\/online-payments\/cancel\">Online<\/a><\/td>\n<td style=\"text-align: left;\"><a href=\"\/pt\/point-of-sale\/basic-tapi-integration\/cancel-a-transaction\">in-person payments<\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Make a refund to a gift card<\/td>\n<td style=\"text-align: left;\"><a href=\"\/pt\/online-payments\/refund\">Online<\/a><\/td>\n<td style=\"text-align: left;\"><a href=\"\/pt\/point-of-sale\/gift-cards-terminal-api\/refund-gift-cards\">in-person payments<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"allowed-actions\">Transaction per provider and channel<\/h3>\n<div class=\"sc-columns\" style=\"columns:2 auto;-moz-columns:2 auto;column-gap:normal;-moz-column-gap:normal;\">\n<h4>Online<\/h4>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Transaction to void (undo)<\/th>\n<th style=\"text-align: center;\">Givex<\/th>\n<th style=\"text-align: center;\">SVS<\/th>\n<th style=\"text-align: center;\">Fiserv (formerly ValueLink)<\/th>\n<th style=\"text-align: center;\">Intersolve<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\">Issue new<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Activate<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Activate and load amount<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Deactivate (without amount)<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Load amount<\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Merge balance<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>In-person payments<\/h4>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Transaction to void (undo)<\/th>\n<th style=\"text-align: center;\">Givex<\/th>\n<th style=\"text-align: center;\">SVS<\/th>\n<th style=\"text-align: center;\">Fiserv (formerly ValueLink)<\/th>\n<th style=\"text-align: center;\">Intersolve<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\">Issue new<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Activate<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Activate and load amount<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Deactivate (without amount)<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Load amount<\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Merge balance<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2 id=\"void-request\">Undo a transaction<\/h2>\n<p>To undo an <code>\/issue<\/code>, <code>\/changeStatus<\/code>, <code>\/load<\/code>, or <code>\/mergeBalance<\/code> transaction made in the past 24 hours for a gift card or other stored-value card:<\/p>\n<ul>\n<li>\n<p>Make a POST request to the <a href=\"\/pt\/payment-methods\/gift-cards\/stored-value-api#sv-api-endpoints\"><code>\/voidTransaction<\/code> endpoint<\/a>, specifying:<\/p>\n<ul>\n<li><code>merchantAccount<\/code>: ID of the merchant account that you want to process the transaction with.<\/li>\n<li><code>store<\/code>: <div data-component-wrapper=\"tag\">\n    <tag :variant=&quot;success&quot;>\n        Optional\n    <\/tag>\n<\/div>\n For transactions flagged as in-store, the ID of the physical store that you want to process the transaction for.<\/li>\n<li><code>originalReference<\/code>: The <code>pspReference<\/code> of the Stored Value API transaction that you want to undo.<\/li>\n<li>\n<p><code>reference<\/code>: Your reference to uniquely identify this transaction. To provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters.<\/p>\n<!-- list separator -->\n<\/li>\n<\/ul>\n<p>Sample request:<\/p>\n<pre><code class=\"language-json\">{\n    \"merchantAccount\": \"ADYEN_MERCHANT_ACCOUNT\",\n    \"originalReference\": \"851564654294247B\",\n    \"reference\": \"YOUR_REFERENCE\"\n}<\/code><\/pre>\n<\/li>\n<\/ul>\n<h4 id=\"response\">Response<\/h4>\n<p>You receive a response containing:<\/p>\n<ul>\n<li><code>currentBalance<\/code>: The <code>currency<\/code> and total <code>value<\/code> of the funds stored on the card.<\/li>\n<li><code>pspReference<\/code>: Adyen's 16-character unique reference associated with the request.<\/li>\n<li><code>resultCode<\/code>: Indicates the state of the request. Refer to <a href=\"\/pt\/payment-methods\/gift-cards\/stored-value-api#result-codes\">Result codes<\/a> for the values that you can receive.<\/li>\n<\/ul>\n<p>The response may include additional fields, depending on the additional data settings for your merchant account. In your <a href=\"https:\/\/ca-test.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Customer Area<\/a>, you'll find these settings under <strong>Developers<\/strong> &gt; <strong>Additional data<\/strong>.<\/p>\n<p>Sample response:<\/p>\n<pre><code class=\"language-json\">{\n    \"currentBalance\": {\n        \"currency\": \"EUR\",\n        \"value\": 120000\n    },\n    \"pspReference\": \"851564673300692A\",\n    \"resultCode\": \"Success\"\n}<\/code><\/pre>\n<h2>Related transactions<\/h2>\n<div class=\"next-steps\" id=\"next-steps\" >\n<a href=\"\/payment-methods\/gift-cards\/stored-value-api\/issue\" class=\"next-steps__step\" style=\"width:29%;\" target=\"_self\"><p class=\"next-steps__body\"><div style=\"text-align: center;\"><h6 class=\"next-steps__title\">Issue<\/h6><p>Issue a new gift card.<\/p><\/div><\/p><\/a><a href=\"\/payment-methods\/gift-cards\/stored-value-api\/load\" class=\"next-steps__step\" style=\"width:29%;\" target=\"_self\"><p class=\"next-steps__body\"><div style=\"text-align: center;\"><h6 class=\"next-steps__title\">Load<\/h6><p>Add funds to a gift card.<\/p><\/div><\/p><\/a><a href=\"\/payment-methods\/gift-cards\/stored-value-api\/merge-balance\" class=\"next-steps__step\" style=\"width:29%;\" target=\"_self\"><p class=\"next-steps__body\"><div style=\"text-align: center;\"><h6 class=\"next-steps__title\">Merge balance<\/h6><p>Transfer the value from one gift card to another of the same type.<\/p><\/div><\/p><\/a><\/div>\n\n<h2 id=\"see-also\">See also<\/h2>\n<div class=\"see-also-links output-inline\" id=\"see-also\">\n<ul><li><a href=\"\/payment-methods\/gift-cards\/stored-value-api\/check-balance\"\n                        target=\"_self\"\n                        >\n                    Check the value stored on a gift card\n                <\/a><\/li><li><a href=\"\/payment-methods\/gift-cards\/stored-value-api\/change-status\"\n                        target=\"_self\"\n                        >\n                    Activate or deactivate a gift card\n                <\/a><\/li><li><a href=\"\/payment-methods\/gift-cards\/stored-value-api\"\n                        target=\"_self\"\n                        >\n                    Stored Value API\n                <\/a><\/li><\/ul><\/div>\n","url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/gift-cards\/stored-value-api\/void","articleFields":{"description":"Learn how to undo a previous transaction on a gift card or other stored-value card.","page_id":"a413f45d-6f0b-4183-8780-99c6f932231d","feedback_component":true,"filters_component":false,"decision_tree":"[]"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/gift-cards\/stored-value-api\/void","title":"Undo a Stored Value API transaction","content":"The \/voidTransaction endpoint of our Stored Value API lets you undo transactions made with this API in the past 24 hours. Refer to Transaction per provider and channel to see what transactions you can and cannot undo. Undoing transactions is a synchronous operation.\nNot for cancellations or refunds\nBecause \/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:\n\n\n\nTransaction\nLink\n\n\n\n\n\nCancel a gift card payment\nOnline\nin-person payments\n\n\nMake a refund to a gift card\nOnline\nin-person payments\n\n\n\nTransaction per provider and channel\n\nOnline\n\n\n\nTransaction to void (undo)\nGivex\nSVS\nFiserv (formerly ValueLink)\nIntersolve\n\n\n\n\nIssue new\n\n\n\n\n\n\nActivate\n\n\n\n\n\n\nActivate and load amount\n\n\n\n\n\n\nDeactivate (without amount)\n\n\n\n\n\n\nLoad amount\n\n\n\n\n\n\nMerge balance\n\n\n\n\n\n\n\nIn-person payments\n\n\n\nTransaction to void (undo)\nGivex\nSVS\nFiserv (formerly ValueLink)\nIntersolve\n\n\n\n\nIssue new\n\n\n\n\n\n\nActivate\n\n\n\n\n\n\nActivate and load amount\n\n\n\n\n\n\nDeactivate (without amount)\n\n\n\n\n\n\nLoad amount\n\n\n\n\n\n\nMerge balance\n\n\n\n\n\n\n\n\nUndo a transaction\nTo undo an \/issue, \/changeStatus, \/load, or \/mergeBalance transaction made in the past 24 hours for a gift card or other stored-value card:\n\n\nMake a POST request to the \/voidTransaction endpoint, specifying:\n\nmerchantAccount: ID of the merchant account that you want to process the transaction with.\nstore: \n    \n        Optional\n    \n\n For transactions flagged as in-store, the ID of the physical store that you want to process the transaction for.\noriginalReference: The pspReference of the Stored Value API transaction that you want to undo.\n\nreference: Your reference to uniquely identify this transaction. To provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters.\n\n\n\nSample request:\n{\n    \"merchantAccount\": \"ADYEN_MERCHANT_ACCOUNT\",\n    \"originalReference\": \"851564654294247B\",\n    \"reference\": \"YOUR_REFERENCE\"\n}\n\n\nResponse\nYou receive a response containing:\n\ncurrentBalance: The currency and total value of the funds stored on the card.\npspReference: Adyen's 16-character unique reference associated with the request.\nresultCode: Indicates the state of the request. Refer to Result codes for the values that you can receive.\n\nThe response may include additional fields, depending on the additional data settings for your merchant account. In your Customer Area, you'll find these settings under Developers &gt; Additional data.\nSample response:\n{\n    \"currentBalance\": {\n        \"currency\": \"EUR\",\n        \"value\": 120000\n    },\n    \"pspReference\": \"851564673300692A\",\n    \"resultCode\": \"Success\"\n}\nRelated transactions\n\nIssueIssue a new gift card.LoadAdd funds to a gift card.Merge balanceTransfer the value from one gift card to another of the same type.\n\nSee also\n\n\n                    Check the value stored on a gift card\n                \n                    Activate or deactivate a gift card\n                \n                    Stored Value API\n                \n","type":"page","locale":"pt","boost":16,"hierarchy":{"lvl0":"Home","lvl1":"Payment methods","lvl2":"Gift cards","lvl3":"Stored Value API for managing gift cards","lvl4":"Undo a Stored Value API transaction"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/payment-methods","lvl2":"https:\/\/docs.adyen.com\/pt\/payment-methods\/gift-cards","lvl3":"https:\/\/docs.adyen.com\/pt\/payment-methods\/gift-cards\/stored-value-api","lvl4":"\/pt\/payment-methods\/gift-cards\/stored-value-api\/void"},"levels":5,"category":"Payment method","category_color":"green","tags":["Stored","Value","transaction"]}}
