ZUGFeRD / Factur-X
POST /wp-json/api/v2/create-zugferd generates a ZUGFeRD/Factur-X bundle from the shared POP payload.
Output
Always JSON, with three base64 attachments:
attachments.pdf— visual PDFattachments.xml— EN16931 CII XMLattachments.hybrid_pdf— hybrid PDF with embedded XML
Good to know
- no outbound delivery (webhook/integrations) exists on this route
- supports payload-only generation via RapidAPI (
X-RapidAPI-Keywithout a POPX-API-Key); in this mode the payload must contain every required field explicitly - in sandbox,
invoice_numberis prefixed withSANDBOX- - supported fiscal variants: standard VAT, reverse charge, intra-EU 0%, export 0%, exempt, general outside-scope; not supported: OSS, margin scheme, split payment
Consumer-side verification
Use validation.hybrid_pdf.has_embedded_xml and validation.hybrid_pdf.embedded_xml_matches in the
response as an immediate check that the XML is correctly embedded in the hybrid PDF.