E-invoicing API for Germany and the EU

Check UBL and CII invoice XML, generate XRechnung UBL attachments, and process incoming invoice emails through the API.

Check and send invoice XML

XML checks for UBL and CII

Detect invoice format, check XML well-formedness and required fields, and receive structured errors and warnings. These built-in checks are not full XSD/Schematron validation.

Send e-invoices by email

Generate XRechnung UBL from structured invoice data and attach the XML to an email. Email delivery is separate from the recipient accepting or paying an invoice.

Receive and parse inbound invoices

Route incoming invoice messages into your application using configured inbound addresses and webhooks. Review supported parsing formats and attachment handling in the invoice docs.

EU/EEA-hosted primary service data

Primary invoice service data is hosted in the EU/EEA. Limited infrastructure metadata may be processed by providers under appropriate transfer safeguards.

Validation limits

A passing preflight result does not establish standards conformance, tax compliance, or buyer acceptance. Use the appropriate official validator and the recipient’s submission rules.

Connect your billing system

Call the REST endpoint from your billing system with a server-side API key. Handle valid: false even when the HTTP response is 200.

Check an invoice XML file.

Submit an XML invoice and inspect the errors and warnings returned by Postscale’s built-in checks.

Read the invoice validation guide
cURL: validate an XRechnung file ready
curl -X POST https://api.postscale.io/v1/invoices/validate \
  -H "Authorization: Bearer $POSTSCALE_API_KEY" \
  -H "Content-Type: application/xml" \
  --data-binary @invoice.xml

# Response
{
  "valid": true,
  "format": "xrechnung-ubl",
  "standard": "EN 16931",
  "errors": [],
  "warnings": []
}

FAQ

What is XRechnung and how does it relate to E-Rechnung?

E-Rechnung refers to electronic invoicing. XRechnung is a German specification based on EN 16931, with UBL and CII syntaxes. Check your buyer’s requirements separately from the API’s built-in preflight result.

Do you also support ZUGFeRD and Factur-X?

ZUGFeRD and Factur-X combine PDF and invoice XML. The validation endpoint detects PDFs but does not validate their embedded XML; use XML for preflight checks. The invoice-send endpoint generates UBL XML attachments, not interchangeable PDF formats.

Is the data processed in the EU?

Postscale is operated by DNScale OÜ (Estonia, EU). Primary invoice service data is hosted in the EU/EEA, with appropriate transfer safeguards for limited infrastructure metadata where required. We sign a standard GDPR DPA.

Can I test before committing?

Use the free browser validator or a test API key for XML preflight. Test keys do not send real email. Live invoice sending is separate and requires account approval and a verified sending domain; review the current setup and plan requirements.

Add invoice checks to your app.

Try the XML checking tool or read the API documentation.

Create a free account