Search. Select. Confirm.
Send a company name of at least three characters from your server to name search. Show possible matches with their enterprise numbers, then let the user choose.
Map the details that exist
Call the extended endpoint for the selected company. Map name, enterpriseNumber and a suitable addresses entry into editable form fields. Use entityNumber to distinguish the company from an establishment.
Keep the user in control
Names can be ambiguous and addresses can be missing. Keep manual entry available, preserve corrections and ask the user to confirm the final data. Debounce search and cancel obsolete responses.
