---
title: "Add an establishment"
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.

# Add an establishment

{/* 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="post">POST</span>
<code class="cvo-op-path-code">/v1/establishments</code>
</div>
</div>

Adds an establishment as its version 1, naming the key or the person. A company has exactly one Head office: a second one is refused. A VAT ID is checked with VIES once, and its answer is returned as `vies`; nothing is blocked by it.

## Request body

`application/json`, required

## Response

A `201` answer carries these fields.

## Status codes

| Status | Meaning |
|---|---|
| `201` | The establishment, as saved. |
| `400` | The establishment was refused (`invalid_establishment`). The message names the field. Nothing was saved. |
| `401` | No usable credential was sent (`invalid_credentials`). |
| `409` | The company has its Head office already (`head_office_exists`). Nothing was saved. |
| `501` | This deployment has no database, so it keeps no establishments (`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/add-an-establishment/index.mdx
