Mavri Get started

E-invoicing

What are UBL 2.1 and XRechnung exports?

A plain explanation of electronic invoice formats and what Mavri’s exports do and do not promise.

By Raktim Ranjit ·

Short answerUBL 2.1 and XRechnung are machine-readable invoice formats. Mavri can download both as XML for a finished invoice and tells you which required field is missing. It does not check that an invoice meets your country’s rules.

Why electronic invoices exist

A PDF is made for people to read. An electronic invoice is structured data, so accounting software or a public authority can read the numbers without retyping them. Several countries and sectors now require or encourage this, and the rules differ.

The two formats Mavri exports

  • UBL 2.1 is a widely used XML syntax for business documents. Mavri’s UBL export follows Peppol BIS 3.0.
  • XRechnung is a German standard for invoices to public bodies, also XML. Mavri exports XRechnung 3.0.

How to get one in Mavri

  1. Open an invoice.
  2. Choose UBL XML or XRechnung XML.
  3. If something required is missing, Mavri says which field, instead of producing a half-empty file.

Electronic invoices need more identity data than a PDF. In the guide’s words, add the country code, tax ID and e-invoice address to the business, and the address, tax ID and country code to the customer, plus a buyer reference if the customer requires one. In a test run on a bare invoice, Mavri also asked for a due date or payment terms and for the issuer’s email and phone. Through the API, the same problem shows up as a 422 einvoice_incomplete response that lists what is missing.

What an export does not do

Not a compliance checkMavri generates the files from your data. It does not validate them against a national authority, send them anywhere, or confirm that they satisfy your jurisdiction’s tax rules.
  • It does not transmit invoices over the Peppol network or to a government portal. You deliver the file yourself.
  • Whether a recipient accepts the file depends on their system and on your data being correct.
  • Before relying on e-invoices for a mandate, ask your tax adviser or the recipient what they require and test with their validator.

A sensible first run

Fill in the identity fields for one business and one customer, export both formats from a test invoice, and open the XML in the validator your recipient or country recommends. Fix anything it flags in your records, then repeat.

Sources

About the authorRaktim Ranjit created Mavri and leads the project at NodeDR Infotech Private Limited. See About.

More from the blog

Invoicing

Quote vs. invoice: when to use each

What separates a quote from an invoice, how they move through a job, and how Mavri turns one into the other.

Raktim Ranjit ·