{"title":"refund_request","category":"default","creationDate":1776961627,"content":"<p>The\u00a0<code>refund_request<\/code>\u00a0contains the following data elements:<\/p>\n<table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>Type<\/th>\n<th>Required<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>merchant_account<\/code><\/td>\n<td>char<\/td>\n<td><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td>The merchant account processing this transaction.\u00a0Transactions can be performed with any of the merchant accounts that were returned when registering the POS.<\/td>\n<\/tr>\n<tr>\n<td><code>reference<\/code><\/td>\n<td>char<\/td>\n<td><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td>A reference for this request.\u00a0Allows the merchant to identify the transaction.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>There are two ways to refund an order. Either with the original PSP reference, or with the tender reference and unique terminal ID for the terminal that processed the order.<\/p>\n<p>To refund with the PSP reference, provide the following data element:<\/p>\n<table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>Type<\/th>\n<th>Required<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>psp_reference<\/code><\/td>\n<td>char<\/td>\n<td><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td>Original Adyen order reference, used to reference an earlier transaction. It must refer to the <code>pspReference<\/code> of an earlier existing transaction.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>To refund with the tender reference and unique terminal ID, provide the following data elements:<\/p>\n<table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>Type<\/th>\n<th>Required<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>tender_reference<\/code><\/td>\n<td>char<\/td>\n<td><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td>A reference to the tender provided by the PED.<\/td>\n<\/tr>\n<tr>\n<td><code>unique_terminal_id<\/code><\/td>\n<td>char<\/td>\n<td><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td>The unique\u00a0identifier\u00a0for the PED.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>Type<\/th>\n<th>Required<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>modification_amount_currency<\/code><\/td>\n<td>Long<\/td>\n<td><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td>The three-character\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/ISO_4217\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">ISO currency code<\/a>. The\u00a0<code>currency<\/code>\u00a0must match the currency used in the original payment request. For partial refunds, this is the currency of the partial amount to be refunded.<\/td>\n<\/tr>\n<tr>\n<td><code>modification_amount_value<\/code><\/td>\n<td>Amount<\/td>\n<td><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td>A container for the amount that needs to be refunded. For partial refunds, this is the partial amount to be refunded.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>","url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/c-library-integration\/structs\/refund_request","articleFields":{"id":"36186028","type":"page","_expandable":{"operations":""},"status":"current"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/c-library-integration\/structs\/refund_request","title":"refund_request","content":"The\u00a0refund_request\u00a0contains the following data elements:\n\n\n\nField\nType\nRequired\nDescription\n\n\n\n\nmerchant_account\nchar\n\nThe merchant account processing this transaction.\u00a0Transactions can be performed with any of the merchant accounts that were returned when registering the POS.\n\n\nreference\nchar\n\nA reference for this request.\u00a0Allows the merchant to identify the transaction.\n\n\n\nThere are two ways to refund an order. Either with the original PSP reference, or with the tender reference and unique terminal ID for the terminal that processed the order.\nTo refund with the PSP reference, provide the following data element:\n\n\n\nField\nType\nRequired\nDescription\n\n\n\n\npsp_reference\nchar\n\nOriginal Adyen order reference, used to reference an earlier transaction. It must refer to the pspReference of an earlier existing transaction.\n\n\n\nTo refund with the tender reference and unique terminal ID, provide the following data elements:\n\n\n\nField\nType\nRequired\nDescription\n\n\n\n\ntender_reference\nchar\n\nA reference to the tender provided by the PED.\n\n\nunique_terminal_id\nchar\n\nThe unique\u00a0identifier\u00a0for the PED.\n\n\n\n\n\n\nField\nType\nRequired\nDescription\n\n\n\n\nmodification_amount_currency\nLong\n\nThe three-character\u00a0ISO currency code. The\u00a0currency\u00a0must match the currency used in the original payment request. For partial refunds, this is the currency of the partial amount to be refunded.\n\n\nmodification_amount_value\nAmount\n\nA container for the amount that needs to be refunded. For partial refunds, this is the partial amount to be refunded.\n\n\n","type":"page","locale":"pt","boost":14,"hierarchy":{"lvl0":"Home","lvl1":"Terminais","lvl2":"Deprecation of classic libraries","lvl3":"Library integrations","lvl4":"C library integration","lvl5":"Structs","lvl6":"refund_request"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/point-of-sale","lvl2":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation","lvl3":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations","lvl4":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/c-library-integration","lvl5":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/c-library-integration\/structs","lvl6":"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/c-library-integration\/structs\/refund_request"},"levels":7,"category":"In-person payments","category_color":"green","tags":["refund_request"]}}
