PDF Generator API icon

PDF Generator API

Generate PDFs, manage templates, convert HTML/URLs to PDF, and perform PDF operations like watermarking, encryption, and optimization

E-Invoice → Create E-Invoice

AI-generated

Summary

Generate an EN 16931 e-invoice as UBL or CII XML by sending the invoice payload to PDF Generator API. The XML is attached to each output item as binary data named data.

Inputs

  • Invoice Data (required) — Peppol BIS Billing 3.0 UBL invoice payload as JSON. Use Get Schema for its structure.
  • Formatting Type — XML syntax: UBL (default) or CII.
  • Output — Choose Base64 (JSON), which returns API metadata and attaches decoded XML as binary, or File (Binary), which returns the XML inline as binary.
  • Additional Fields → File Name — Optional name for the attached XML file, without the .xml extension. Defaults to einvoice-ubl or einvoice-cii.

Output shape

One item per input item, containing JSON and binary data under data.

JSON includes success, filename, format, and API response metadata. Binary contains the generated XML with MIME type application/xml. With File output, JSON includes the filename, format, and file size.

Links

Discussion