FinoltoAccounting that makes every day easier

E-Invoice Format: UBL 2.1, PEPPOL BIS 3.0 and EN 16931

In Latvia, an e-invoice submitted to VID is an XML file in UBL 2.1 syntax with the PEPPOL BIS Billing 3.0 specification, and it is based on the European standard EN 16931. A PDF as the only document does not meet e-invoice requirements, but a human-readable PDF copy may be attached alongside.

Updated: · General information, not legal advice

Prepare e-invoices in the software

Finolto creates a structured e-invoice (UBL 2.1, PEPPOL BIS 3.0), checks it before sending and delivers it to the buyer through the chosen channel. Try it with no commitment.

What format must an e-invoice be in Latvia?

The foundation is the European standard EN 16931. The XML structure submitted to VID uses UBL 2.1 syntax with the PEPPOL BIS Billing 3.0 specification. This means your accounting software must be able to create an XML file in exactly this structure, not just a “pretty” PDF.

If you use another format, such as a PDF alone or non-conforming XML, the invoice does not meet e-invoice requirements. This page is general information; check the current technical requirements on the VID website.

The choice of format determines whether your invoice will be accepted at all. If the XML does not comply with the UBL 2.1 or PEPPOL BIS 3.0 rules, the recipient's system or VID may reject it, and the invoice then has to be reissued or corrected with a credit note. An accountant does not need to know XML by heart, but does need to know which data is mandatory and where errors most often occur.

The simplest test: does the software tell you what is still missing from an invoice before it is sent? If so, the technical side of the format is mostly the software's job, but you need to watch the data: customer details, VAT rates and addresses.

What do EN 16931, UBL and PEPPOL BIS mean?

These three abbreviations are often mixed up, but each has its own role:

In practice you do not have to write XML by hand. What matters is choosing software that builds this format itself and validates it before sending, and keeping your basic data correct: customer details, VAT rates and the bank account.

NameWhat it isIn simple terms
EN 16931The European standard for the e-invoice data modelWhat an e-invoice can and must contain and what these fields mean
UBL 2.1The XML syntax in which the data is writtenWhich XML “language” the invoice is written in
PEPPOL BIS Billing 3.0A specification for using EN 16931 in practice on the PEPPOL networkThe additional rules and business checks that must be followed

What does the structure of a UBL e-invoice look like?

A UBL invoice is a single XML document. The root element of an ordinary invoice is Invoice, and for a credit note it is CreditNote. Below are the typical blocks, which correspond to the parts of an ordinary invoice that you already see:

Part of the invoiceWhat it contains
HeaderInvoice number, issue date, payment due date, currency, document type
SellerName, registration number, VAT number, address, electronic address
BuyerThe same details for the buyer, including the buyer's electronic address
Payment detailsPayment method, bank account number, payment reference
VAT summaryA separate row for each VAT category and rate
TotalsAmount excluding VAT, VAT amount, amount payable
LinesFor each line: name, quantity, unit of measure, unit price, VAT category and rate

What is a PEPPOL identifier and how is it formed?

An e-invoice must also state a technical address for the buyer, such as a PEPPOL identifier or an e-address. A PEPPOL identifier consists of a scheme code and a value. For a Latvian company it is usually formed from the VAT number or the registration number: the VAT number corresponds to scheme 9939, and the registration number to scheme 0218.

In practice: if your customer is an SIA with the VAT number LV40000000001, its identifier on the PEPPOL network would be scheme 9939 with this value. For a foreign buyer, the identifier must be entered by a person; it must not be guessed. The numbers here are fictitious. For delivery channels, see e-invoice delivery channels.

How is VAT shown in an e-invoice?

The invoice lines and the VAT summary must state a VAT category, and it must match the rates used on the invoice. In Latvia you need to distinguish the standard rate, 0%, reverse charge and non-taxable transactions. When VAT is not charged in full, a justification must also be given.

