Modification result file (ValidationError)

This topic describes the structure of a modification result file when a parsing or validation error occurs. For the modification result structure in case of success, see Modification result file.

Modification line

The line record [L] holds the metadata information that applies to its corresponding sub-line [SL] records.

Field #

Format

Description

1

Fixed value: L

Record type identifier.

2

Numeric [0-9]+

L line record number reference within the batch file block it belongs to.

The counter starts at 1, and it increments sequentially by one unit.

3

Fixed value: MerchantAccount

Account type.
Defines the type of account the transactions are related to.

4

Alphabetic data [A-Z, a-z]

Specifies the merchant account name.

5

Fixed value: ParseOrValidationError

Indicates that an error occurs while processing the modification request.

6

Alphabetic data [A-Z, a-z]

A unique identifier associated to a specific transaction.

This field is populated and is returned if an optional merchant reference value is included in the corresponding request file.

7 Fixed value: ValidationError

Indicates that an error occurs while processing the modification request.

8

Alphabetic data [A-Z, a-z]

EchoData

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 Adyen payments platform does not use this data.

Maximum character length: 80 characters.

Modification sub-line

Field #

Format

Description

1

Fixed value: SL

Record type identifier.

2

Numeric [0-9]+

SL sub-line record number reference within its parent line.

The counter starts at 1, and it increments sequentially by one unit.

3

Fixed value: ValidationErrorResult

Indicates that an error occurs while processing the modification request.

4

Empty

This value must be empty.

5

Alphabetic data [A-Z, a-z]

The description of the error message. Possible values:

  • Invalid amount specified
  • Original pspReference required for this operation
  • Payment type is invalid

For the full list, refer to Response handling (Error codes returned).

Examples

The following example shows the response when invalid amount was specified in the modification request:

L,1,MerchantAccount,TestMerchant,ParseOrValidationError,N/A,ValidationError,
SL,1,ValidationErrorResult,,Invalid amount specified

The example below shows the response when a PSP reference was missing the modification request:

L,1,MerchantAccount,TestMerchant,ParseOrValidationError,441231,ValidationError,
SL,1,ValidationErrorResult,,Original pspReference required for this operation