Polish KSeF FA(2)/FA(3) E-Invoice Parser API
ksef_invoice_parserParse Polish KSeF FA(2) and FA(3) XML e-invoices into structured JSON with seller and buyer NIP details, invoice numbers, issue and sale dates, VAT rate breakdowns, net/VAT/gross totals, line items and arithmetic sanity checks. XXE-safe deterministic XML parsing, 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.005/call via x402 at https://radarbg.com/x402/ksef-invoice-parser.
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": {
"limit": 50,
"content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Faktura xmlns=\"http://crd.gov.pl/wzor/2025/06/25/13775/\"><Naglowek><KodFormularza kodSystemowy=\"FA (3)\" wersjaSchemy=\"1-0E\">FA</KodFormularza><WariantFormularza>3</WariantFormularza><DataWytworzeniaFa>2026-11-04T09:00:00Z</DataWytworzeniaFa></Naglowek><Podmiot1><DaneIdentyfikacyjne><NIP>5260001246</NIP><Nazwa>Demo Sp. z o.o.</Nazwa></DaneIdentyfikacyjne><Adres><KodKraju>PL</KodKraju><AdresL1>ul. Prosta 10, Warszawa</AdresL1></Adres></Podmiot1><Podmiot2><DaneIdentyfikacyjne><NIP>6340123456</NIP><Nazwa>Klient SA</Nazwa></DaneIdentyfikacyjne><Adres><KodKraju>PL</KodKraju><AdresL1>ul. Rynek 1, Krakow</AdresL1></Adres></Podmiot2><Fa><KodWaluty>PLN</KodWaluty><P_1>2026-11-04</P_1><P_2>FV/2026/11/0042</P_2><P_6>2026-11-03</P_6><P_13_1>1000.00</P_13_1><P_14_1>230.00</P_14_1><P_15>1230.00</P_15><RodzajFaktury>VAT</RodzajFaktury><FaWiersz><NrWierszaFa>1</NrWierszaFa><P_7>Consulting Services</P_7><P_8A>hrs</P_8A><P_8B>10</P_8B><P_9A>100.00</P_9A><P_11>1000.00</P_11><P_12>23</P_12></FaWiersz></Fa></Faktura>"
},
"name": "ksef_invoice_parser"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of invoice line items to return (1-2000). | |
| content | No | Raw KSeF FA(2) or FA(3) XML invoice string. Provide either content or fileBase64. | |
| fileName | No | Optional original XML filename (used to detect KSeF reference number if present). | |
| fileBase64 | No | Base64-encoded KSeF XML file (alternative to content, max 15 MB). |