Create compliance check
curl --request POST \
--url https://api.insightchain.ai/v1/compliance/check \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"commodity_code": "8516.31",
"origin_countries": [
"CN"
],
"destination": "GB"
}
'import requests
url = "https://api.insightchain.ai/v1/compliance/check"
payload = {
"commodity_code": "8516.31",
"origin_countries": ["CN"],
"destination": "GB"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({commodity_code: '8516.31', origin_countries: ['CN'], destination: 'GB'})
};
fetch('https://api.insightchain.ai/v1/compliance/check', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request_id": "4751a932-cfb9-4412-b7c4-727df802a767",
"check": {
"commodity_code": "610910",
"origins": [
"CN"
],
"destination": "GB",
"as_of": "2026-11-21",
"attributes": {
"contains_cites_species": false
}
},
"verdict": "clear",
"scope": [
"import_measures"
],
"unknown_codes": [],
"reasons": [
{
"kind": "checked",
"authority": "UK tariff",
"origin": "CN",
"resolved_code": "610910",
"source_url": "https://www.trade-tariff.service.gov.uk/headings/6109?day=21&month=11&year=2026",
"as_of": "2026-11-21",
"subheading": "610910",
"lines": [
"6109100010"
],
"code_basis": {
"code": "610910",
"source": "item"
}
}
],
"rule_ids": [],
"rule_set_version": "v-99585349118391b6",
"computed_at": "2026-11-21T10:55:52.623Z",
"disclaimer": "Not legal advice. A verdict reports the rules and official measures on file for the date shown, with their sources. A clear verdict cover..."
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}Product compliance
Create compliance check
An admissibility verdict for a commodity code from up to 5 origin countries into a destination, with no item on file. Stores nothing for your organization. 30 a minute per key (429 above); the body is at most 16 KB (413 above).
Key scope: read (or execute). Module: product_compliance.
POST
/
v1
/
compliance
/
check
Create compliance check
curl --request POST \
--url https://api.insightchain.ai/v1/compliance/check \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"commodity_code": "8516.31",
"origin_countries": [
"CN"
],
"destination": "GB"
}
'import requests
url = "https://api.insightchain.ai/v1/compliance/check"
payload = {
"commodity_code": "8516.31",
"origin_countries": ["CN"],
"destination": "GB"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({commodity_code: '8516.31', origin_countries: ['CN'], destination: 'GB'})
};
fetch('https://api.insightchain.ai/v1/compliance/check', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request_id": "4751a932-cfb9-4412-b7c4-727df802a767",
"check": {
"commodity_code": "610910",
"origins": [
"CN"
],
"destination": "GB",
"as_of": "2026-11-21",
"attributes": {
"contains_cites_species": false
}
},
"verdict": "clear",
"scope": [
"import_measures"
],
"unknown_codes": [],
"reasons": [
{
"kind": "checked",
"authority": "UK tariff",
"origin": "CN",
"resolved_code": "610910",
"source_url": "https://www.trade-tariff.service.gov.uk/headings/6109?day=21&month=11&year=2026",
"as_of": "2026-11-21",
"subheading": "610910",
"lines": [
"6109100010"
],
"code_basis": {
"code": "610910",
"source": "item"
}
}
],
"rule_ids": [],
"rule_set_version": "v-99585349118391b6",
"computed_at": "2026-11-21T10:55:52.623Z",
"disclaimer": "Not legal advice. A verdict reports the rules and official measures on file for the date shown, with their sources. A clear verdict cover..."
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}Authorizations
Body
application/json
Response
OK
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