# SpecGrid EU e-Invoicing & Regulatory Compliance API > Deterministic, zero-retention B2B REST API running on Cloudflare Workers for European e-invoicing and regulatory compliance: Spanish AEAT VeriFactu SHA-256 chaining & Tributary QR (Orden HAC/1177/2024), EN 16931 / Peppol BIS 3.0 UBL 2.1 & Spanish Facturae 3.2.2 XML auditing and JSON-to-XML generation, EPC069-12 v002 SEPA Payment QRs (GiroCode), EU GPSR (Regulation 2023/988) compliance packs, and IBAN / EU-27 VAT / Spanish NIF-CIF-NIE validation. ## Base URL & Machine-Readable Specs - Production API Base: https://eu.specgrid-api.workers.dev - Remote MCP Server (Streamable HTTP JSON-RPC 2.0): https://eu.specgrid-api.workers.dev/mcp - MCP Server Setup Guide (Cursor / Claude / Windsurf): https://eu.specgrid-api.workers.dev/mcp-server-eu-einvoicing-verifactu/ - OpenAPI 3.0.3 Spec (CORS enabled): https://eu.specgrid-api.workers.dev/openapi.json - Health Check: https://eu.specgrid-api.workers.dev/api/v1/health - Postman Collection v2.1: https://eu.specgrid-api.workers.dev/downloads/specgrid-eu-compliance.postman_collection.json - n8n Importable Workflow: https://eu.specgrid-api.workers.dev/downloads/specgrid-verifactu-sepa-n8n.json - Make.com Importable Blueprint: https://eu.specgrid-api.workers.dev/downloads/specgrid-verifactu-sepa-make.json - Official Open-Source SDK & Templates (GitHub MIT): https://github.com/SpecGrid-tools/specgrid-eu-compliance-sdk - Instant 1-Command Stdio MCP Server (npx): npx -y specgrid-eu-compliance - Node.js / TypeScript SDK (npm): npm i specgrid-eu-compliance (https://www.npmjs.com/package/specgrid-eu-compliance) - Python 3 SDK (PyPI): pip install specgrid-eu-compliance (https://pypi.org/project/specgrid-eu-compliance/) - Full Technical Reference: https://eu.specgrid-api.workers.dev/llms-full.txt ## Endpoints (8 Deterministic Routes) - [GET /api/v1/health](https://eu.specgrid-api.workers.dev/api/v1/health): Service status & supported regulatory standards. - [POST /api/v1/verifactu/fingerprint](https://eu.specgrid-api.workers.dev/verifactu-api/): Computes AEAT Orden HAC/1177/2024 8-field canonical UTF-8 payload, 64-char uppercase SHA-256 Huella, official ValidarQR URL (prod/sandbox), and print-ready framed SVG QR. - [POST /api/v1/verifactu/verify-chain](https://eu.specgrid-api.workers.dev/es/como-calcular-huella-sha256-verifactu/): Audits an ordered batch of chained VeriFactu records for hash integrity and continuity. - [POST /api/v1/einvoice/validate](https://eu.specgrid-api.workers.dev/peppol-facturae-validator-api/): Audits EN 16931 / Peppol BIS 3.0 UBL 2.1 (XRechnung) and Spanish Facturae 3.2.2 XML against mandatory fields, BR-CO-10..16 cent-exact totals, and XXE threats. - [POST /api/v1/einvoice/generate](https://eu.specgrid-api.workers.dev/json-to-peppol-verifactu-xml-api/): Converts structured JSON invoices into self-audited Peppol UBL 2.1 XML or AEAT VeriFactu XML with embedded SHA-256 Huella and QR SVG. - [POST /api/v1/sepa/epc-qr](https://eu.specgrid-api.workers.dev/sepa-epc-qr-api/): Generates EPC069-12 v002 (BCD/002/1/SCT) SEPA Instant Payment QR payloads and ECL-M SVG matrices with ISO 13616 IBAN Mod-97 verification. - [POST /api/v1/tax-id/validate](https://eu.specgrid-api.workers.dev/es/validador-iban-nif-cif-api/): Validates Spanish DNI/NIE/CIF check digits, EU-27 VAT formats, and ISO 13616 IBAN Mod-97. - [POST /api/v1/gpsr/compliance-pack](https://eu.specgrid-api.workers.dev/eu-gpsr-qr-api/): Validates EU Regulation 2023/988 manufacturer & EU-27 Responsible Person data, blocks tracking query params (utm_*, fbclid, gclid), and emits a safety QR SVG. ## Authentication & Pricing (Zero Fixed Setup, MoR Invoicing) - Direct Polar.sh Subscriptions (automated EU VAT invoice + instant SPECGRID-... Bearer key): - Starter ($15/mo, 5,000 req/mo): https://buy.polar.sh/polar_cl_9MGwGCdbGGuIjdfeMwOUN8Mql2VCSeF5QCCYG13IOw1 - Growth ($39/mo, 50,000 req/mo): https://buy.polar.sh/polar_cl_gD24vOFHisnbWWEXdGvjZvX6tUM5vT9F9ZhWr35jzc9 - RapidAPI Hub Marketplace (50 free Basic req/mo, $15/mo Pro, $39/mo Ultra): - https://rapidapi.com/specgrid-specgrid-default/api/specgrid-eu-e-invoicing-verifactu-sepa-qr - Zero Payload Retention: Synchronous in-memory processing only; submitted invoices and tax IDs are never stored or logged.