Skip to content

API reference

List what each country's rules ask

Other routes API

GET/v1/jurisdictions

Returns, for each country whose own rules are loaded, the business terms its duty needs from the company, a buyer or each invoice, and the facts its rules define with whom each is asked of; and the home country, the one a company gets when it names none. The console draws each country’s rows from this answer. The company facts and a customer’s facts take a fact by the name given here, and each value is checked against its type and values. It holds no company data: the answer is the same for every caller. Any credential may read it.

Response

A 200 answer carries these fields.

  • homestringRequired

    The country of the rule set this deployment validates by default, the country a company gets when it names none.

  • jurisdictionsarray of objectRequired

    One entry per country whose own rules are loaded, by country code.

    Show 3 child fields
    • countrystringRequired

      The ISO 3166-1 country code.

    • termsarray of objectRequired

      The EN 16931 business terms the country's duty needs, and whom each is asked of. A term is never a check; the conformance gate validates the invoice.

      Show 3 child fields
      • termstringRequired

        The business term, such as BT-23.

      • askedOfarray of stringRequired

        company: the company states it once, in its seller details. buyer: each buyer of the country states it. invoice: each invoice the country's duty reaches carries it.

      • buyerTypesarray of string

        For a term asked of a buyer, the kinds of buyer it is asked of. Absent, every kind.

    • factsarray of objectRequired

      The facts the country's rules define, which no invoice states.

      Show 7 child fields
      • namestringRequired

        The fact's name, as the rules name it. The company facts and a customer's facts take it by this name.

      • typestringRequired
        One of country, date, decimal, boolean, code.
      • valuesarray of string

        For a code

      • perstring

        invoice: each invoice gives it for itself; an operation gives it in companyFacts.facts.

        One of invoice.
      • askedOfstring

        company: the legal company states it once, in its facts. establishment: each of its establishments may state it. buyer: a customer states it in its facts, and the company facts refuse it. Absent: never asked, still accepted from a partner's key.

        One of company, establishment, buyer.
      • buyerTypesarray of string

        For a fact asked of a buyer, the kinds of buyer it is asked of. Absent, every kind.

      • unnamedboolean

        True when the country's rules assume the fact and ask that it is never named to a person among what a check assumed, because its value changes no file. Absent otherwise.

        One of true.

Status codes

Status Meaning
200 What each country’s rules ask, and the home country.
401 No usable credential was sent (invalid_credentials).
GET/v1/jurisdictions
Example
curl https://api.certinvo.com/v1/jurisdictions \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const response = await fetch(`https://api.certinvo.com/v1/jurisdictions`, {
  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/jurisdictions",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
application/json
{
  "home": "string",
  "jurisdictions": [
    {
      "country": "string",
      "terms": [
        {
          "term": "string",
          "askedOf": [
            "company"
          ],
          "buyerTypes": [
            "B2B"
          ]
        }
      ],
      "facts": [
        {
          "name": "string",
          "type": "country",
          "values": [
            "string"
          ],
          "per": "invoice",
          "askedOf": "company",
          "buyerTypes": [
            "B2B"
          ],
          "unnamed": true
        }
      ]
    }
  ]
}
Success response
GET
/v1/jurisdictions
List what each country's rules ask
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/jurisdictions" \
  -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