FinoltoAccounting that makes every day easier

How to Create an E-Invoice Step by Step

A structured e-invoice is created from ordinary invoice data: correctly completed details, lines and VAT are converted into an XML file in UBL 2.1 format conforming to PEPPOL BIS Billing 3.0, then validated and sent to the buyer. A PDF sent by email is not an e-invoice.

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.

How does creating an e-invoice differ from an ordinary invoice?

In terms of data, an e-invoice is the same invoice: number, date, seller, buyer, lines, VAT and totals. The difference is that each data element is entered in its own field in a machine-readable XML file, which the recipient's software reads without retyping or text recognition. That is why an e-invoice cannot practically be “drawn” in a Word or Excel file: it is generated by accounting or invoicing software that can produce XML.

The structure used in Latvia is UBL 2.1 syntax with the PEPPOL BIS Billing 3.0 specification, which is based on the European standard EN 16931. A human-readable PDF copy can be prepared alongside, but legally and technically the e-invoice is the XML file. For a fuller overview, see e-invoice format: UBL and PEPPOL.

How to create an e-invoice: 7 steps

The sequence is the same whatever software you use. The more mistakes you eliminate in the first steps, the fewer problems you will have at validation and sending.

  1. Prepare the core dataThe buyer's name, registration number, VAT number (if any) and address; your own details and bank account. You can check a Latvian company's data with the Register of Enterprises and the VID register of VAT payers.
  2. Create the invoice with the correct VAT ratesFor each line, state the quantity, unit of measure, price excluding VAT and the rate. If VAT is not charged (0%, reverse charge, exemption), a reason must be given.
  3. Enter the buyer's electronic addressTechnically, an e-invoice needs a buyer identifier, such as a PEPPOL ID or an e-address. Without it, the invoice does not know where to be delivered.
  4. Generate the XMLThe software converts the invoice data into a UBL 2.1 Invoice file (or CreditNote for a credit note) conforming to PEPPOL BIS Billing 3.0.
  5. Validate the XML before sendingThe file has to be checked against the XSD schema and the business rules (EN 16931 and PEPPOL). Validation finds missing fields before the recipient or VID rejects the document.
  6. Send it to the buyer through the chosen channelThe e-address, a PEPPOL access point, an operator or email. If the buyer is a public body, also make sure the data is submitted to VID within five working days.
  7. Save the XML that was sentKeep the exact file that was sent together with your other accounting documents, rather than a version regenerated later.

What data should you prepare before creating an e-invoice?

Most e-invoice errors arise not in generating the XML but from incomplete core data. Go through this list before the first invoice to each new customer.

DataWhy it is needed in an e-invoice
Invoice number and dateA unique number; the date also determines the VAT period
Seller detailsName, registration and VAT number, address, bank account for payment
Buyer detailsName, registration and VAT number, address; must match the register data
Buyer e-address or PEPPOL IDNeeded for delivery; must be stated technically in the e-invoice fields
LinesDescription, quantity, unit of measure, price excluding VAT, VAT rate
VAT category and reasonStandard rate, 0%, reverse charge or not subject to VAT; if there is no VAT, the reason must be stated
Payment informationDue date, account number, payment purpose

How do you find the buyer's e-address and PEPPOL identifier?

In the PEPPOL network a buyer is found by a participant identifier, made up of a scheme code and a value. For a Latvian company the identifier is usually built from the VAT number or the registration number: a VAT number corresponds to scheme 9939 and a registration number to scheme 0218. For a foreign buyer, the identifier has to be obtained from the buyer; it must not be guessed.

If the buyer uses the official e-address or an operator, ask for the exact address or identifier and save it on the partner record. That way later invoices are addressed with no extra action. For more on channels, see e-invoice delivery channels.

Example: how ordinary invoice data becomes an e-invoice

An illustrative invoice No. 2026-0147 dated 10 November 2026 (companies and amounts are fictitious): website development 1 × €600.00 and maintenance 3 × €50.00, both lines at 21% VAT. Amount excluding VAT: 600.00 + 150.00 = €750.00; VAT at 21% = €157.50; total payable €907.50.

