Skip to content

API reference

Get the company's VAT ID

Other routes API

GET/v1/company/vat-id

Returns the VAT ID of the company’s Head office and the newest answer from VIES, the European Commission’s VAT number check. The Sandbox reads and saves the same ones as the live company it was made with. version is the Head office’s version. Version 0, with every other field null, means no VAT ID was saved. While the newest answer is unavailable, this asks VIES again. When VIES now answers, the answer is stored as a new version and returned; when it still cannot answer, the stored answer is returned unchanged. Only a signed-in person can read it. An API key is refused with 401 session_required.

Response

A 200 answer carries these fields.

  • vatIdstring or nullRequired

    The VAT ID as it was checked, without spaces or dots, for example DE123456789.

  • statusstring or nullRequired

    valid and invalid are what VIES said about the number. unavailable means VIES could not answer, never that the number is invalid.

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

    When VIES answered

  • namestring or nullRequired

    The name VIES holds for the number. Null when VIES gives none; Germany never does.

  • addressstring or nullRequired

    The address VIES holds for the number

  • versionintegerRequired

    0 when no VAT ID was saved.

Status codes

Status Meaning
200 The VAT ID and VIES’s newest answer.
401 No usable credential was sent (invalid_credentials), or an API key was used (session_required).
501 This deployment has no database, so it keeps no VAT ID (no_database). Sending the same request again will not help.
GET/v1/company/vat-id
Example
curl https://api.certinvo.com/v1/company/vat-id \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const response = await fetch(`https://api.certinvo.com/v1/company/vat-id`, {
  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/company/vat-id",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
application/json
{
  "vatId": "string",
  "status": "valid",
  "requestDate": "2026-09-17T09:30:00Z",
  "name": "string",
  "address": "string",
  "version": 0
}
Success response
GET
/v1/company/vat-id
Get the company's VAT ID
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/company/vat-id" \
  -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