Skip to content

API reference

List the company's establishments

Other routes API

GET/v1/establishments

Returns where the company, one legal company, is registered for tax: its Head office first, then each branch and VAT registration in the order they were made, each at its newest version. A company that saved its seller details or VAT ID before establishments existed has its Head office in the company’s country, made from them. A company that had declared a second country where it is established has a second establishment there, with kind null: say which kind it is. A company key lists its company’s. A workspace key lists those of the company it names with Certinvo-Company. A signed-in person lists those of the company the console acts for. No other company’s are ever listed. The Sandbox lists, adds and saves the establishments of the live company it was made with: one set, reached from either side. A sandbox company made on its own keeps its own.

Response

A 200 answer carries these fields.

  • establishmentsarray of objectRequired
    Show 12 child fields
    • establishmentIdstring (uuid)Required

      The establishment

    • versionintegerRequired
    • kindstringRequired

      head_office: where the company is seated; exactly one per company, and it stays the Head office. branch: a permanent establishment in another place. vat_registration: registered for VAT there, with no establishment. Null: not stated yet; a later version may state it.

      One of head_office, branch, vat_registration, null.
    • countrystringRequired

      The country of the establishment, as an ISO 3166-1 code. It never changes: another country is another establishment.

    • namestring or nullRequired

      A name the company gives it, such as Berlin HQ.

    • vatIdstring or nullRequired

      Its VAT ID, starting with the prefix of an EU member state (Greece: EL). Spaces and dots are removed and letters made capitals. A new VAT ID is checked with VIES, the European Commission's VAT number check, and the answer is returned as vies.

    • viesobject or nullRequired

      VIES's answer about the VAT ID; null when there is no VAT ID.

      Show 4 child fields
      • statusstringRequired

        unavailable means VIES could not answer, never that the number is invalid.

        One of valid, invalid, unavailable.
      • requestDatestring (date-time) or nullRequired
      • namestring or nullRequired
      • addressstring or nullRequired
    • taxNumberstring or nullRequired

      Its national tax number, such as a German Steuernummer.

    • addressobject or nullRequired

      Its postal address, as invoices state the seller's.

      Show 4 child fields
      • streetstring or null
      • postcodestring or null
      • citystring or null
      • countrystring or null

        An ISO 3166-1 country code.

    • contactobject or nullRequired

      Whom a buyer contacts about an invoice.

      Show 3 child fields
      • namestring or null
      • phonestring or null
      • emailstring or null
    • electronicAddressobject or nullRequired

      Where it receives e-invoices: the scheme and the address, both or neither.

      Show 2 child fields
      • schemestringRequired

        A scheme of the official electronic address scheme list, such as 9930 or 0204.

      • valuestringRequired
    • factsobjectRequired

      Each fact a country's rules ask of an establishment that this one states, named as the rules name it, such as where its supplies are usually made. GET /v1/jurisdictions lists each fact with whom it is asked of, its type and values. A fact asked of the legal company goes in the company facts, and a buyer's with the buyer. Each value is checked against the rule file that defines it. Left out or empty: none stated.

Status codes

Status Meaning
200 The establishments, possibly none.
401 No usable credential was sent (invalid_credentials).
501 This deployment has no database, so it keeps no establishments (no_database). Sending the same request again will not help.
GET/v1/establishments
Example
curl https://api.certinvo.com/v1/establishments \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const response = await fetch(`https://api.certinvo.com/v1/establishments`, {
  headers: {
    Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
  },
})
console.log(response.status, await response.json())
import os

import requests

response = requests.get(
    "https://api.certinvo.com/v1/establishments",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
application/json
{
  "establishments": [
    {
      "establishmentId": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
      "version": 0,
      "kind": "head_office",
      "country": "string",
      "name": "string",
      "vatId": "string",
      "vies": {
        "status": "valid",
        "requestDate": "2026-09-17T09:30:00Z",
        "name": "string",
        "address": "string"
      },
      "taxNumber": "string",
      "address": {
        "street": "string",
        "postcode": "string",
        "city": "string",
        "country": "string"
      },
      "contact": {
        "name": "string",
        "phone": "string",
        "email": "string"
      },
      "electronicAddress": {
        "scheme": "string",
        "value": "string"
      },
      "facts": {}
    }
  ]
}
Success response
GET
/v1/establishments
List the company's establishments
All
›AuthenticationRequiredBearerAuth

Provide your API key in the Authorization: Bearer <key> header. Keys are stored locally in your browser.

›Headers2
›Code Snippet
curl -X GET "https://api.certinvo.com/v1/establishments" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close