{"title":"cancel_or_refund_request","category":"default","creationDate":1776961627,"content":"<p>The\u00a0<code>cancel_or_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 cancel 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 cancel 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>original_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>An enum of type <code>TRANSACTION_TYPES<\/code>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>To cancel 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>","url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/c-library-integration\/structs\/cancel_or_refund_request","articleFields":{"id":"28870641","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\/cancel_or_refund_request","title":"cancel_or_refund_request","content":"The\u00a0cancel_or_refund_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 cancel 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 cancel with the PSP reference, provide the following data element:\n\n\n\nField\nType\nRequired\nDescription\n\n\n\n\noriginal_reference\nchar\n\nAn enum of type TRANSACTION_TYPES.\n\n\n\nTo cancel 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","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":"cancel_or_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\/cancel_or_refund_request"},"levels":7,"category":"In-person payments","category_color":"green","tags":["cancel_or_refund_request"]}}
