Factory BOM CSV to HS Code & Compliance Dependency Tree API
Factories send messy Bill of Materials spreadsheets—never pre-tagged with FCC, UN 38.3, CPSIA, MoCRA, or EU allergen flags. Stage 1 (Atom) parses JSON or raw CSV BOMs into structured material layers, controlled-component triggers, HS subcodes, and downstream certification trees, billing strictly $0 on empty or malformed uploads.
Why Hidden Sub-Components Break Factory Sourcing Pipelines
Sourcing managers often classify a finished SKU by its outer shell ('plastic kitchen gadget' or 'plush home pillow') while missing a single line item buried on row 14 of the factory BOM—a 3.7V lithium coin cell, a Bluetooth LE module, a silicone food-contact gasket, a detachable 18mm button magnet, or trace cashew/sesame oil. That single overlooked part triggers mandatory lab testing, customs detention, or marketplace removal.
CrossBorder-Empire-OS Stage 1 (Atom) atomically decomposes every BOM row into unit cost contribution, net weight rollup, material family, packaging layer, controlled-component risk flags, and exact per-market certification dependencies that feed directly into Stage 2 (Tax), Stage 3 (Ship), Stage 4 (Localize), and Stage 5 (Clock).
Worked BOM Rollup Example: 4-Row CSV Factory BOM -> Full 5-Stage Dossier
Piping a 4-line Shenzhen factory CSV for Bluetooth Earbuds (BATT-01 $1.65 / 12g, RF-02 $2.40 / 4g, CASE-03 $1.10 / 42g, PACK-04 $0.75 / 58g + assembly) into Stage 1 Atom.
- Decimal BOM Cost & Weight Rollup: Component subtotal = $1.65 + $2.40 + $1.10 + $0.75 = $5.90 (+ assembly/margin to $11.50 FOB); net component mass = 12g + 4g + 42g + 58g = 116g (0.116 kg net, 0.180 kg gross).
- Automated Controlled-Component Flags: Row BATT-01 triggers lithium_battery (UN 38.3, IATA PI 967/966 <= 30% SoC, UL 2054, EU Battery Reg 2023/1542, JP PSE). Row RF-02 triggers rf_transmitter (FCC Part 15 ID, CE RED EN 18031, JP TELEC/Giteki).
- Downstream Pipeline Coupling: Stage 1 hands HS 8518.30.2000 to Stage 2 Tax (7.5% CN Sec 301), weights/dims to Stage 3 Ship, regulatory marks to Stage 4 Localize, and max lab lead time (28–45d) to Stage 5 Launch Clock.
- Zero-Failure Billing Check: Uploading an empty CSV header or malformed row with negative cost returns HTTP 422 with billable: false and charge_micros: 0.
Stage 1 Atom Controlled-Component Detection Triggers
Customer BOMs and FOB factory quotes are protected by our Zero BOM / Trade-Secret Reselling Pledge.
| BOM Component Signal | Controlled Flag | Triggered US / EU / JP Frameworks | CPM Lab Impact |
|---|---|---|---|
| Li-ion / LiPo / Coin Cell | lithium_battery | UN 38.3, IATA 30% SoC, UL 2054, EU 2023/1542, JP PSE | +21–28 days |
| Bluetooth / Wi-Fi / 2.4GHz IC | rf_transmitter | FCC Part 15 ID, CE RED EN 18031, JP TELEC/Giteki | +21–45 days |
| Sesame / Walnut / Cashew / Milk | allergen_present | US 9 Allergens, EU 14 Annex II, JP 9 Mandatory (2026) | +14 days label QA |
| Limonene / Linalool / Retinol | cosmetic_active_allergen | US MoCRA, EU 1223/2009 + 2023/1545 (Jul 2026), JP PMD | +28–35 days CPSR |
| Small Parts / ABS / Magnets (<12y) | child_toy_safety | US CPSIA/ASTM F963-23, EU EN 71/2025/2509, JP Under-6 Law | +21–24 days |
| Silicone / PP / 304 Steel Foodware | food_contact_material | FDA 21 CFR 175–178, EU 1935/2004/LFGB/DGCCRF, JP JFSL | +14–21 days |
Actionable Engineering & Export Checklist
- Include standard CSV columns: part_id, component_name, material, qty_per_unit, unit_cost_usd, weight_g, controlled_hint.
- Send CSV either inside JSON via bom_csv or raw via Content-Type: text/csv with SKU query parameters.
- Use MCP tool analyze_bom_atom ($0.02) for fast Stage 1 pre-screening before running full $0.15 5-stage dossiers.
- Trust strict zero-resale isolation: factory BOM spreadsheets are never shared, resold, or used for model training.
Working REST API & Streamable /mcp Examples
1. REST API Call (POST https://crossborder.fastmesh.dev/v1/crossborder/compile-dossier)
curl -fsSL -X POST "https://crossborder.fastmesh.dev/v1/crossborder/compile-dossier" \
-H "Content-Type: application/json" \
-d '{"sku_id":"TWS-BOM-01","product_name":"ANC Wireless Earbuds","category":"electronics_lithium","origin_country":"CN","target_markets":["US","DE","FR","JP"],"quantity":1000,"unit_fob_usd":11.50,"retail_price_usd":49.99,"unit_weight_kg":0.18,"unit_dims_cm":{"length":10.5,"width":8.5,"height":4.2},"bom_csv":"part_id,component_name,material,qty_per_unit,unit_cost_usd,weight_g,controlled_hint\nBATT-01,Li-ion Cell 500mAh,Li-ion,1,1.65,12,lithium_battery\nRF-02,Bluetooth 5.3 SoC,Silicon,1,2.40,4,rf_transmitter\nCASE-03,ABS Charging Case,ABS,1,1.10,42,enclosure","tenant_id":"bom_ingest_ops"}'
2. Native AI Agent Call (POST https://crossborder.fastmesh.dev/mcp · JSON-RPC 2.0)
curl -fsSL -X POST "https://crossborder.fastmesh.dev/mcp" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"analyze_bom_atom","arguments":{"sku_id":"TWS-BOM-01","product_name":"ANC Wireless Earbuds","category":"electronics_lithium","bom_csv":"part_id,component_name,material,qty_per_unit,unit_cost_usd,weight_g,controlled_hint\nBATT-01,Li-ion Cell 500mAh,Li-ion,1,1.65,12,lithium_battery\nRF-02,Bluetooth 5.3 SoC,Silicon,1,2.40,4,rf_transmitter"}}}'
OpenAPI 3.1: /openapi.json · Agent Skill: /skill.md · Machine Index: /llms.txt · Treg Hub: crossborder-empire-os (0% seller commission) · Causal Bazaar: crossborder_empire_os_v1
Zero-Failure $0 Billing, Privacy Pledge & Never-Expiring Prepaid Packs
HTTP 422 with billable: false and charge_micros: 0.Zero BOM / Trade-Secret Reselling Pledge: Submitted factory BOMs, FOB pricing, margins, and export dossiers are never resold or used to train external models. Same-tenant verified cache repeats bill at
10% (90% savings).
Launch SKU Pack
$99.00 credit (99M micros · 660 full 5-stage dossiers / 2,475 landed-cost or ship runs) · One-time
Get Launch SKU PackBrand 15-SKU Pack
$360.00 credit (360M micros · 2,400 full 5-stage dossiers / 9,000 landed-cost runs) · Never expires
Get Brand 15-SKU PackExporter Studio
$1,250.00 credit (1,250M micros · 8,333 full 5-stage dossiers / 31,250 landed-cost runs) · Never expires
Get Exporter StudioFrequently Asked Questions
Can I post a raw CSV file directly without wrapping it in JSON?
Yes. Send Content-Type: text/csv directly to POST /v1/crossborder/compile-dossier with SKU parameters in the query string, or embed CSV text inside the JSON bom_csv field.
Are my factory BOM costs or supplier details ever resold or used to train models?
Never. CrossBorder-Empire-OS operates under a binding Zero BOM / Trade-Secret Reselling Pledge.
What happens if my BOM CSV is empty or has corrupted numbers?
Stage 1 rejects empty or malformed BOM inputs cleanly with HTTP 422, billable: false, and charge_micros: 0 ($0.00 billed).