Skip to content

Every paid invoice from my webshop is in the books before I have seen it

An integration of my own between my webshop and Zoho Books: paid invoices, payments and credit notes arrive by themselves, with the same number and a calculation check up front. I only look at the exceptions.

By Stefan de Graaf, builder and owner · Updated on

Own development · in production since April 2026

I used to retype every paid invoice from my webshop into my accounts: look up the customer, copy the lines, pick the VAT, book the payment. The same steps every time, and every time a chance of a typo. Since April 2026 every paid invoice from Good Nature Vibe is in Zoho Books before I have seen it, with the customer and the payment attached. My webshop and my accounts stayed what they were.

  • 0

    invoices retyped since April 2026

  • 2 cents

    maximum deviation; above that the invoice waits for me

  • 5

    events with their own route to the accounts

  • 1

    number per invoice, in webshop and accounts

Starting point

There was nothing between my webshop and my accounts. I entered every paid invoice into Zoho Books by hand: customer, lines, VAT, payment. The invoice e-mail came from Magento, while the accounts lived in Zoho. Two places, twice the work, and no guarantee they said the same thing.

I wanted one invoice in one place, with the same number in webshop and accounts, and to hear only about what deviates.

Approach

I worked in the same four steps as on every job.

  1. Scope. Only paid invoices go through, with the payment attached. An invoice gets the same number in the accounts as in the webshop.
  2. Design. An event in the webshop is the starting point, the invoice number the key. A calculation check up front, and a person for every exception.
  3. Build. An extension of my own on the webshop that reports what happens, and a separate route to the accounts for each event.
  4. Maintain. Every error goes to my e-mail and Telegram. An invoice that does not add up stays put until I look at it.

What I built

Magento 2 has no webhooks in core. So I built my own Magento module that watches 5 events: a new customer, a paid invoice, a credit memo, a cancelled order and a newsletter sign-up. On every event the module sends a webhook to n8n straight away, without cron and without fixed check times.

  • Magento module. Catches the event, recalculates an invoice and sends the webhook.
  • n8n. One workflow per event, on a server of my own. The newsletter goes to my mailing list, the rest to the accounts.
  • Zoho Books. My accounts, reached through the EU API with an OAuth connection.

How the route runs

  1. Paid. A customer pays and Magento creates the invoice.
  2. Recalculated. My module checks every line, the VAT and the total. If it adds up, the webhook goes to n8n straight away.
  3. Customer found. The workflow looks up the customer in Zoho Books by e-mail address, and creates the contact if it is not there yet.
  4. Invoice booked. In Zoho Books the invoice gets the same number as in Magento, with the order number as reference. If that number already exists, the workflow skips it, so an invoice never lands in the accounts twice.
  5. Payment booked. The payment is applied to the invoice, through a clearing account per payment channel.
  6. Invoice sent. Zoho Books e-mails the invoice to the customer. The Magento invoice e-mail is switched off.

A credit memo in Magento becomes a credit note in Zoho Books, linked to the original invoice. A cancelled order voids the invoice. If a payment arrives before the invoice is in Zoho, the workflow creates the invoice first.

Sales to consumers in Belgium, Germany and France are booked per destination country, with the OSS VAT codes in Zoho Books. Each product group gets the rate of that country: supplements at the reduced rate, skin and aroma oils and shipping at the standard rate.

Where it went wrong and what I learned

This is where it went wrong for me, and what the route does now.

  • An invoice that does not add up. A few times an invoice line from Magento did not match the VAT or the total. Now the module recalculates every invoice; if it is off, the invoice stops and the error goes to the log. An invoice that waits is easier to fix than a wrong booking.
  • VAT on composite products. On configurable and bundled products the parent product carried no VAT percentage. The module now takes it from the child product.
  • An amount that is slightly off. Before the payment, the workflow compares the Zoho Books total with what the customer paid. Above a gap of 2 cents it books no payment and the invoice stays a draft for me to check.
  • A server that does not answer in time. If n8n does not respond in time, the module makes 1 new attempt. If that fails too, it goes to the log.
  • An error nobody sees. Every workflow error goes to my e-mail and Telegram. So I hear it when something does not run.

