Skip to content

Company Registry

Company Registry

Public company registry data for autocomplete. Search companies from government registries (e.g., AJPES for Slovenia) to auto-fill customer details.

Search company registry

GET/company-registry/search

Search public company registries for autocomplete. Returns matching companies from government data sources like AJPES (Slovenia). Use this to auto-fill customer details when creating invoices.

Query parameters

country_codestringrequired

ISO 3166-1 alpha-2 country code to search in (e.g., SI, AT, HR)

qstringrequired

Search query - company name or tax number (min 2 characters)

limitstringoptional

Maximum number of results (default: 10, max: 50)

curl "https://eu.spaceinvoices.com/company-registry/search" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "x-entity-id: YOUR_ENTITY_ID"

Returns

dataarray of objects
json
{
  "data": [
    {
      "id": "creg_abc123def456",
      "country_code": "SI",
      "registration_number": "1234567",
      "tax_number": "12345678",
      "name": "Primer d.o.o.",
      "address": "Slovenska cesta 1",
      "post_code": "1000",
      "city": "Ljubljana",
      "legal_form": "d.o.o.",
      "bank_accounts": [
        {
          "iban": "SI56 0201 0001 1234 567",
          "bank": "NLB",
          "is_active": true
        }
      ],
      "status": "active"
    }
  ]
}
Example:

Get supported countries

GET/company-registry/countries

Returns a list of country codes for which company registry data is available. Use this to conditionally show the company autocomplete feature based on entity's country.

Returns

dataarray of strings
json
{
  "data": [
    "SI"
  ]
}