From basket to e-invoice: CVR, EAN, credit and the right route through your systems

A web shop rarely sends the e-invoice itself. Its job is to collect the right details at checkout and hand them on, so the accounting system or ERP can invoice without anyone retyping. Here are the fields, the rules for credit and the routes an order can take in Denmark.

Last checked:

On this pageWhat this page covers
  1. This is not the e-invoice rulebook
  2. The checkout fields
  3. B2B checkout fields and how to check them
  4. Who may buy on account?
  5. From order to e-invoice: three routes

This is not the e-invoice rulebook

What an EAN number is, who must receive e-invoices and what changes with Nemhandel BIS 4 is covered at efaktura.best-choice.dk. This page is only about what a B2B shop must do so the invoice comes out right. We produce OIOUBL invoices in our own product, but we have never connected a client’s B2B shop to Nemhandel.

The checkout fields

B2B checkout fields and how to check them

FieldWhyCheckPitfall
CVR numberThe company is the customerModulus 11 and an exact-match lookupNearest company filled in for an unknown CVR
EAN number (GLN)Delivery address for the e-invoice13 digits, modulus-10 check digit, can it receive?Wrong department – invoice lands in the wrong place
Order reference / contactThe buyer’s accounts match the invoiceMandatory for public buyersContact/ID missing – invoice fails validation
PO numberThe buyer’s purchase orderFree text, stored on the orderLost between shop and accounting
P-numberDelivery site in large organisationsOptionalConfused with the CVR number
The checks are the ones we use or met while validating OIOUBL. OIOUBL element names from our own validation against the official rules.

Three of these checks we built ourselves:

  • CVR. Our own product soge.dk looks up a CVR number and returns name, address, VAT number and status. Since version 0.5.5 our WordPress plugin Lynbro Soge Lookup accepts only an exact CVR; before that an unknown number filled another company into the B2B form.
  • EAN. Our own product danadresse.dk has an endpoint that checks EAN with modulus 10 and CVR with modulus 11. In danadresse.dk’s own invoicing we also look up whether an EAN can receive, through the Peppol registry and the Nemhandel SMP, and the settings page warns when it cannot.
  • Reference. The customer’s EAN and invoice reference sit on the customer account and are written into the OIOUBL invoice.

Our CVR Checkout for WooCommerce (our own product, in development) brings CVR lookup, the modulus-11 check and optional EAN and P-number fields into checkout. It does not yet write orders into e-conomic, Dinero or Billy.

Who may buy on account?

Paying on invoice is the norm in B2B. The workwear shop we maintain invoices every order and has dropped card payment altogether. But credit is a decision, not a setting:

  • Approved buyers only. B2B for WooCommerce, for instance, limits “Pay on Account” to selected roles. Shopify has net terms and payment reminders on all B2B plans.
  • Credit limit. In B2BKing it lives in the Company Credit add-on included with the Pro licence. A limit is only as good as the figure you compare it with, and the open balance lives in accounting. Reading it from e-conomic, invoices must be read via remainder, or paid ones look open. From Dinero, API access needs Pro; a free organisation gets a 403.
  • Payment terms. Under the Danish Interest Act (renteloven), an agreed term between businesses cannot exceed 30 days unless the creditor expressly accepted a longer one and it is not unreasonable to the creditor. Towards public authorities the limit is 30 days. If a business customer pays late, you may claim a fixed compensation of 310 DKK. Reminder rules are covered at rykker.best-choice.dk.

From order to e-invoice: three routes

1. Shop → accounting system → Nemhandel. The usual route. The order with CVR, EAN and reference goes to the accounting system, which sends the e-invoice. Registered accounting systems must be able to send e-invoices and look the recipient up in the Nemhandel register. e-conomic includes electronic invoicing in all four packages, but open access to integrations starts at Plus. Dinero needs Pro or Total for integrations. The shop-to-accounting link is its own topic at integration.best-choice.dk.

2. Shop and invoicing in one system. Odoo 19 ships standard modules that produce OIOUBL and send and receive through Nemhandel via Odoo’s own connection. That only works if invoicing happens in Odoo too. We run Odoo 19 Community as our CRM but do not invoice from it.

3. Your own system. The shop produces the OIOUBL file itself. We did that in our own product: our first OIOUBL generator failed Erhvervsstyrelsen’s rules with 19 errors; after a rewrite it passed with 0, as did a new Peppol BIS 3 generator. Validation runs in Python with saxonche, pinned below version 13, because 13.1.1 cannot compile the OIOUBL rules. Delivery through Nemhandel is still manual for us. An unregistered system of your own must handle both OIOUBL and Peppol BIS; see efaktura.best-choice.dk.

For WooCommerce there is no plugin on wordpress.org that mentions OIOUBL – the search on 3 December 2026 returned 0 results, and the Peppol plugins there are built for other countries’ systems. For most shops route 1 is the realistic one.

Sources

Last reviewed: 2026-12-04

Questions about EAN and credit in the shop

Must the shop send e-invoices itself?

No. Normally the shop stores CVR, EAN and reference, and the accounting system sends the e-invoice. Only if you invoice from your own system do you have to produce OIOUBL and Peppol BIS yourself.

How do we know an EAN number is valid?

The check digit catches typos. Whether the number can receive shows in a Nemhandel register lookup by EAN, CVR, SE or P-number.

May we give business customers 60 days to pay?

Only if you as creditor expressly accepted it and it is not unreasonable to you. The starting point between businesses is at most 30 days, and towards public authorities 30 days is the limit.

Where does the credit limit come from?

From your own decision per customer – and the open balance from accounting. Without a link to accounting the shop cannot know what the customer owes.

Fixed price, no commitment

Free B2B check and a fixed price

Tell us briefly what you use today and what you want to achieve. A person answers by e-mail with a proposal and a fixed price before any work starts.

  • A fixed price before we start
  • An answer by e-mail, no calls
  • Your details are used only to answer you

Fields marked with * are required.

What is it about?