SAF-T Parser API - Audit File to JSON, Ledger Check
saft_parserParse SAF-T (Standard Audit File for Tax) XML from Portugal, Norway, Luxembourg, Poland, Lithuania and other EU/EEA countries into structured JSON: company and tax ID, fiscal period, customers, suppliers, chart of accounts, tax codes, general-ledger transactions, sales and purchase invoices. Verifies debit = credit and stated control totals and entry counts, and returns structured numeric totals (ledger debit/credit, sales net/VAT/gross) plus top customers from the full file. XXE-safe deterministic parsing, zero AI, nothing stored. Usable from AI agents via MCP. 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/saft-parser.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of rows to return per table (1-2000). | |
| content | No | Raw SAF-T XML string. Provide either content or fileBase64. | |
| fileName | No | Optional original XML filename. | |
| fileBase64 | No | Base64-encoded SAF-T XML file (alternative to content, max 15 MB). |