/v1/fetch-document
15 kredytów • 5/minPobierz oficjalne dokumenty PDF z niemieckiego rejestru handlowego.
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| api_key | string | Warunkowe* | Twój klucz API. Wymagany, jeśli nie używasz nagłówka x-api-key lub tokenu Bearer |
| company_id | string | WYMAGANE | Unikalny ID jednostki firmy z wyników wyszukiwania |
| document_type | string | WYMAGANE | Typ dokumentu. Wartości: shareholders_list, articles_of_association, AD, CD, SI |
Przykładowe żądanie
curl 'https://handelsregister.ai/api/v1/fetch-document?api_key=your_api_key_here&company_id=20a1510e88cd2e9b166db4d0bc5d563d&document_type=shareholders_list' \
-o document.pdf
Odpowiedź
Sukces (200): Zwraca plik PDF bezpośrednio
Content-Type: application/pdf · application/xml (application/pdf für AD, CD, shareholders_list, articles_of_association — application/xml für SI.)
Błąd: Zwraca JSON ze szczegółami błędu
Typy dokumentów
shareholders_list
Dokument rejestru udziałowców
articles_of_association
Gesellschaftsvertrag / Satzung / Statut
AD
Aktualne wypisy (Aktuelle Daten)
CD
Wypisy historyczne (Chronologische Daten)
SI
Strukturierter Registerinhalt — wird als XML-Datei geliefert.