Pappers
The pappers component is a component that allows the user to search for a company by name or VAT number.
It might be used as an alternative to the BCE Search component, to search for companies in Belgium. It also allows to search for companies in other countries.
It uses the Pappers API to search for companies.
{
"pappers": {
"component": "pappers_search",
"label": "Pappers"
}
}
Options
countryCodeList
We can customize the country code list by defining the countryCodeList option.
If we want to only search for companies in Belgium, we can define the countryCodeList option as ["BE"].
{
"pappers_search": {
"component": "pappers_search",
"label": "Search a company",
"placeholder": "Enter company number",
"options": {
"countryCodeList": ["BE", "FR", "DE"]
}
}
}
Available country codes:
| Country Code | Description |
|---|---|
| FR | France |
| BE | Belgium |
| DE | Germany |
| IT | Italy |
| ES | Spain |
| NL | Netherlands |
| PT | Portugal |
| UK | United Kingdom |
fields
We can customize the fields searched by defining the fields option.
| Field | Description |
|---|---|
| officers | Officers of the company |
| ubos | Ultimate beneficial owners of the company |
| financials | Financials of the company |
| documents | Documents of the company |
| certificates | Certificates of the company |
| publications | Publications of the company |
| establishments | Establishments of the company |
| contacts | Contacts of the company |
{
"pappers_search": {
"component": "pappers_search",
"label": "Search a company",
"placeholder": "Enter company number",
"options": {
"fields": [
"officers",
"ubos",
"financials",
"documents",
"certificates",
"publications",
"establishments",
"contacts"
]
}
}
}
searchMode
If we want to search for a company by keyword, we can define the searchMode option as "keyword".
{
"pappers_search": {
"component": "pappers_search",
"label": "Search a company",
"placeholder": "Enter company number",
"options": {
"searchMode": "keyword"
}
}
}
To change the labels of the search button and of the clear button, we can define the text on the options :
{
"pappers_search": {
"component": "pappers_search",
"label": "Search a company",
"placeholder": "Enter company number",
"options": {
"searchMode": "keyword",
"clear": "Clear",
"search": "Search"
}
}
}