Example: on an invoice with 21% VAT on a base of €750.00, the VAT summary will have one row: base €750.00, rate 21%, VAT amount €157.50. If the invoice has two different rates, the VAT summary will have two rows. For choosing rates, see the VAT rates overview.

  • The totals must match the line amounts: if the amounts do not agree, validation will catch it.
  • A line amount is quantity multiplied by price; the VAT amount is calculated from the VAT base by rate.
  • If a line has no VAT, a justification is required: 0%, reverse charge and exemption must all be justified.

Why must the XML be validated before sending?

Before sending, the XML must be validated against the XSD schema and the business rules (EN 16931 and PEPPOL). Schema validation tells you whether the file is built correctly, while rule validation tells you whether the data in it is logically correct, for example whether the amounts agree. It can catch missing fields before VID rejects the document.

For more on validation: E-invoice checks and validation.

How does Finolto handle the format?

Finolto can prepare outgoing invoices as a UBL 2.1 Invoice or CreditNote conforming to PEPPOL BIS Billing 3.0 (EN 16931). Line amounts are split down to the cent so that the lines add up to the totals, without changing the saved amounts. Finolto does not support other formats: only UBL 2.1 / PEPPOL BIS 3.0.

How does an invoice reach the buyer on the PEPPOL network?

PEPPOL is an international e-invoice exchange network in which an invoice travels from the sender's access point to the recipient's access point. The buyer is found by their PEPPOL identifier. Operators are companies that provide e-invoice sending and receiving and can also take over submission to VID.

The official e-address is a state-provided channel available in Latvia to businesses and institutions; when you use it, the data is submitted to VID automatically. The format is the same in all these channels; only the delivery route differs.

Can a PDF be attached to an e-invoice, and what are the most common format errors?

Yes. A human-readable PDF copy can be prepared alongside. In some systems the PDF is embedded in the XML file itself as an attachment. Important: VID receives the e-invoice without attachments, so the content of attachments must not be the only source of the invoice data.

In Finolto, the XML can carry the invoice PDF inside it if the file does not exceed 10 MB; if it is larger, the PDF is sent as a separate attachment.

In practice, format errors are almost always data errors rather than technical ones: a missing buyer address, a wrong VAT category or amounts that do not agree. If the software shows what is missing before sending, such errors can be fixed in a minute.

  • An incorrect or missing buyer address (e-address or PEPPOL ID).
  • Totals and VAT that do not match the calculation from the line amounts.
  • An incorrect VAT category for 0% or reverse charge transactions.
  • No justification for a VAT exemption.
  • The XML was not validated before sending, so the error is discovered only after rejection.

Frequently asked questions

Does a PDF invoice meet the e-invoice format?

No. A PDF as the only document does not meet e-invoice requirements. A structured e-invoice must be an XML file in UBL 2.1 syntax conforming to PEPPOL BIS Billing 3.0. A PDF can be attached alongside as a human-readable copy.

Read the full answer →
What is PEPPOL?

PEPPOL is an international e-invoice exchange network in which an invoice travels from the sender's access point to the recipient's access point. The buyer is found by their PEPPOL identifier. For a Latvian company it is usually formed from the VAT number or the registration number.

Read the full answer →
What is the PEPPOL ID of a Latvian company?

A PEPPOL ID consists of a scheme code and a value. A Latvian VAT number corresponds to scheme 9939, and a registration number to scheme 0218. Before sending, check whether the company is on the PEPPOL network and which identifier it uses.

Read the full answer →
Can I use an XML format other than UBL?

The structure submitted to VID is in UBL 2.1 syntax with PEPPOL BIS Billing 3.0. For other formats or exceptions, check the current rules on the VID website or likumi.lv.

Read the full answer →
How do I know my XML is correct?

Validate it against the XSD schema and the business rules (EN 16931 and PEPPOL). If the software does not perform validation or cannot do so, that is not the same as “passed”. It is good if the software saves the validation result together with the specific XML version.

Read the full answer →
Does an e-invoice have to state the reason for a VAT exemption?

Yes, if VAT is not charged: 0%, reverse charge or an exemption must be justified. The VAT category must match the rates used on the invoice. An incorrect VAT category and a missing justification are common e-invoice errors.

Read the full answer →
View all questions →

Related guides