---
title: "Get the company's VAT ID"
description: "Other routes API"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.certinvo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get the company's VAT ID

{/* Generated by apps/docs/scripts/generate.ts from contracts/api/openapi.yaml. Do not edit. */}
<div class="cvo-op">
<div class="cvo-op-main">

<div class="cvo-op-header">
<div class="cvo-op-path-row">
<span class="cvo-method" data-method="get">GET</span>
<code class="cvo-op-path-code">/v1/company/vat-id</code>
</div>
</div>

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.

## 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. |

</div>
<div class="cvo-op-aside">

</div>
</div>

Source: https://docs.certinvo.com/reference/api/other/get-the-company-s-vat-id/index.mdx
