EU Intrastat Trade Declaration Helper API - CN8
intrastat_helperValidate, classify, and aggregate EU intra-community dispatches and arrivals for monthly Intrastat reporting. Accepts JSON shipment arrays or CSV files, checks 8-digit CN8 commodity codes (chapters 01-97), EU member state + XI partner codes, domestic exclusions, Incoterms, nature-of-transaction codes, and supplementary unit requirements, then outputs aggregated declaration rows and ready-to-import CSV. Deterministic pure Python, zero AI. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.01/call via x402 at https://radarbg.com/x402/intrastat-helper.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"shipments": [
{
"value": 4200.5,
"cnCode": "61091000",
"netMassKg": 180,
"deliveryTerms": "DAP",
"partnerCountry": "FR",
"supplementaryQty": 600
},
{
"value": 1850.25,
"cnCode": "61091000",
"netMassKg": 75.4,
"deliveryTerms": "DAP",
"partnerCountry": "FR",
"supplementaryQty": 260
},
{
"value": 12400,
"cnCode": "84713000",
"netMassKg": 42.5,
"deliveryTerms": "FCA",
"partnerCountry": "NL",
"supplementaryQty": 15
}
],
"ownCountry": "DE",
"defaultFlow": "dispatch"
},
"name": "intrastat_helper"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum rows returned in declaration/problems/warnings (1-2000). | |
| content | No | Alternative to shipments: raw CSV text with CN code, Partner country, and Value columns. | |
| shipments | No | Array of shipment lines (1-5000). Each: {cnCode, partnerCountry, value, netMassKg?, flow?, nature?, deliveryTerms?, supplementaryQty?}. | |
| fileBase64 | No | Alternative to shipments: base64-encoded CSV file. | |
| ownCountry | No | Optional 2-letter EU code of your own member state (flags domestic shipments as errors). | |
| defaultFlow | No | Default trade flow when a line omits flow: dispatch or arrival. | dispatch |
| defaultNature | No | Default 2-digit nature-of-transaction code (default 11). | 11 |