In an e-invoice the same figures are split across fields. The table below shows how the invoice elements map to e-invoice data; for an invoice template, see invoice template and required details.

On the invoiceIn the e-invoice (logical field)
Invoice No. 2026-0147Invoice identifier; document type: Invoice
10/11/2026Issue date
SIA “Piemērs”Seller (name, registration and VAT number, address)
SIA “Klients”Buyer, including the electronic address (for example scheme 9939 or 0218)
2 linesTwo invoice lines with quantity, price and VAT category
VAT 21% = €157.50VAT summary by rate: taxable amount €750.00, tax €157.50
Total payable €907.50Amount due; must match the lines and the VAT amount

What mistakes are most common when creating an e-invoice?

  • Treating a PDF sent by email as an e-invoice.
  • The buyer's e-address or PEPPOL identifier is missing or entered incorrectly.
  • Totals and VAT do not match the calculation from the lines; rounding differences have to be handled so that the lines add up to the totals.
  • The wrong VAT category for 0% or reverse-charge transactions.
  • No reason given for a VAT exemption or for not charging VAT.
  • The e-invoice is not validated before sending, so a mistake is found only after the recipient objects.
  • After sending, the file is “corrected” instead of a credit note being issued; for more, see e-invoice errors and credit notes.

How do you create an e-invoice in Finolto?

Finolto creates an e-invoice from an outgoing invoice that has already been issued: it is prepared in UBL 2.1 format conforming to PEPPOL BIS Billing 3.0. The e-invoice is generated from the same figures that the printed or PDF invoice uses, so the file and the paper version cannot show different amounts. Before sending, the software shows what data the invoice still lacks, such as an electronic address or an exemption reason, and does not send an incomplete invoice.

For a detailed description, see how Finolto creates e-invoices. The validation principles are described in e-invoice checks and validation.

When is creating an e-invoice mandatory?

Since 1 January 2025, a business that invoices a budget institution must issue a structured e-invoice. From 1 January 2026, e-invoice data in public-sector transactions must be submitted to VID. Between businesses (B2B), use becomes mandatory from 1 January 2028 and is voluntary until then.

This is general information, not legal advice, and the deadlines have already been changed once. Check the current rules on the VID website, the Ministry of Finance website and likumi.lv. See also the article e-invoices in Latvia.

Frequently asked questions

Can I create an e-invoice in Word or Excel?

Practically speaking, no. An e-invoice is an XML file with defined fields, and it is generated by accounting or invoicing software. Word or Excel can produce a human-readable invoice template, but that is not a structured e-invoice. If you issue only a few invoices and your customers do not ask for e-invoices, you can carry on with PDF until 2028, provided you are not a public-sector supplier.

Read the full answer →
How long does it take to create an e-invoice?

If your customer data and VAT rates are in order, creating the invoice in the software takes as long as issuing an ordinary invoice, because the XML is generated from the same data. The first invoice to a new customer takes longer if you have to find out their e-address or PEPPOL identifier. That is why it is advisable to save this data on the partner record.

Read the full answer →
Why must an e-invoice state the buyer's e-address?

The e-address or PEPPOL identifier determines where the invoice is delivered and which recipient it is addressed to. Without it, the invoice cannot be sent automatically through any of the structured channels, and only email remains. That is why the buyer's address must be stated technically in an e-invoice, not just as text in the invoice header.

Read the full answer →
Can I create an e-invoice from an invoice that has already been issued?

Yes. Many programs, including Finolto, generate the e-invoice from an outgoing invoice that has already been issued, so the data does not have to be entered twice. What matters is that the invoice contains all the necessary data, such as the buyer's e-address and the exemption reason where VAT is not charged; otherwise the file will not pass validation.

Read the full answer →
What do I need to do after creating an e-invoice?

Validate the XML, send it to the buyer through the chosen channel and save the file that was sent. If the invoice is issued to a budget institution, the data must be submitted to VID once, no later than five working days after the day of sending; the channel can do this automatically. Check the exact procedure in the regulations and on the VID website.

Read the full answer →
View all questions →

Related guides