Skip to content

TradeEU ICS2 ENS Pre-check

ics2.check

Select an ICS2 Release 3 ENS filing and pre-check required fields, goods descriptions, HS6 and EORI format for one consignment.

POSThttps://api.kanagu.dev/v1/ics2/check
Price
$0.10 per consignment, on successful calls only
Authentication
API key required.
MCP
call_operation with operation: "ics2.check" at https://api.kanagu.dev/mcp

Compliance coverage

Jurisdictions
Jurisdictions: EU
Standards
  • DG TAXUD ICS2 Harmonised Trader Interface (CFSS), IE annex, Rules & Conditions and code lists2.04 corrigendum2025-04-03Source
  • DG TAXUD ICS2 Common Technical System Specifications, EO Technical Service Contracts3.2.0.02025-10-30Source
  • DG TAXUD ICS2 Harmonised Trader Interface Control Document4.102026-01-09Source
  • DG TAXUD Introduction of Stop Words/Phrases in the Common Repository2026-08-03 implementation2026-08-03Source
  • DG TAXUD Whitelisting of Goods Descriptions in the Common Repository2026-11-17 implementation2026-11-17Source
  • DG TAXUD Economic Operators Registration and Identification GuidanceAres(2023)77413222023-08-30Source
Verification
Offline JSON pre-check against the pinned HTI filing scenarios, ENS XSD structure and cardinalities, annotated presence conditions, and DG TAXUD goods-description and EORI guidance.
Last reviewed
2026-11-26
curl https://api.kanagu.dev/v1/ics2/check \
  -H "Authorization: Bearer $KANAGU_KEY" \
  -H "Content-Type: application/json" \
  -d '{"transportMode":"sea","cargoType":"general","dataset":"house_with_consignee_data","declaration":{"LRN":"NVOCC-260112-001","documentIssueDate":{"DateTime":"2026-11-26T09:15:00Z"},"SpecificCircumstanceIndicator":"F15","activeBorderTransportMeans":{"ModeOfTransport":"1"},"consignmentMasterLevel":{"consignmentHouseLevel":{"goodsItem":[{"goodsItemNumber":"1","commodity":{"descriptionOfGoods":"Stainless steel kitchen sinks","commodityCode":{"harmonizedSystemSubHeadingCode":"732410"}}}]}}}}'
const res = await fetch("https://api.kanagu.dev/v1/ics2/check", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.KANAGU_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "transportMode": "sea",
    "cargoType": "general",
    "dataset": "house_with_consignee_data",
    "declaration": {
      "LRN": "NVOCC-260112-001",
      "documentIssueDate": {
        "DateTime": "2026-11-26T09:15:00Z"
      },
      "SpecificCircumstanceIndicator": "F15",
      "activeBorderTransportMeans": {
        "ModeOfTransport": "1"
      },
      "consignmentMasterLevel": {
        "consignmentHouseLevel": {
          "goodsItem": [
            {
              "goodsItemNumber": "1",
              "commodity": {
                "descriptionOfGoods": "Stainless steel kitchen sinks",
                "commodityCode": {
                  "harmonizedSystemSubHeadingCode": "732410"
                }
              }
            }
          ]
        }
      }
    }
  }),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();
curl https://api.kanagu.dev/mcp \
  -H "Authorization: Bearer $KANAGU_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"call_operation","arguments":{"operation":"ics2.check","input":{"transportMode":"sea","cargoType":"general","dataset":"house_with_consignee_data","declaration":{"LRN":"NVOCC-260112-001","documentIssueDate":{"DateTime":"2026-11-26T09:15:00Z"},"SpecificCircumstanceIndicator":"F15","activeBorderTransportMeans":{"ModeOfTransport":"1"},"consignmentMasterLevel":{"consignmentHouseLevel":{"goodsItem":[{"goodsItemNumber":"1","commodity":{"descriptionOfGoods":"Stainless steel kitchen sinks","commodityCode":{"harmonizedSystemSubHeadingCode":"732410"}}}]}}}}}}}'
Request body
{
  "transportMode": "sea",
  "cargoType": "general",
  "dataset": "house_with_consignee_data",
  "declaration": {
    "LRN": "NVOCC-260112-001",
    "documentIssueDate": {
      "DateTime": "2026-11-26T09:15:00Z"
    },
    "SpecificCircumstanceIndicator": "F15",
    "activeBorderTransportMeans": {
      "ModeOfTransport": "1"
    },
    "consignmentMasterLevel": {
      "consignmentHouseLevel": {
        "goodsItem": [
          {
            "goodsItemNumber": "1",
            "commodity": {
              "descriptionOfGoods": "Stainless steel kitchen sinks",
              "commodityCode": {
                "harmonizedSystemSubHeadingCode": "732410"
              }
            }
          }
        ]
      }
    }
  }
}

Request body

application/json

transportMode"sea" | "rail" | "road" | "air" | "inland_waterway"required
Mode of transport at the customs border.
cargoType"general" | "express" | "postal"required
General freight, express consignment, or postal consignment.
dataset"complete_prearrival" | "complete_prearrival_straight" | "complete_prearrival_with_house" | "complete_prearrival_express_on_general_air" | "complete_preloading" | "complete_preloading_straight" | … (18 values)required
Scope of this filing, based on who supplies the master, house and consignee data and the applicable filing phase.
declarationobjectrequired
One ENS payload in JSON using exact ICS2 XML element names, without the IE3Fxx wrapper. Use arrays for repeatable elements, strings for leaf values, and @name for XML attributes.

Response

200 · application/json

