{"openapi":"3.0.3","info":{"title":"SpecGrid EU e-Invoicing & Regulatory Compliance API","version":"1.6.2","description":"Deterministic B2B REST API for European e-invoicing and regulatory compliance: Spanish AEAT VeriFactu SHA-256 hash chaining & Tributary QR generation (Orden HAC/1177/2024), EN 16931 Peppol BIS 3.0 UBL & Facturae 3.2.2 XML auditing and JSON-to-XML generation, EPC069-12 v002 SEPA Credit Transfer Payment QRs, EU GPSR (Regulation 2023/988) product safety packs, and IBAN / EU VAT / Spanish NIF-CIF-NIE checksum verification. Zero payload retention.","termsOfService":"https://eu.specgrid-api.workers.dev/terms/","contact":{"name":"SpecGrid SDK, Issues & Subscriptions","url":"https://github.com/SpecGrid-tools/specgrid-eu-compliance-sdk"},"license":{"name":"Commercial API License (Polar.sh / RapidAPI Hub)","url":"https://eu.specgrid-api.workers.dev/terms/"},"x-logo":{"url":"https://eu.specgrid-api.workers.dev/assets/specgrid-logo.png","altText":"SpecGrid Compliance API Logo"}},"externalDocs":{"description":"Official TypeScript/Python SDK, n8n Workflow, Make.com Blueprint, Postman Collection & llms.txt","url":"https://github.com/SpecGrid-tools/specgrid-eu-compliance-sdk"},"servers":[{"url":"https://eu.specgrid-api.workers.dev","description":"SpecGrid Cloudflare Edge Production Gateway"}],"tags":[{"name":"Health","description":"Service availability and supported compliance standards"},{"name":"VeriFactu (Spain AEAT)","description":"RD 1007/2023 & Orden HAC/1177/2024 SHA-256 chaining and Tributary QR generation"},{"name":"e-Invoicing (EN 16931 / Peppol / Facturae)","description":"XML auditing (BR-CO-10..16) and deterministic JSON-to-XML invoice generation"},{"name":"SEPA Payments","description":"European Payments Council EPC069-12 v002 Credit Transfer QR payloads and SVGs"},{"name":"Tax & Banking Identifiers","description":"Spanish DNI/NIE/CIF, EU-27 VAT format, and ISO 13616 IBAN Modulo-97 checks"},{"name":"EU Product Safety (GPSR)","description":"Regulation (EU) 2023/988 manufacturer & EU Responsible Person validation and tracking-free QR packs"}],"components":{"securitySchemes":{"PolarBearerAuth":{"type":"http","scheme":"bearer","description":"Direct Polar.sh subscription license key (prefix SPECGRID-...)"},"RapidApiProxyAuth":{"type":"apiKey","in":"header","name":"X-RapidAPI-Key","description":"RapidAPI Hub marketplace subscription key"}}},"security":[{"PolarBearerAuth":[]},{"RapidApiProxyAuth":[]}],"paths":{"/api/v1/health":{"get":{"tags":["Health"],"summary":"API Health & Standards Version Check","operationId":"getHealth","security":[],"responses":{"200":{"description":"Healthy service metadata and supported regulatory standards"}}}},"/api/v1/tax-id/validate":{"post":{"tags":["Tax & Banking Identifiers"],"summary":"Validate IBAN (ISO 13616 Mod-97), EU VAT & Spanish NIF/NIE/CIF Checksum","operationId":"validateTaxIdAndIban","requestBody":{"required":true,"content":{"application/json":{"example":{"spanishTaxId":"B85905495","euVat":"ESB85905495","iban":"ES9121000418450200051332"}}}},"responses":{"200":{"description":"Deterministic checksum results"}}}},"/api/v1/verifactu/fingerprint":{"post":{"tags":["VeriFactu (Spain AEAT)"],"summary":"Generate AEAT VeriFactu SHA-256 Huella & Official ValidarQR URL + SVG","operationId":"computeVerifactuFingerprint","requestBody":{"required":true,"content":{"application/json":{"example":{"issuerNif":"89890001K","seriesNumber":"INV-2026/0001","issueDate":"28-11-2026","invoiceType":"F1","taxAmount":21,"totalAmount":121,"previousHash":"","generationTimestamp":"2026-11-28T20:00:00+01:00","verifactuMode":true,"environment":"production"}}}},"responses":{"200":{"description":"Canonical string, 64-char SHA-256 Huella, AEAT URL, and SVG QR"}}}},"/api/v1/verifactu/verify-chain":{"post":{"tags":["VeriFactu (Spain AEAT)"],"summary":"Audit an Ordered Sequence of Chained AEAT VeriFactu Records","operationId":"verifyVerifactuChain","requestBody":{"required":true,"content":{"application/json":{"example":{"records":[{"issuerNif":"89890001K","seriesNumber":"INV-2026/0001","issueDate":"28-11-2026","invoiceType":"F1","taxAmount":21,"totalAmount":121,"previousHash":"","generationTimestamp":"2026-11-28T20:00:00+01:00","expectedHash":"FE2D81DACEE3C4D4236278A3A2972FDE6F48AA5E9F28C63656029C34D2D78437"},{"issuerNif":"89890001K","seriesNumber":"INV-2026/0002","issueDate":"28-11-2026","invoiceType":"F1","taxAmount":42,"totalAmount":242,"previousHash":"FE2D81DACEE3C4D4236278A3A2972FDE6F48AA5E9F28C63656029C34D2D78437","generationTimestamp":"2026-11-28T20:05:00+01:00","expectedHash":"1C3CC69DDCA84CB35E7FD40A4CC7DF58F9E356AB9C2658CACACB1509169F4CC2"}]}}}},"responses":{"200":{"description":"Cryptographic chain continuity audit report"}}}},"/api/v1/sepa/epc-qr":{"post":{"tags":["SEPA Payments"],"summary":"Generate Official EPC069-12 v002 European SEPA Instant Credit Transfer QR","operationId":"generateSepaQr","requestBody":{"required":true,"content":{"application/json":{"example":{"beneficiaryName":"SpecGrid Industrial SL","iban":"DE89370400440532013000","amountEur":145.2,"remittanceText":"Invoice INV-2026-0042"}}}},"responses":{"200":{"description":"EPC069-12 payload and ECL-M SVG QR"}}}},"/api/v1/einvoice/validate":{"post":{"tags":["e-Invoicing (EN 16931 / Peppol / Facturae)"],"summary":"Audit Peppol BIS 3.0 / EN 16931 UBL 2.1 or Spanish Facturae 3.2.2 XML","operationId":"validateElectronicInvoice","requestBody":{"required":true,"content":{"application/json":{"example":{"xml":"<Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\" xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\" xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\"><cbc:CustomizationID>urn:cen.eu:en16931:2017</cbc:CustomizationID><cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID><cbc:ID>INV-100</cbc:ID><cbc:IssueDate>2026-11-28</cbc:IssueDate><cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode><cac:AccountingSupplierParty><cac:Party><cbc:EndpointID>ESB85905495</cbc:EndpointID><cac:PartyName><cbc:Name>SpecGrid SL</cbc:Name></cac:PartyName></cac:Party></cac:AccountingSupplierParty><cac:AccountingCustomerParty><cac:Party><cbc:EndpointID>DE123456789</cbc:EndpointID><cac:PartyName><cbc:Name>Buyer GmbH</cbc:Name></cac:PartyName></cac:Party></cac:AccountingCustomerParty><cac:TaxTotal><cbc:TaxAmount>21.00</cbc:TaxAmount></cac:TaxTotal><cac:LegalMonetaryTotal><cbc:LineExtensionAmount>100.00</cbc:LineExtensionAmount><cbc:TaxExclusiveAmount>100.00</cbc:TaxExclusiveAmount><cbc:TaxInclusiveAmount>121.00</cbc:TaxInclusiveAmount><cbc:PayableAmount>121.00</cbc:PayableAmount></cac:LegalMonetaryTotal><cac:InvoiceLine><cbc:ID>1</cbc:ID><cbc:LineExtensionAmount>100.00</cbc:LineExtensionAmount></cac:InvoiceLine></Invoice>"}}}},"responses":{"200":{"description":"Structured EN 16931 / Facturae validation report"}}}},"/api/v1/einvoice/generate":{"post":{"tags":["e-Invoicing (EN 16931 / Peppol / Facturae)"],"summary":"Generate Compliant Peppol BIS 3.0 UBL 2.1 XML or AEAT VeriFactu RegistroAlta XML + SHA-256 & QR from JSON","operationId":"generateElectronicInvoice","requestBody":{"required":true,"content":{"application/json":{"example":{"format":"verifactu_registro_alta","invoiceNumber":"INV-2026/0105","issueDate":"2026-11-28","currency":"EUR","supplier":{"name":"SpecGrid Systems SL","taxId":"B85905495","countryCode":"ES"},"customer":{"name":"Nordic Automation GmbH","taxId":"DE123456789","countryCode":"DE"},"lines":[{"description":"Compliance API Annual License","quantity":1,"unitPrice":100,"vatRate":21}]}}}},"responses":{"200":{"description":"Generated XML document, self-audit status, SHA-256 Huella, and QR SVG"}}}},"/api/v1/gpsr/compliance-pack":{"post":{"tags":["EU Product Safety (GPSR)"],"summary":"Validate & Generate EU GPSR (Regulation 2023/988) Product Safety Pack + Tracking-Free QR","operationId":"generateGpsrPack","requestBody":{"required":true,"content":{"application/json":{"example":{"productName":"Industrial Sensor Hub X4","modelOrSku":"SG-HUB-X4","batchOrSerial":"BATCH-2026-11","manufacturer":{"name":"SpecGrid Hardware Ltd","postalAddress":"14 Tech Park, Zurich 8005, CH","electronicAddress":"safety@example-brand.eu"},"euResponsiblePerson":{"name":"SpecGrid EU Compliance GmbH","countryCode":"DE","postalAddress":"Friedrichstrasse 114, 10117 Berlin, Germany","electronicAddress":"eu-rep@example-brand.eu"},"safetySheetUrl":"https://docs.example-brand.eu/gpsr/x4","warningsByLang":{"en":"Keep dry. Operating temperature 0-45C.","es":"Mantener seco. Temperatura de trabajo 0-45C."}}}}},"responses":{"200":{"description":"GPSR structured record and printable tracking-free SVG QR"}}}}}}