Portuguese ATCUD Invoice QR Reader API
atcud_qr_readerDecode and validate Portuguese fiscal invoice QR codes (ATCUD format) from raw QR strings, PDF invoices, or images into structured JSON with seller/buyer NIFs, ATCUD code, document type, issue date, VAT bases, and gross totals. Deterministic offline decoding, 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/atcud-qr-reader.
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": {
"qrText": "A:509876544*B:501234560*C:PT*D:FT*E:N*F:20260415*G:FT 2026/42*H:CSDF7T5H-42*I1:PT*I7:1000.00*I8:230.00*N:230.00*O:1230.00*Q:Ab12*R:1234"
},
"name": "atcud_qr_reader"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum QR codes decoded from a multi-page PDF (1-200). | |
| qrText | No | Raw Portuguese fiscal QR payload string (A:...*B:...*H:...). Provide qrText or fileBase64. | |
| fileName | No | Optional original filename. | |
| fileBase64 | No | Base64-encoded PDF or image (PNG/JPEG) containing a Portuguese invoice QR code (max 15 MB). |