ARES
The ARES service provides clear, summarized access to data on economic entities from the information systems used for maintaining public administration registers and records.
Configure ARES services
The ARES service is set up in the tree menu Administrator/Parameters/ARES parameters.

Picture: Entering of ARES parameters
Description of fields:
Entering of ARES parameters |
Selecting this enables ARES to be used. |
Insert municipality into street if the street does not exist |
Selecting this field adds the part of the municipality to the street name if the street is not contained in the company address. If the part of the municipality does not exist, the municipality is added. |
Merge the municipality and part of the municipality into one field |
When this field is selected, the value of the Municipality field is inserted after a dash into the Place field. E.g. "Libchavy - Horní Libchavy". |
Insert town part instead of municipality part |
Selecting this field fills the Place field in the address with the value from the <dtt:Nazev_mestske_casti> element. If this value does not exist in the code list of Places, it will be created. |
Import bank account |
Selecting this field imports bank accounts to the Purchase tab of the customer/supplier card. |
Country Czech republic |
Required field. The user selects the record that represents the Czech Republic. Note: Solves situations where some users have "CZ" in the country abbreviation and others "CZE". |
Web addresses |
Addresses that are listed in the ARES database and that are used for downloading data. |
Every user who has the right to change a partner has the right to set these parameters.
When communicating with the ARES server, the connection uses the settings that can be defined using the Administrator / Set internet connection function. This is therefore where a connection via a proxy server can be set, if any.
ARES - Registered Point
If there is a requirement that ARES should not be run for some records, this can be set using the CanUseAresRF registered point.
Example of registered function code for a requirement that ARES should not be run, for example, for record number 4 from the Customers/Suppliers book.

Picture: Registered function code in the Object Designer
ARES in IS K2
The ARES function can be run in IS K2 with the
button in the Partners book or in the Suppliers/Customers book in change mode on a particular record next to the Name or Comp. Reg. No. field. The service can also be run in bulk (provided the operating conditions are met, see below) from the task scheduler.
When creating a new record, it is enough to type part of the name in the Name field and after pressing the
button in the Name field, a list of options is displayed from which the required record can be selected. Confirming the selection then fills the new customer card with information from ARES.

Picture: List of found subjects after entering the value Vítkovice in the Name field and then pressing the ARES button
The
button in the Comp. Reg. No. field runs the function for completing company data according to the ARES database. Based on the entered Comp. Reg. No., it searches for the company in the database and fills in the company name and address in the Suppl./Cust. or Partner card. Updated records are saved to the field history with the current date.
It imports verified bank accounts to the Banks tab.
Furthermore, this function fills in other data depending on the function settings in the ARES parameters (Administrator/Parameters/ARES parameters): the VAT Reg. No. of the Suppl./Cust. and, if the company is a VAT payer, it selects the Purchase documents with VAT flag on the Suppl./Cust. card; an extract from the Commercial Register.
The Sales documents with VAT flag is selected according to the setting in the client parameters and the function does not affect it.
Note: since the Ministry of Finance is not responsible for the correctness and up-to-dateness of the information in the database, it may happen that ARES cannot process some Comp. Reg. Nos. due to incorrect entry of the Adresa_textem element. This error is not caused by the K2 program.
Note: ARES should not be run in the task scheduler if there are several records with the same Comp. Reg. No. in the Suppl./Cust. book. The address would be overwritten for all these records.
Bulk Run in the Task Scheduler
When the ARES service is run in bulk, relatively strict conditions set by the Ministry of Finance apply (see the quotation below). If the conditions are not met, access to the ARES service is automatically blocked.
Quotation of the conditions from the website of the Ministry of Finance:
The purpose of operating the application is to provide fast and generally available information on individual subjects. For this purpose, access to the ARES application is not restricted for the ordinary user. With regard to the nature of the ARES operation and its security, the Ministry of Finance reserves the right to restrict or prevent access to the ARES web application for users who:
send more than 1000 queries for processing between 8:00 a.m. and 6:00 p.m.,
send more than 5000 queries for processing between 6:00 p.m. and 8:00 a.m. of the following day,
attempt to breach the security protection of the Ministry of Finance web server,
repeatedly send incorrectly filled-in queries,
repeatedly send the same queries,
have a larger number of simultaneously submitted queries (for automated XML queries),
circumvent the permitted limits by querying from a larger number of IP addresses,
search the database in an automated way with random data or generate mostly incorrect queries.
Especially for automated querying via XML services, we recommend taking care to fill in the parameters correctly with valid and meaningful values. Otherwise, access to the ARES IS may be blocked.
Restoration of access to the data of the ARES application after a possible ban will, as a rule, be resolved on the basis of sufficient written guarantees agreed by the user with the Ministry of Finance.
Note: If we run ARES on a partner that has a connected customer, the following error message is displayed: The function cannot be run. The partner has a connected customer.
If we run ARES in the task scheduler on a partner that has a connected customer, the text shown in the picture below is displayed in the error protocol.

Picture: ARES error protocol from the task scheduler