status"issues_found" | "needs_review" | "no_issues_in_checked_rules"required
filingobject | nullrequired
supportedDatasetsarray of stringrequired
findingsarray of objectrequired
findings[].severity"error" | "needs_review"required
findings[].codestringrequired
findings[].pathstringrequired
JSON Pointer into the request.
findings[].rulestringrequired
findings[].expectedstringrequired
findings[].actualstring | nullrequired
findings[].sourceobjectrequired
findings[].source.namestringrequired
findings[].source.versionstringrequired
findings[].source.datestring (date)required
findings[].source.urlstring (uri)required
findingCountinteger (0 to 9007199254740991)required
Total findings. At most 250 are returned.
verificationstringrequired
standardsarray of objectrequired
standards[].namestringrequired
standards[].versionstringrequired
standards[].datestring (date)required
standards[].urlstring (uri)required

Try it

ics2.check

$0.10/consignment

 

Response

Run the request to see the live response here.

Errors

Errors are JSON {"error":{"code","message"}}. An operation may add its own 400 codes; the message says what to fix.

StatusCode and meaning
400invalid_input

The body does not match the request schema. The message names each field.

400invalid_json

The body is missing or is not valid JSON.

400invalid_idempotency_key

Idempotency-Key must be 1–128 visible ASCII characters.

401invalid_api_key

The Bearer key is missing, malformed, invalid or inactive.

402free_allowance_exhausted

This month's free usage is used up and the account has no subscription. Subscribe from the dashboard, or wait for the next UTC month; Retry-After gives the seconds left.

404not_found

No operation at this path.

409idempotency_conflict

The Idempotency-Key was already used with a different body.

413payload_too_large

JSON bodies may be at most 64 KiB.

500internal_error

The call failed on our side. It is not billed; retry with the same Idempotency-Key.

JSON Schema

Request schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "transportMode": {
      "type": "string",
      "enum": [
        "sea",
        "rail",
        "road",
        "air",
        "inland_waterway"
      ],
      "description": "Mode of transport at the customs border."
    },
    "cargoType": {
      "type": "string",
      "enum": [
        "general",
        "express",
        "postal"
      ],
      "description": "General freight, express consignment, or postal consignment."
    },
    "dataset": {
      "type": "string",
      "enum": [
        "complete_prearrival",
        "complete_prearrival_straight",
        "complete_prearrival_with_house",
        "complete_prearrival_express_on_general_air",
        "complete_preloading",
        "complete_preloading_straight",
        "master_only",
        "straight_without_consignee_data",
        "house_only",
        "house_without_consignee_data",
        "house_with_consignee_data",
        "consignee_data_for_house",
        "consignee_data_for_straight",
        "preloading_minimum",
        "preloading_minimum_with_master_reference",
        "preloading_master_reference_only",
        "preloading_with_house_details",
        "postal_receptacles"
      ],
      "description": "Scope of this filing, based on who supplies the master, house and consignee data and the applicable filing phase."
    },
    "declaration": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {},
      "description": "One ENS payload in JSON using exact ICS2 XML element names, without the IE3Fxx wrapper. Use arrays for repeatable elements, strings for leaf values, and @name for XML attributes."
    }
  },
  "required": [
    "transportMode",
    "cargoType",
    "dataset",
    "declaration"
  ],
  "additionalProperties": false,
  "examples": [
    {
      "transportMode": "sea",
      "cargoType": "general",
      "dataset": "house_with_consignee_data",
      "declaration": {
        "LRN": "NVOCC-260112-001",
        "documentIssueDate": {
          "DateTime": "2026-11-26T09:15:00Z"
        },
        "SpecificCircumstanceIndicator": "F15",
        "activeBorderTransportMeans": {
          "ModeOfTransport": "1"
        },
        "consignmentMasterLevel": {
          "consignmentHouseLevel": {
            "goodsItem": [
              {
                "goodsItemNumber": "1",
                "commodity": {
                  "descriptionOfGoods": "Stainless steel kitchen sinks",
                  "commodityCode": {
                    "harmonizedSystemSubHeadingCode": "732410"
                  }
                }
              }
            ]
          }
        }
      }
    }
  ]
}
Response schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "issues_found",
        "needs_review",
        "no_issues_in_checked_rules"
      ]
    },
    "filing": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "code": {
              "type": "string"
            },
            "messageId": {
              "type": "string"
            },
            "namespace": {
              "type": "string"
            },
            "source": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "version": {
                  "type": "string"
                },
                "date": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "required": [
                "name",
                "version",
                "date",
                "url"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "code",
            "messageId",
            "namespace",
            "source"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "supportedDatasets": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "findings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "severity": {
            "type": "string",
            "enum": [
              "error",
              "needs_review"
            ]
          },
          "code": {
            "type": "string"
          },
          "path": {
            "type": "string",
            "description": "JSON Pointer into the request."
          },
          "rule": {
            "type": "string"
          },
          "expected": {
            "type": "string"
          },
          "actual": {
            "type": [
              "string",
              "null"
            ]
          },
          "source": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              },
              "date": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "url": {
                "type": "string",
                "format": "uri"
              }
            },
            "required": [
              "name",
              "version",
              "date",
              "url"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "severity",
          "code",
          "path",
          "rule",
          "expected",
          "actual",
          "source"
        ],
        "additionalProperties": false
      }
    },
    "findingCount": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Total findings. At most 250 are returned."
    },
    "verification": {
      "type": "string"
    },
    "standards": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "date": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "name",
          "version",
          "date",
          "url"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "status",
    "filing",
    "supportedDatasets",
    "findings",
    "findingCount",
    "verification",
    "standards"
  ],
  "additionalProperties": false
}