---
title: "Save the company's facts for the legal check"
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.

# Save the company's facts for the legal check

{/* 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="put">PUT</span>
<code class="cvo-op-path-code">/v1/company/facts</code>
</div>
</div>

Saves the company's company facts as a new version that names the key or the person who saved them. An empty or null field is no value; nothing is filled in. `establishedCountry` null means the country of the company's address on each invoice stands for it. `facts` holds a country's facts, named as its rules name them: `GET /v1/jurisdictions` lists each with its type and values. Each value is checked against the rule file that defines it. A fact asked of a buyer is refused here, and so is one asked of an establishment: it is saved on the establishment (`PUT /v1/establishments/{id}`). A field this request does not have is refused, and the message says a country's facts go in `facts`. A partner's software can save them for each client company: with that company's key, or with the workspace key and `Certinvo-Company: <company id>`. A conversion or a validation can also send them with its invoices, as `companyFacts`.

## Request body

`application/json`, required

## Response

A `200` answer carries these fields.

## Status codes

| Status | Meaning |
|---|---|
| `200` | The saved version. |
| `400` | The facts were refused (`invalid_company_facts`). The message names the field. Nothing was saved. |
| `401` | No usable credential was sent (`invalid_credentials`). |
| `501` | This deployment has no database, so it keeps no company facts (`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/save-the-company-s-facts-for-the-legal-check/index.mdx
