/v1/jurisdictionsReturns, 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
factstake it by this name. - typestringRequiredOne of
country,date,decimal,boolean,code. - valuesarray of string
For a code
- perstring
invoice: each invoice gives it for itself; an operation gives it incompanyFacts.facts.One ofinvoice. - 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 itsfacts, and the company facts refuse it. Absent: never asked, still accepted from a partner's key.One ofcompany,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 oftrue.
Status codes
| Status | Meaning |
|---|---|
200 |
What each country’s rules ask, and the home country. |
401 |
No usable credential was sent (invalid_credentials). |
/v1/jurisdictionscurl 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){
"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
}
]
}
]
}