Home / Guides

Magento 2 and e-conomic: orders, invoices and VAT

How Magento orders become correct invoices in e-conomic: tax settings, shipping, discounts, credit memos, OSS and common mistakes.

Updated November 6, 2026

Magento 2 makes its own invoices and credit memos, but e-conomic is where your books are. So every order must also become an invoice in e-conomic, with the same amount, the right VAT and the right VAT zone. This guide shows how to make Magento 2 and e-conomic agree: the settings in Magento, one invoice per order, a worked example, OSS and the mistakes that most often cause differences.

Start in Magento 2: the tax settings

The invoices in e-conomic are never better than the VAT in the shop. Under Stores → Configuration → Sales → Tax, these must be right:

One invoice per order

Each Magento order should become one invoice in e-conomic:

  1. The customer is found or created as a debtor with the billing address from the order.
  2. The lines come with product number (SKU), quantity and price excluding VAT, so the sale lands in the right product group.
  3. Discounts from coupons and price rules stand as list price and percentage, so the customer can see what was given.
  4. Shipping gets a line of its own with the same VAT as the goods.
  5. The total is checked against the order's "Grand Total" in Magento, to the øre.

Magento's own invoice is a receipt for the customer. The invoice that is booked is the one in e-conomic. Decide which of them the customer receives, so that two invoice numbers never go out for the same sale.

Example: order 000001042

Two sets of ceramic cups at DKK 299.00, three bags of coffee beans at DKK 119.00 and a coffee pot at DKK 449.00 with 20% off from a coupon, plus shipping at DKK 49.00. Prices include VAT, and the customer pays DKK 1,363.20:

LineQtyAmount excl. VAT
Ceramic cups, set of 42478.40
Coffee beans, 500 g3285.60
Coffee pot, glass (list price 359.20, discount 20%)1287.36
Shipping139.20
VAT 25%272.64
Total1,363.20

The invoice in e-conomic ends at exactly what the customer paid in Magento. Had the shipping been sold without VAT, the invoice would still match the total, but the VAT would be DKK 9.80 too low.

VAT for other EU countries and OSS

If you sell to consumers in other EU countries, one threshold of EUR 10,000 a year applies to all your distance sales in the EU:

The VAT zone must be set from the order: the customer's country and the VAT Magento actually charged. Do not use the zone on an old debtor card, because a customer can buy as a private person one day and as a business the next.

Credit memos, gift cards and several shops

Common mistakes

Questions about Magento 2 and e-conomic

When should a Magento order be invoiced?

Many invoice when the payment has gone through and the order is "Processing"; others only when it has shipped and is "Complete". Choose one rule and keep to it, so the same order is never invoiced twice and cancelled orders ("Canceled") never come along.

Must the product numbers in Magento exist in e-conomic?

It is the easiest. If the product has the same number (SKU) in both places, the sale lands on the product group and account the product belongs to. If the product is missing in e-conomic, it must be created in a product group with the right VAT before the invoice is booked.

Does it work with Magento 1?

Magento 1 is no longer supported by Adobe and gets no security updates. The guide is for Magento 2, and 2app connects Magento 2.4 or later (Open Source and Adobe Commerce).

Automatically with 2app

2app fetches the orders from Magento 2.4 or later and makes a draft invoice in e-conomic for each. A draft is the default; you can choose to have 2app also book the invoice and send it to the customer by email or EAN. The VAT zone is set per order from the customer's billing country and the VAT the shop charged, including OSS zones, which 2app suggests from your e-conomic. If the shop charged another country's VAT, for instance because the goods were delivered to a different country than the billing country, the order stops with the reason. The total is checked against what the customer paid, to the øre, and an order that does not match stops in the same way instead of becoming a wrong invoice.

Credit Memos become credit notes in the same VAT zone as the original invoice, and Magento's "Adjustment Refund" and "Adjustment Fee" become lines without VAT on a product number you choose. Adobe Commerce gift cards become a line without VAT on a product number you choose; gift cards from Magento Open Source extensions are not read. One connection reads one store (Store ID). If you have two companies in the same Magento, each company connects its own store to its own e-conomic.

The payments can then close the invoices with Klarna to e-conomic, Nets Easy to e-conomic or Stripe to e-conomic.

Try free

AI assistant

Try e.g.:

Write systems, not personal details. The answer is made with AI from our catalogue. Privacy policy