{"title":"RefundWithData result file","category":"default","creationDate":1779706501,"content":"<p>When parsing or validation errors occur, the result file has the structure described in <a href=\"\/development-resources\/batch-processing\/advanced-sftp-batch-files\/batch-result-file\/modification-result-file-validationerror\">batch result files with validation errors<\/a>.<\/p>\n<h2 id=\"refundwithdata-line\">RefundWithData\u00a0line<\/h2>\n<p>The line record\u00a0[L] holds the metadata information that applies to its corresponding sub-line [SL] records.<\/p>\n<table><thead><tr class=\"header\"><th><p><strong>Field #<\/strong><\/p><\/th><th><p><strong>Format<\/strong><\/p><\/th><th><p><strong>Description<\/strong><\/p><\/th><\/tr><\/thead><tbody><tr><td>\n<p>1<\/p>\n<\/td><td>\n<p>Fixed value: <code>L<\/code><\/p>\n<\/td><td>\n<p>Record type identifier.<\/p>\n<\/td><\/tr><tr><td>\n<p>2<\/p>\n<\/td><td>\n<p>Numeric<\/p>\n<\/td><td><p>`L` line record number reference within the batch file block it belongs to.<br>\nThe counter starts at 1, and it increments sequentially by one unit.<\/p><\/td><\/tr><tr><td>\n<p>3<\/p>\n<\/td><td>\n<p>Fixed value: <code>MerchantAccount<\/code><\/p>\n<\/td><td>\n<p>Account type.<br \/>\nDefines the type of account the transactions are related to.<\/p>\n<\/td><\/tr><tr><td>\n<p>4<\/p>\n<\/td><td>\n<p>Alphanumeric<\/p>\n<\/td><td>\n<p>Specifies the merchant account name.<\/p>\n<\/td><\/tr><tr><td>\n<p>5<\/p>\n<\/td><td>\n<p>Fixed value:\u00a0<code>RefundWithData<\/code><\/p>\n<\/td><td>\n<p>Processing type.<br \/>\nDefines the type of action that is required for the specified transaction.<\/p>\n<div class=\"notices blue\">\n<p>If the column shows <code>ValidationError<\/code>, then the file shall have the structure of the <a href=\"\/development-resources\/batch-processing\/advanced-sftp-batch-files\/batch-result-file\/modification-result-file-validationerror\">batch result file (ValidationError)<\/a> instead.<\/p>\n<\/div>\n<\/td><\/tr><tr><td>\n<p>6<\/p>\n<\/td><td>\n<p>Alphanumeric<\/p>\n<\/td><td>\n<p>A merchant reference, that is, a unique identifier associated to a specific transaction.<\/p>\n<\/td><\/tr><tr><td>\n<p>7<\/p>\n<\/td><td>\n<p>Allowed values:<\/p>\n<ul>\n<li><code>Success<\/code><\/li>\n<li><code>Authorised<\/code><\/li>\n<li><code>Refused<\/code><\/li>\n<li><code>Cancelled<\/code><\/li>\n<li><code>Received<\/code><\/li>\n<li><code>Error<\/code><\/li>\n<\/ul>\n<\/td><td><p>Transaction status.  <br>\n<\/p><\/td><\/tr><tr><td>\n<p>8<\/p>\n<\/td><td>\n<p>Alphanumeric<\/p>\n<\/td><td>\n<p><code>EchoData<\/code><br>In this field you can specify any data you may want to be returned with the result file. When this field is populated, its content is returned exactly as is. The\u00a0Adyen payments platform does not use this data.<br>Maximum character length: 80 characters.<\/p>\n<\/td><\/tr><\/tbody><\/table>\n<h2 id=\"refundwithdata-sub-line\">RefundWithData\u00a0sub-line<\/h2>\n<table><thead><tr class=\"header\"><th><p><strong>Field #<\/strong><\/p><\/th><th><p><strong>Format<\/strong><\/p><\/th><th><p><strong>Description<\/strong><\/p><\/th><\/tr><\/thead><tbody><tr><td>\n<p>1<\/p>\n<\/td><td>\n<p>Fixed value: <code>SL<\/code><\/p>\n<\/td><td>\n<p>Record type identifier.<\/p>\n<\/td><\/tr><tr><td>\n<p>2<\/p>\n<\/td><td>\n<p>Numeric<\/p>\n<\/td><td><p>`SL` sub-line record number reference within its parent line.<br>\nThe counter starts at 1, and it increments sequentially by one unit.<\/p><\/td><\/tr><tr><td>\n<p>3<\/p>\n<\/td><td>\n<p>Fixed value:\u00a0<code>RefundWithDataResult<\/code><\/p>\n<\/td><td><p>Result type identifier.<br>\n<\/p><\/td><\/tr><tr><td>\n<p>4<\/p>\n<\/td><td>\n<p>Alphanumeric<\/p>\n<\/td><td><p>The original payment PSP reference.<br>\n<\/p><\/td><\/tr><tr><td>\n<p>5<\/p>\n<\/td><td>\n<p>Alphanumeric<\/p>\n<\/td><td><p>Authorisation code:\u00a0\n\n-   When the payment is authorised successfully, this field holds the authorisation code for the payment.\u00a0\n-   When the payment is not authorised, this field is empty.<br>\n<\/p><\/td><\/tr><tr><td>\n<p>6<\/p>\n<\/td><td>\n<p>Alphanumeric<\/p>\n<\/td><td><p>Result code, if available.<br>\n<\/p><\/td><\/tr><tr><td>\n<p>7<\/p>\n<\/td><td><p>Alphabetic<br>\n<\/p><\/td><td><p>When the payment is not authorised, it is refused, or if an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error.\n\nPossible error messages:\n\n-   Transaction not found\n-   Transaction is expired\n-   Insufficient balance on payment\n-   Only possible to refund the full amount\n-   Only possible to capture the full amount\n-   Modification in different currency than authorisation\n-   Internal error\n-   Operation not available\n-   Operation not allowed\n-   Operation failed\n-   Recurring not supported for this payment method\n-   Recurring transaction failed\n-   Recurring contract is not active\n-   Recurring contract not found\n-   Recurring initial payment not found\n-   Recurring initial payment not available\n-   Recurring contract already exists\n-   Fund Transfer not supported for this payment method\n-   Fund Transfer failed\n-   Fund Transfer: initial payment not found\n-   Fund Transfer: Original Transaction is never authorised\n-   The payment details have expired\n-   Fund Transfer: unable to transfer to this bankaccount\n-   InvoiceLines are incorrect\n-   Incomplete or invalid payment details\n-   No suitable capture found for partial refund\n-   Invalid referral authorisation code<br>\n<\/p><\/td><\/tr><\/tbody><\/table>\n<h2 id=\"example\">Example<\/h2>\n<pre><code class=\"language-text\">FH,1.0,TEST,Company,TestCompany,Default,1,ws@Company.TestCompany,RefundWithData,FileHeaderEchoData\nBH,1,BlockHeaderEchoData \nL,1,MerchantAccount,TestMerchant,RefundWithData,MerchantReference,Received, \nSL,1,RefundWithDataResult,9913963568780883,,Received, \nBT,1 \nFT,1<\/code><\/pre>","url":"https:\/\/docs.adyen.com\/development-resources\/batch-processing\/advanced-sftp-batch-files\/batch-result-file\/refundwithdata-result-file","articleFields":{"id":"24216671","type":"page","_expandable":{"operations":""},"status":"current","last_edit_on":"25-10-2019 16:38"},"algolia":{"url":"https:\/\/docs.adyen.com\/development-resources\/batch-processing\/advanced-sftp-batch-files\/batch-result-file\/refundwithdata-result-file","title":"RefundWithData result file","content":"When parsing or validation errors occur, the result file has the structure described in batch result files with validation errors.\nRefundWithData\u00a0line\nThe line record\u00a0[L] holds the metadata information that applies to its corresponding sub-line [SL] records.\nField #FormatDescription\n1\n\nFixed value: L\n\nRecord type identifier.\n\n2\n\nNumeric\n`L` line record number reference within the batch file block it belongs to.\nThe counter starts at 1, and it increments sequentially by one unit.\n3\n\nFixed value: MerchantAccount\n\nAccount type.\nDefines the type of account the transactions are related to.\n\n4\n\nAlphanumeric\n\nSpecifies the merchant account name.\n\n5\n\nFixed value:\u00a0RefundWithData\n\nProcessing type.\nDefines the type of action that is required for the specified transaction.\n\nIf the column shows ValidationError, then the file shall have the structure of the batch result file (ValidationError) instead.\n\n\n6\n\nAlphanumeric\n\nA merchant reference, that is, a unique identifier associated to a specific transaction.\n\n7\n\nAllowed values:\n\nSuccess\nAuthorised\nRefused\nCancelled\nReceived\nError\n\nTransaction status.  \n\n8\n\nAlphanumeric\n\nEchoDataIn this field you can specify any data you may want to be returned with the result file. When this field is populated, its content is returned exactly as is. The\u00a0Adyen payments platform does not use this data.Maximum character length: 80 characters.\n\nRefundWithData\u00a0sub-line\nField #FormatDescription\n1\n\nFixed value: SL\n\nRecord type identifier.\n\n2\n\nNumeric\n`SL` sub-line record number reference within its parent line.\nThe counter starts at 1, and it increments sequentially by one unit.\n3\n\nFixed value:\u00a0RefundWithDataResult\nResult type identifier.\n\n4\n\nAlphanumeric\nThe original payment PSP reference.\n\n5\n\nAlphanumeric\nAuthorisation code:\u00a0\n\n-   When the payment is authorised successfully, this field holds the authorisation code for the payment.\u00a0\n-   When the payment is not authorised, this field is empty.\n\n6\n\nAlphanumeric\nResult code, if available.\n\n7\nAlphabetic\nWhen the payment is not authorised, it is refused, or if an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error.\n\nPossible error messages:\n\n-   Transaction not found\n-   Transaction is expired\n-   Insufficient balance on payment\n-   Only possible to refund the full amount\n-   Only possible to capture the full amount\n-   Modification in different currency than authorisation\n-   Internal error\n-   Operation not available\n-   Operation not allowed\n-   Operation failed\n-   Recurring not supported for this payment method\n-   Recurring transaction failed\n-   Recurring contract is not active\n-   Recurring contract not found\n-   Recurring initial payment not found\n-   Recurring initial payment not available\n-   Recurring contract already exists\n-   Fund Transfer not supported for this payment method\n-   Fund Transfer failed\n-   Fund Transfer: initial payment not found\n-   Fund Transfer: Original Transaction is never authorised\n-   The payment details have expired\n-   Fund Transfer: unable to transfer to this bankaccount\n-   InvoiceLines are incorrect\n-   Incomplete or invalid payment details\n-   No suitable capture found for partial refund\n-   Invalid referral authorisation code\n\nExample\nFH,1.0,TEST,Company,TestCompany,Default,1,ws@Company.TestCompany,RefundWithData,FileHeaderEchoData\nBH,1,BlockHeaderEchoData \nL,1,MerchantAccount,TestMerchant,RefundWithData,MerchantReference,Received, \nSL,1,RefundWithDataResult,9913963568780883,,Received, \nBT,1 \nFT,1","type":"page","locale":"en","boost":15,"hierarchy":{"lvl0":"Home","lvl1":"Development resources","lvl2":"Batch processing","lvl3":"Submit transaction batch files through SFTP","lvl4":"Batch result file","lvl5":"RefundWithData result file"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/","lvl1":"https:\/\/docs.adyen.com\/development-resources","lvl2":"https:\/\/docs.adyen.com\/development-resources\/batch-processing","lvl3":"https:\/\/docs.adyen.com\/development-resources\/batch-processing\/advanced-sftp-batch-files","lvl4":"https:\/\/docs.adyen.com\/development-resources\/batch-processing\/advanced-sftp-batch-files\/batch-result-file","lvl5":"\/development-resources\/batch-processing\/advanced-sftp-batch-files\/batch-result-file\/refundwithdata-result-file"},"levels":6,"category":"Development Resources","category_color":"green","tags":["RefundWithData","result"]}}
