VAT Validation: Execute cli (service)

cli/service

Background processing cannot be started from the user interface. from the user interface. To execute background processing, open a command line in the directory where the file ew_service_vat.exe and call it with the parameter --mode=auto. To use use the European interface, add the --vies option. --vies.

The background processing will then process all the VAT registration number files that are in the import directory. In the backup directory, a copy of the copy of the import file is always stored in the backup directory and the finished in the export directory. In the log directory individual processing steps.

The call for VAT ID Validation with the option --mode=auto can be scheduled via a repeating task or cronjob.

Parameter

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

Usage of: ew_service_vat.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.
    --returncodesbzst   Writes the returncodes for BZSt to user dir.
    --returncodesvies   Writes the returncodes for VIES to user dir.
    --testmail          Send a testmail.
    --vies              Use VIES instead of BZSt.
    --validatefile      Check file, if structure is readable.
----------------------------------------------------------------------------

-h --help

Display all the necessary parameters that support the cli of the VAT ID Validation.

-v --version

Print the current installed version of the VAT ID Validation.

--help

Use this parameter to specify or override the language of the VAT ID Validation.

--mode

The mode in which the VAT ID Validation should be performed.

--dataobject

This parameter is required for a single VAT ID Validation.

-i --inputfile

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

-o --outputfile

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

--returncodesbzst

This parameter creates a configuration file for the VAT ID Validation in order to edit the return values of the BZSt interface.

--returncodesvies

This parameter creates a configuration file for the VAT ID Validation in order to edit the return values of the VIES interface.

--testmail

Test sending a test e-mail from the VAT ID Validation. After processing a file, an e-mail can be sent to you at the end. can be sent to you.

--vies

This parameter specifies that the VIES interface should be used and overrides any other settings.

--validatefile

Check the import file of the VAT ID Validation for formal correctness beforehand.

Outputs from cli/Service

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

Configuration

Configuration of the ew_service_vat CLI is done via INI files or via the user interface application. Further information please refer to the page about VAT configuration files.