An XML Schema Definition (XSD) checks the document structure and data types. Schematron evaluates business rules, such as whether invoice totals agree with the amounts on individual lines. The platform uses an XML schema validator and a Schematron engine to report what failed so you can correct the source invoice. Run the incorrect-total example to see a rule failure in practice.
Choose the right invoice format
UBL 2.1 and UN/CEFACT CII are XML formats for structured invoices. Peppol BIS Billing and PINT define how to use invoice data for specific networks and markets. Poland’s KSeF uses FA(3). A recipient or integration determines which format and profile the file needs.
Create a visual copy or a hybrid invoice
A rendered PDF lets a person read the invoice. A ZUGFeRD 2.5 or Factur-X 1.09 hybrid invoice pairs a readable PDF/A-3B document with embedded CII XML. A system that supports the relevant profile can read the embedded data, while the recipient can open the visible invoice with a PDF viewer. The CII-to-UBL converter can extract and map structured invoice data from a supported hybrid file.
Call the tools from an ERP or agent
Start with a sample file in the browser. For repeatable processing, call the relevant REST endpoint from your ERP or automation using an API credential. Agents can invoke supported operations through MCP, REST or the CLI. The integration guide covers setup, authorization and the operations available to an agent.
The MCP server uses Streamable HTTP. A connected agent can discover supported standards and look up Peppol participants. Send a Sorgera API token in the Authorization Bearer header to validate or convert an invoice. The OpenAPI specification describes REST request formats, and the authentication guide covers credentials.
Plan for validation and credit usage
Use the supported-fields matrix when mapping ERP records to an invoice profile. Validate the mapped file against the rules required by the receiving system. The product pricing page lists current credit costs for each operation.
Invoice processing flows
Standard invoice validation
The report comes from schema and business-rule checks. This path uses no language model.
XML or supported hybrid PDFThe validator reads the invoice and identifies its document profile.
Schema and business rulesXSD checks document structure. Applicable rules check values such as tax and line totals.
Validation reportThe result identifies failed rules and where to find them in the invoice.
Review and reviseUpdate the invoice in the source system and validate the new export.
Hybrid invoice conversion
For ZUGFeRD 2.5 or Factur-X 1.09, one PDF/A-3B file carries the visible invoice and its structured data.
Read the source invoiceUse the XML format accepted by the selected converter.
Prepare CII dataMap UBL to CII where required and apply the selected profile.
Render and embedGenerate the visible invoice and attach the CII XML inside the PDF/A-3B.
Return the hybrid invoiceOpen the PDF to review the invoice and use the profile validator to check its structured data.
AI Assistant inside the validator
The assistant starts after a user chooses to investigate a failed check.
Choose Analyze with AISign in and start the assistant from a failed Peppol or KSeF report.
Prepare the error contextThe browser masks supported fields and extracts the relevant XML. The service applies an additional masking step.
Get an explanationThe model receives selected error context and can explain findings or suggest changes.
Review and revalidateInspect changes and run the rule-based validator on the revised XML.
A customer’s agent using MCP
The customer’s agent calls the Sorgera tool. Sorgera runs the standard invoice operation and returns the result.
Choose an operationThe agent discovers tools and selects the right validator or converter for the file.
Send an authorized requestFor invoice operations, the agent host supplies a Sorgera API token to the MCP endpoint.
Run the product toolSorgera applies the requested check or conversion. Applicable operations use account credits.
Return a structured resultThe agent receives the validation or conversion result for the next step in the workflow.
xmllint WASM checks XML against XSD. SaxonJS runs applicable Schematron rule packs for the selected profile.
Conversion and rendering
UBL and CII mappings transform invoice fields into the output profile. The PDF pipeline uses pdfmake or Cloud Run rendering, depending on the tool. Hybrid ZUGFeRD and Factur-X outputs embed CII in PDF/A-3B.
Application, identity and data
Next.js on Netlify serves the application. Neon PostgreSQL stores account and operational data. The product supports role-based access, TOTP, API tokens and OAuth 2.0 client credentials.