Skip to main content
POST
Create compliance check

Authorizations

Authorization
string
header
required

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

Body

application/json
commodity_code
string
required

HS code, 6-10 digits; dots between groups are allowed

Maximum string length: 14
origin_countries
string[]
required

Countries the goods come from

Required array length: 1 - 5 elements

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

Pattern: ^[A-Za-z]{2}$
destination
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}$
attributes
object

Product attributes for this check only (plug type, rated voltage and the like)

Response

OK

check
object
required

What was checked

verdict
enum<string>
required
Available options:
blocked,
conditional,
clear,
unknown
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
unknown_codes
enum<string>[]
required

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[]
required

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

rule_ids
string<uuid>[]
required
rule_set_version
string
required

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

computed_at
string<date-time>
required
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