How an online shop order becomes an invoice in the accounting program: four routes
An online shop order becomes an invoice in the accounting program in four ways: by hand, through the shop's ready-made plugin, through an automation tool, or with a custom connection built on the APIs of the two programs. For a shop with a small number of orders a ready-made plugin is often enough. Choose according to who fixes things when something changes.
In short
- The invoice is correct when four things match: the buyer, the VAT rate, the payment method and the shipping line.
- A ready-made plugin is the cheapest route and handles an ordinary order. Check first who made it and when it was last updated.
- Zapier and Make know online shops well. Check in their directory whether your accounting program is there.
- A custom connection pays off when the plugin does not cover your special cases. In that case maintenance stays with the builder.
Four things that have to match on the invoice
Before choosing a route it is worth knowing what each route has to solve. An order and an invoice are not the same document. The shop knows what the buyer put in the basket. The accounting program wants to know who it was sold to, at what tax rate and where the money was received.
Let us take Merit Aktiva as the example, because its invoice creation request is publicly documented. On the shop side the example is a WooCommerce order, whose fields are also documented.
| What has to match | In the shop order | On the Merit invoice |
|---|---|---|
| Buyer | billing address: name, company, country, email | Customer: name, country code and a flag for whether the buyer is a private individual |
| VAT rate | tax lines and the tax amount of each line | the TaxId of each line and the invoice's TaxAmount |
| Payment method | name of the payment method and date of payment | Payment: payment method, amount paid, date |
| Shipping | shipping line: name of the shipping method, price and tax | an ordinary invoice line, there is no separate shipping field |
Every row is a place where automation goes wrong.
Buyer. Merit looks the buyer up by name. If a buyer with the same name already exists, Merit takes the details from its own customer card, not from the request. If the name is not found, a new buyer is created, and then the name, the country code and the private individual flag are mandatory. It is safer to use the buyer ID that Merit returns when a new buyer is created.
VAT. Merit does not accept a percentage. Every invoice line needs the tax identifier TaxId, which has to be requested from Merit's tax list. The list gives an identifier, code, name and percentage for each tax. Someone has to set up once which shop tax rate corresponds to which Merit tax. The invoice total goes to Merit without VAT and the tax amounts separately.
Payment method. The name of the payment method must already exist in Merit. The amount paid includes VAT.
Shipping. In the shop, shipping is a separate line with its own price and tax. On the Merit invoice it goes in as an ordinary line with an item code, a description and a type. There are three types: stock item, service and item. If the shipping line is left off the invoice, the invoice total does not match the payment received.
Route 1: by hand
You open the shop order and enter the invoice in the accounting program yourself.
- What it does: everything, because a person sees the special case and asks.
- What it does not do: it does not scale with the number of orders. Retyping produces errors that nobody notices until the payment received does not match the invoice.
- Who maintains it: there is nothing to maintain.
With a few orders a week this is an honest choice.
Route 2: a ready-made plugin or module
An add-on is installed in the shop that sends the order to the accounting program. Three examples for which there is a public source.
SmartAccounts and WooCommerce. SmartAccounts names a WooCommerce plugin on its page and says that it was developed by an external partner. The partner is E-liides. According to its guide the module sends SmartAccounts invoices, customers, products and a credit note based on a shop refund. If a product in the order does not exist in SmartAccounts, the item is added by product code. The payment received can be added according to the payment method chosen in the shop. The precondition is correctly configured taxes. According to the guide the price is €99 a year per domain, including VAT. On the SmartAccounts side you need the API service, which is included in the price of the Pro plan.
SmartAccounts and Shopify. The Shopify App Store has an app called Shopiliides, made by Kash OÜ. According to the description it takes Shopify orders into SmartAccounts as invoices, payments received and credit notes, and links the order to the right customer, VAT rate and payment method. The price is $15 a month.
Merit Aktiva and WooCommerce. The WordPress plugin directory has a plugin called Orders Synchronization for Merit Aktiva. It is not Merit's own product: the author is an individual developer. According to the description the plugin creates a sales invoice in Merit for every new paid order, synchronises every five minutes, maps payment methods and creates a credit note in the case of a full refund. According to the plugin's page you need at least Merit's Pro plan. According to the directory there are more than ten active installations.
- What it does: an ordinary order from start to finish, including the four things above.
- What it does not do: anything the author did not foresee. If your shop has partial returns, several warehouses or prepayment invoices, read the description first to see whether that is covered.
- Who maintains it: the plugin's author. When the shop or the accounting program is updated, the fix depends on them. Before installing, look at the date of the last update and the number of users.
Route 3: Zapier or Make
An automation tool sits between two programs: one step notices a new order, another does something elsewhere.
The online shop side exists in both tools. In Zapier, WooCommerce has an order trigger and Shopify has the trigger New Paid Order. In Make there is the WooCommerce module Watch Orders, and Make says that it maintains that app itself.
The accounting side is the part that has to be checked first: search the tool's app directory for the name of your program. SmartAccounts' own list of integrations includes neither Zapier nor Make. If there is no ready-made step, what remains is a generic web request step. In Zapier that is Webhooks by Zapier, whose custom request Zapier itself calls flexible but unforgiving. With Merit, every request also has to be signed: the signature is calculated from the API ID, the timestamp and the content of the request.
- What it does: passes the data on without a server of your own and shows a log of every run.
- What it does not do: it does not decide for you which tax corresponds to which. You build that mapping into the steps yourself.
- Who maintains it: you, or whoever put the workflow together. This is covered at more length on the page Zapier, Make or an AI assistant.
Route 4: a custom connection on the APIs
Someone writes a program that reads the order from the shop's interface and creates the invoice through the accounting program's interface. Both sides are publicly documented: see the pages WooCommerce and Merit Aktiva. If the concept of an API is unfamiliar, start with the page what is an API.
- What it does: exactly what your business needs, including the special cases.
- What it does not do: it is not finished in one evening and does not keep working by itself.
- Who maintains it: the builder. Before ordering, ask who fixes it when the shop or Merit changes its interface.
This is how we build connections too. In the Chatmated app, reading from Merit is ready today. Creating an invoice from an order is built to order, once the shop is connected as well, and every invoice waits for the owner's confirmation before it is created.
The four routes side by side
| By hand | Ready-made plugin | Zapier or Make | Custom connection | |
|---|---|---|---|---|
| Ordinary order | yes | yes | yes, if the steps exist | yes |
| Special cases | a person decides | only what the author foresaw | as much as you build yourself | as agreed |
| Tax mapping | in your head | in the plugin's settings | in your steps | in the connection's settings |
| Who maintains it | nobody | the plugin's author | the workflow's builder | the connection's builder |
| Main risk | a typing error | the author stops updating | the workflow breaks silently | you depend on one maker |
How to choose
Start with a ready-made plugin if one exists for your pair of shop and accounting program and your orders are ordinary. It is the cheapest route and often enough for a shop with few orders. Run a trial with ten orders and compare the invoices one by one against the four things at the top of this page.
Move on only when the trial shows a gap: the tax goes wrong, the shipping line is missing or the buyers get mixed up. By then you know exactly what the next solution has to do. How the rest of an online shop's day is divided between programs is on the page online shop.
Questions
Should the invoice be created at the moment of the order or of the payment?
That is a decision for you and your accountant, not a technical question. The plugins let you choose: the E-liides module has a setting for the moment the invoice is sent, and the Merit synchronisation plugin creates an invoice for every new paid order.
What happens with a return?
A return has to reach the accounts as a credit note. Both WooCommerce plugins named here say in their description that they create a credit note from the shop's refund. The Merit plugin does so in the case of a full refund.
Does a buyer who is a private individual have to be marked separately in Merit?
Yes. When a new buyer is added, the Merit API requires the field NotTDCustomer. In Estonia its value is true for private individuals and foreign companies.
Sources
- Merit Aktiva API: Create Sales Invoice · read 12 November 2026
- Merit Aktiva API: Tax list · read 12 November 2026
- Merit Aktiva API: Authentication · read 12 November 2026
- WooCommerce REST API docs, source: Orders · read 12 November 2026
- SmartAccounts: raamatupidamistarkvara e-poele (accounting software for online shops) · read 12 November 2026
- SmartAccounts: tarkvara võimalused (software features) · read 12 November 2026
- E-liides: SmartAccountsi ja WooCommerce'i liidese juhend (guide to the SmartAccounts and WooCommerce integration) · read 12 November 2026
- WordPress.org: Orders Synchronization for Merit Aktiva · read 12 November 2026
- Shopify App Store: Shopiliides - SmartAccounts · read 12 November 2026
- Zapier: WooCommerce integrations · read 12 November 2026
- Zapier: Shopify integrations · read 12 November 2026
- Zapier: Webhooks by Zapier · read 12 November 2026
- Make: WooCommerce integrations · read 12 November 2026