/v1/company/vat-idReturns 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
validandinvalidare what VIES said about the number.unavailablemeans VIES could not answer, never that the number is invalid.One ofvalid,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. |
/v1/company/vat-idcurl 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){
"vatId": "string",
"status": "valid",
"requestDate": "2026-09-17T09:30:00Z",
"name": "string",
"address": "string",
"version": 0
}