Skip to content

API reference

Get the company's facts for the legal check

Other routes API

GET/v1/company/facts

Returns the company’s own facts, which every check declares to the legal check: what the company is, where it is established, and in facts each fact a country’s rules define that it stated, such as its usual VAT exemption reason. Each company is one company and keeps its own facts. A live company and its sandbox company keep theirs apart. A company key reads its company’s facts. A workspace key reads the facts of the company it names with Certinvo-Company. A signed-in person reads the facts of the company the console acts for. Version 0 means nothing was saved yet: every field is null and facts is empty.

Response

A 200 answer carries these fields.

  • versionintegerRequired

    0 when nothing was saved yet.

  • organisationTypestringRequired

    What the company is: business, a business buying for its business, or public, a public authority. On a received invoice the company is the buyer, so this is the buyer's type.

    One of business, public, null.
  • establishedCountrystring or nullRequired

    Where the company is established: its seat, its place of management or a fixed establishment involved in the supply, as an ISO 3166-1 country code. Null: the country of the company's address on each invoice stands for it.

  • factsobjectRequired

    Each fact a country's rules define that the company states, named as the rules name it, such as why its supplies marked exempt from VAT are exempt, or whether it is a micro or small or medium-sized enterprise (true or false). GET /v1/jurisdictions lists each country's facts with their type and values, and whom each is asked of. Each value is checked against the rule file that defines it. A fact asked of a buyer is refused here: it is saved with the customer. A fact asked of an establishment is refused here too: it is saved on the establishment. An operation's companyFacts may still give either for its own invoices. An empty value is no value.

  • useAddressAsEstablishmentboolean

    Use the address on the invoice as where a party is established. True: the country of the seller's or the buyer's address on the invoice is taken as stated, wherever nothing else states it. False, the default: the check assumes it from the address and says so.

Status codes

Status Meaning
200 The newest company facts.
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.
GET/v1/company/facts
Example
curl https://api.certinvo.com/v1/company/facts \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const response = await fetch(`https://api.certinvo.com/v1/company/facts`, {
  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/facts",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
application/json
{
  "version": 0,
  "organisationType": "business",
  "establishedCountry": "string",
  "facts": {},
  "useAddressAsEstablishment": true
}
Success response
GET
/v1/company/facts
Get the company's facts for the legal check
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/facts" \
  -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