AGOS

Deterministic European Compliance & Operations API / MCP

European Accounting & Tax · POST /v1/fr-fec · MCP tool: validate_fr_fec

French FEC Tax Audit Validator (DGFiP)

Deterministic validator for French Fichier des Ecritures Comptables (FEC) tax audit exports under DGFiP Art. A47 A-1 LPF: 18 mandatory columns, EcritureNum balance, PCG accounts, LME payment delays & French comma decimals.

Test Live (Zero Signup, Stateless Edge)

Load a verified sample payload below or edit the JSON directly. Use synthetic data on the public endpoint.

Open Full 30-Tool Playground

Ready — click Run to execute live against api.agos.tools.

{ "hint": "Click Run to inspect the deterministic validation output and regulatoryAssessment envelope." }

What This Engine Checks

  • Checks all 18 mandatory DGFiP Art. A47 A-1 LPF columns, UTF-8/delimiter conformance, YYYYMMDD dates, and French decimal conventions.
  • Verifies strict Debit == Credit balance per EcritureNum, sequential numbering continuity, and ValidDate presence.
  • Computes LME statutory payment-term risk flags alongside structured error codes for automated ERP pre-checks.

Scope notice: Deterministic validation and calculation engine only — not legal, tax, or accounting advice, and does not submit directly to government filing portals. Every response includes a machine-readable regulatoryAssessment object.

Connect via Remote MCP or REST

Scoped MCP Endpoint (/mcp/finance)

Connect only the finance toolset to avoid bloating your agent's context window. Tool name: validate_fr_fec.

{
  "mcpServers": {
    "agos-finance": {
      "type": "http",
      "url": "https://api.agos.tools/mcp/finance"
    }
  }
}

Direct REST API (POST /v1/fr-fec)

Zero external dependencies, OpenAPI 3.1.0 typed schema at /openapi.json.

curl -s -X POST "https://api.agos.tools/v1/fr-fec" \
  -H "Content-Type: application/json" \
  -d '{"fileName":"552032534FEC20251231.txt","fecContent":"JournalCode|JournalLib|EcritureNum|EcritureDate|CompteNum|CompteLib|CompAuxNum|CompAuxLib|PieceRef|PieceDate|EcritureLib|Debit|Credit|EcritureLet|DateLet|ValidDate|Montantdevise|Idevise\nAC|Journal des achats|AC-001|20250110|606100|Fournitures non stockees|||F-2025-100|20250110|Facture fournisseur F-2025-100|10000,00|0,00|||20250112||\nAC|Journal des achats|AC-001|20250110|445660|TVA deductible|||F-2025-100|20250110|Facture fournisseur F-2025-100|2000,00|0,00|||20250112||\nAC|Journal des achats|AC-001|20250110|401000|Fournisseurs|FR001|Fournisseur Industrie SAS|F-2025-100|20250110|Facture fournisseur F-2025-100|0,00|12000,00|AA|20250425|20250112||\nBQ|Journal de banque|BQ-001|20250425|401000|Fournisseurs|FR001|Fournisseur Industrie SAS|VIR-2025-100|20250425|Reglement F-2025-100 (105j > 60j LME)|12000,00|0,00|AA|20250425|20250425||\nBQ|Journal de banque|BQ-001|20250425|512000|Banque|||VIR-2025-100|20250425|Reglement F-2025-100|0,00|12000,00|||20250425||\n","includeLmeAudit":true}'

Frequently Asked Questions

Does this validator catch the issues that trigger DGFiP €5,000 FEC rejection penalties?

It checks mandatory column schemas, encoding/format rules, unbalanced EcritureNum entries, missing dates, and numbering gaps prior to audit delivery.

Are uploaded FEC ledgers retained or logged?

Never. All validation runs statelessly in memory with zero retention. Use synthetic data on the free endpoint or request a self-hosted VPC license for live client ledgers.

Running Production Client Data? Self-Host Inside Your Own VPC

Accounting firms, fintechs, and customs/ESG platforms can license AGOS as a private Cloudflare Worker or Docker container so zero client tax, banking, or payroll files ever leave your infrastructure — or run managed batch jobs on Apify Store.

Direct commercial, privacy, or self-hosted VPC inquiries: apgenosys@gmail.com (or via Glama Discussions).

Related European Accounting & Tax Tools

German DATEV EXTF Buchungsstapel Validator

German DATEV EXTF v700 Buchungsstapel CSV validator & deterministic auto-fixer (SKR03/SKR04, BU-Schlüssel, DDMM dates).

Italian FatturaPA & SdI XML Validator

Italian FatturaPA v1.2.2 / SdI v1.9.1 validator: P.IVA/CF checksums, Natura vs IVA (00400), math & €2.00 Bollo virtuale.

Belgian CODA v2.8 & Belcotax Validator

Belgian Febelfin CODA v2.8 128-char generator (from camt.053 or transactions, OGM Mod-97) & Belcotax 281.50 XML validator.

Swiss ISO 20022 CAMT XML Parser & Reconciler

Swiss ISO 20022 camt.053/054 parser with Mod-10 QRR, IBAN Mod-97, and 3-tier open invoice reconciliation.