EU CBAM Quarterly XML Report Generator API
cbam_xml_generatorGenerate EU Carbon Border Adjustment Mechanism (CBAM) quarterly XML reports from shipment JSON or CSV with 8-digit CN code Annex I validation, sector aggregation, direct and indirect embedded tCO2e totals, and optional Excel audit workbook output. Deterministic offline compute, zero AI, nothing stored. 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.02/call via x402 at https://radarbg.com/x402/cbam-xml-generator.
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": {
"eori": "DE123456789012345",
"content": "CN Code,Country of Origin,Net Mass (t),Direct Emissions (tCO2e/t),Indirect Emissions (tCO2e/t),Supplier Name\n72085120,TR,42.500,1.85,0.42,Anatolia Steel Mills AS\n76011000,NO,18.200,1.62,0.18,Nordic Aluminium AS\n25232900,EG,120.000,0.78,0.09,Nile Cement Co\n",
"quarter": "2026-Q4",
"includeXml": true
},
"name": "cbam_xml_generator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eori | No | Optional EU EORI importer identifier (e.g. DE123456789012345). | |
| limit | No | Maximum shipment items returned in JSON (1-2000). | |
| content | No | Raw CBAM shipment CSV or XML text. Provide shipments, content, or fileBase64. | |
| quarter | No | Reporting quarter in YYYY-Q1..Q4 format (default 2026-Q4). | 2026-Q4 |
| fileName | No | Optional original filename. | |
| shipments | No | Structured array of shipment objects ({cnCode, originCountry, netMassTonnes, directEmissionsPerTonne, indirectEmissionsPerTonne, supplierName}). | |
| fileBase64 | No | Base64-encoded CBAM shipment CSV or XML file (max 15 MB). | |
| includeXml | No | Include the generated EU CBAM XML string in the response. | |
| includeXlsx | No | Include a base64-encoded Excel audit workbook. |