Skip to main content
GET
Get compliance check

Authorizations

Authorization
string
header
required

An InsightChain API key: ic_live_... for your organization, ic_test_... for its sandbox

Query Parameters

item
string
required

The item's external id

Maximum string length: 128
country
string
required

ISO 3166-1 alpha-2 country code (UK is read as GB; an EU member state, not EU)

Pattern: ^[A-Za-z]{2}$

Response

OK

item
object
required
country
string
required

ISO 3166-1 alpha-2

computed
boolean
required

Whether a verdict is stored for the item in the country. false: verdict is null, scope is empty, not_computed says why, and the fields of a stored verdict are absent

verdict
enum<string> | null
required
Available options:
blocked,
conditional,
clear,
unknown,
null
scope
enum<string>[]
required

The dimensions the answer is complete for. A clear verdict says nothing beyond them

Available options:
import_measures,
conformity,
technical_fit
disclaimer
string
required

A fixed sentence: not legal advice, and what a clear verdict does and does not cover

request_id
string
required

Quote this when asking about the request; also the X-Request-ID header

unknown_codes
enum<string>[]

Every unknown found; never empty when the verdict is unknown

Available options:
commodity_code_not_found,
commodity_code_too_general,
destination_code_mismatch,
destination_code_not_found,
invalid_commodity_code,
invalid_destination,
invalid_rule_conditions,
lookup_failed,
no_commodity_code,
no_origin,
not_covered,
rule_needs_attributes,
rule_needs_review,
stale_rule_set,
unreviewed_rule_set,
unsupported_destination
reasons
object[]

One reason behind a verdict; kind says which fields it carries

unknown_causes
enum<string>[]

Why the unknowns: coverage (nothing in your data changes it), item_data (the item's data can fix it), review (a person must judge a fact), source (an official tariff could not be read)

Available options:
coverage,
item_data,
review,
source
rule_ids
string<uuid>[]

The rules behind the answer

rule_set_version
string

An opaque version of what the verdict was computed from. Compare it for equality: it changes when the rules or the tariff reads behind the verdict change

commodity_code
string | null

The item's commodity code the verdict was computed for, digits only

origins
string[]

The origin countries the verdict was computed for

computed_at
string<date-time>
stale
boolean

true when the verdict may no longer describe the item

stale_reasons
enum<string>[]
Available options:
computed_over_48h_ago,
commodity_code_changed
not_computed
object

Why there is no stored verdict, and what to do