You need to connect forms to the GUS system through the API in the BAS program (aka. 1C): https://api.stat.gov.pl/Home/RegonApi?lang=en
This should work as follows:
1 . When creating a counterpart, the manager enters the counterpart tax number (Polish NIP) in the field and presses the "Fill through GUS" button.
2nd Through the API in the address, counterpart name, phone and email field (if there is in the GUS base) the information from the base is drawn on the basis of the tax number.
In fact, the functionality should be the same as now, only the data should be absorbed from another base.