Result: connected, proven, monitored

  • Connected. Webshop and accounts share the same invoice number, with the customer linked and the payment applied. From customer to credit note.
  • Proven. In production since April 2026, with a calculation check on every invoice before it enters the accounts.
  • Monitored. Every error goes to my e-mail and Telegram. If an amount deviates, the invoice stays a draft until I look at it.

As of November 2026. I do not publish invoice counts; what is certain: zero retyped invoices since April 2026, and a deviation of at most 2 cents before an invoice waits for me.

What I notice now

I no longer retype invoices. A paid invoice is in Zoho Books before I have seen it, with the same number as in the webshop. My customer gets one tidy invoice, from the accounts. I only look at the exceptions, and if something is off, I hear it from the system and not from a customer.

Next cycle

Still to come: monitoring of invoices that stay in draft. A follow-up measurement of the number of invoices that waited for a check goes here as soon as I have done it.

What you can use from this

You do not have to replace your webshop or your accounting package. The retyping stops; the packages stay. The structure works for any webshop and any accounting package: an event as the starting point, the invoice number as the key, a calculation check up front and a person for every exception.

You choose where to start: paid invoices only, or payments and credit notes as well. And you decide which deviations come past you first.

Swipe the table sideways to see all columns.

SystemWhat you can reuseWhat differs
ShopifyStart at a paid order, duplicate check on number, amount checkShopify sends webhooks itself
WooCommerceThe same steps, from customer to credit noteAlready running at a client: Mercabilis case
Magento 2This route, with the calculation check in the moduleNo webhooks in core, so a custom module
Exact OnlineInvoice number as the key, payment through a clearing accountYou agree journals and ledger accounts with your accountant up front
MoneybirdContact by e-mail address, then invoice and paymentMoneybird reports events itself through webhooks, per administration
Zoho BooksEverything on this pageChoose the EU data centre and send your organisation with every call

The technical side and the facts from the Zoho Books documentation are on Magento 2 to Zoho Books integration. What AI assistants can do in the same webshop is in the case about the entrance for AI assistants.

Frequently asked questions

Can this work without a custom Magento module?

Yes. Then the integration checks for anything new at fixed times, or you use the webhook modules from Adobe. My module reports everything right away and recalculates first.

Do unpaid invoices go to Zoho Books too?

No. Only paid invoices go through, with the payment attached.

Does this work for sales outside the Netherlands?

Yes, for consumers in Belgium, Germany and France. The route books those sales per destination country with the OSS VAT codes in Zoho Books, per product group at the rate that applies there. Sales to other EU countries are set up with your accountant beforehand. I do not give VAT advice; the integration follows what you agree.

What does an integration like this cost?

A scoped process like this is a quick win, from €750 for the build. Maintenance is a separate package you can cancel monthly. In the free assessment I work out what it costs and gives for your webshop.

Want to know what a route like this would do for your webshop?

I work through one route with you. You get a short report with figures, even if the answer is no.

Free, no obligation

Own case by Stefan de Graaf (AIAgentCycle) for Good Nature Vibe. Facts checked on 3 November 2026.

Integrations used

Start with one process

In the assessment we choose the process, the exceptions and the expected value. You always get a short advice report, even if we do not continue.

Stefan de Graaf

Your request comes to me: Stefan de Graaf, AIAgentCycle in Oosterwolde (Friesland, the Netherlands), KvK 42234393. You describe one process, I map and prioritise it, and you receive a PDF with a clear recommendation. Free, no payment details, no obligation to continue.

Prefer WhatsApp? WhatsApp +31 6 54 36 25 26 · info@aiagentcycle.com