erpware logo

EORI Validation: Execute command line interface (cli)

Execute command line interface (cli)

The background processing cannot be started from the user interface. To start the background processing, open a command line in the directory where the file ew_service_eori.exe is located and call it with the parameter --mode=auto.

The background processing thus processes all EORI files that are located in the import directory. A copy of the import file is always saved in the backup directory and the finished check result is stored in the export directory. Individual processing steps are recorded in the log directory.

The call for the EORI check with the --mode=auto option can be scheduled via a repeating task or cronjob. Running the processing in the background may take some time. This depends directly on the European Commission interface.


Run ew_service_eori --help and you will get the overview of all parameters of the EORI Validation that you can pass to the cli or service.

Usage of: ew_service_eori.exe [options]
-h  --help              Show this help
-v  --version           Version Return the version information.
    --lang              Language (de,en). Overwrites settings.
    --mode              Set the validation mode (single, batch, auto).
    --dataobject        JSON object for single validation mode.
    --inputfile         Input ImportData file for batch validation.
    --outputfile        Output file for batch validation.
    --testmail          Send a testmail.
    --validatefile      Check file, if structure is readable.
    --returncodeseori   Writes the returncodes for EORI to user dir.

-h --help

View all the necessary parameters that support the cli of the EORI check.

-v --version

Outputs the current installed version of the EORI Validation.


This parameter allows you to specify or override the language of the EORI Validation.


The mode in which the EORI Validation is to be performed.


This parameter is necessary in case of a single check of an EORI number.

-i --inputfile

Use this parameter to specify the file with data to be imported for the EORI Validation.

-o --outputfile

The export file for the EORI Validation is specified with this parameter. It is important that this is not identical to the import file.


From the EORI Validation, test sending a test e-mail. After processing a file, an email can be sent to you at the end.


Check the EORI Validation import file for formal correctness beforehand.


This parameter creates a configuration file for the EORI Validation to edit the return values of the EOS interface.

Outputs of the command line interface (cli)

All outputs are in JSON format and vary according to your return values.


The configuration of the ew_service_eori CLI is done via INI files or via the user interface application. For more information, see the EORI configuration files page.