Skip to content

By Stefan de Graaf, builder and owner · Updated on

Integrations · Integration route

Connecting Magento 2 to Zoho Books

Do you retype paid invoices from Magento 2 into Zoho Books, with VAT per country? In my own webshop, paid invoices, customers, payments, credit notes and cancellations go to Zoho Books automatically, and I only check the exceptions. A Magento 2 module I built myself sends a webhook to the route on every event; below is how it runs and what you need yourself.

In productionCustom route in n8n

Do you recognise this?

I had this manual work in my own webshop; the route below takes it over.

  • Retyping invoices: every paid webshop invoice is entered into Zoho Books by hand, with the customer and the payment.
  • VAT per country: sales to consumers in Belgium, Germany or France need the right OSS VAT code per country, and by hand that often goes wrong.
  • Two invoice emails: your customer receives an invoice from the webshop and later another one from the accounts.
  • Payment separate from the invoice: the payment is on the bank statement, but in Zoho Books it is not linked to the invoice.

What goes from Magento 2 to Zoho Books

The route goes one way, from Magento 2 to Zoho Books: customers, paid invoices, payments, credit notes and cancellations.

Magento 2 reports what happens in the webshop, Zoho Books is the administration where it is booked. Items, stock and sales orders are not part of it.

ObjectDirectionTriggerMatching
Customer becomes contactMagento 2 → Zoho BooksNew customer in Magento 2Email address, exact and case-insensitive. Magento customer ID as a custom field
Paid invoice becomes invoiceMagento 2 → Zoho BooksInvoice paidZoho invoice number equal to the Magento invoice number, order number as reference
Payment becomes paymentMagento 2 → Zoho BooksInvoice paidOn the invoice, booked to a clearing account per payment channel
Credit memo becomes credit noteMagento 2 → Zoho BooksCredit memo in Magento 2Linked to the original invoice
Cancellation voids the invoiceMagento 2 → Zoho BooksOrder cancelledInvoice found by order number
ExceptionRoute → meOn an errorAlert through the error workflow, by email and Telegram

How the route works

The route from Magento 2 to Zoho Books runs in five steps, from an event in Magento 2 to the invoice email that Zoho Books sends.

  1. Something happens in Magento 2 that the route listens for: a new customer, a paid invoice, a credit memo or a cancelled order.
  2. My own Magento 2 module catches that event and sends a webhook to n8n straight away, without cron and without scheduled checks. For an invoice, the module first recalculates the lines and totals. If n8n does not answer within the short timeout, the module makes one more attempt.
  3. Each event starts its own n8n workflow. It first searches Zoho Books for the object: the contact by email address, the invoice by invoice number.
  4. The workflow writes the result through the Zoho Books EU API, with the organization_id on every call. Invoices for the Netherlands get the Dutch VAT codes; the workflow books sales to consumers in Belgium, Germany and France per destination country with the OSS VAT codes in Zoho Books.
  5. Zoho Books emails the invoice to the customer. The Magento 2 invoice email is switched off, so the customer receives one invoice.

Error path: On a payment, the route compares the invoice total in Zoho Books with the amount paid. If they differ, it books no payment and the invoice stays a draft. An invoice that fails the calculation check in the module is not sent and ends up in the module's log. Every error in a workflow goes through a separate error workflow to my email and Telegram.

Facts about this route

I checked ten facts: five from my own route and five from the Zoho Books documentation, from the EU domain to the daily limit.

Checked on 3 November 2026. API facts come from the official Zoho Books documentation, route facts from my own route. The source is listed per row.

FactValueSource
TriggerWebhooks from my own Magento 2 module on new customer, paid invoice, credit memo and cancelled order. No cronOwn route, checked 3 November 2026
NumberingZoho invoice number equal to the Magento invoice number, Magento order number as reference, Magento IDs in custom fieldsOwn route, checked 3 November 2026
VATNetherlands: VAT codes 21, 9 and 0 percent. Belgium, Germany and France: the OSS VAT codes in Zoho Books per destination country, per product group the rate of that country (supplements reduced, skin and aroma oils and shipping standard). Prices include VATOwn route, checked 3 November 2026
CurrencyEUROwn route, checked 3 November 2026
ConnectionZoho Books EU API with an OAuth2 credential in n8nOwn route, checked 3 November 2026
EU domainZoho Books has nine API domains. For the EU it is https://www.zohoapis.eu/books/Zoho Books API: Introduction
OrganisationEvery call has to send the organization_idZoho Books API: Introduction
Limits100 requests per minute per organisation. Per day: Free 1,000, Standard 2,000, Professional 5,000, Premium, Elite and Ultimate 10,000Zoho Books API: Introduction
VAT inclusive or exclusiveAn invoice has is_inclusive_tax: it indicates whether line item rates include tax. Per line you choose the tax with a tax_idZoho Books API: Invoices
Customer in another EU countryvat_treatment indicates the location of the customer, with its own value for a customer in an EU country who is VAT registeredZoho Books API: Invoices

In practice

The route from Magento 2 to Zoho Books has been running in production in my own webshop, Good Nature Vibe, since April 2026.

I built all of it myself: the Magento 2 module with the webhooks, the n8n workflows and the error handling. Paid invoices, payments, credit notes and cancellations reach Zoho Books without retyping, and I only check the exceptions. The case describes where it went wrong and what I learned from it. Read the case →

What you need on your side

You need four things: Magento 2 with the webhook module, a Zoho Books organisation in the EU with the VAT codes, an agreement with your accountant on OSS and a server of your own.

  • Magento 2 with the custom module that sends a webhook to n8n on every event. That module is custom work for your webshop.
  • A Zoho Books organisation in the EU data centre, with the VAT codes (for sales to consumers in other EU countries also the OSS codes per country) and a clearing account per payment channel.
  • An agreement with your accountant on sales to other EU countries: the OSS registration, the rate per product group and customers with a VAT number.
  • A server of your own for n8n. If you do not have one yet, I set it up.

What it costs

For the route from Magento 2 to Zoho Books you pay a fixed price per scoped process, guide price from €750, plus a monthly fee for maintenance and monitoring.

Guide price: from €750 per scoped process. How many processes your route has determines the price; we work that out in the free assessment. Everything runs on your own server, in your name. Maintenance and monitoring are a monthly fee: n8n maintenance from €250 per month, the server itself €145 per server per month. All prices and what is included →

What I do not do

I keep four limits: no VAT advice, no items and stock, no unpaid invoices, no purchasing or bank.

  • I do not file your VAT return and I do not give VAT advice.
  • I do not sync items, stock or sales orders in this route.
  • The route does not pass on unpaid invoices.
  • Purchase invoices and bank transactions are not part of this route. That is a process of its own.

Frequently asked questions about Magento 2 and Zoho Books

Five questions about this route, from the custom Magento module to the Zoho Books API limits.

Why a custom Magento module with webhooks?

Webhooks are not in the Magento core. Adobe provides separate modules for them: Webhooks from 2.4.5 and I/O Events, which is only for Adobe Commerce. That is why I built a Magento 2 module myself. It sends a webhook to n8n the moment something happens, with one more attempt if n8n does not answer in time.

Why do only paid invoices go to Zoho Books?

That way Zoho Books only holds webshop invoices the customer has actually paid, each with its payment. An invoice goes through once it is paid in Magento 2, and the payment is booked with it on the clearing account of the payment channel.

How do you prevent an invoice from ending up in Zoho Books twice?

The invoice number in Zoho Books is the same as in Magento 2. Before the route creates an invoice, it searches Zoho Books for that number. If the invoice already exists, it skips it. An invoice that is already paid does not get a second payment.

How does the route handle VAT?

Sales in the Netherlands are booked with the Dutch VAT codes in Zoho Books: 21, 9 and 0 percent, with prices including VAT. Sales to consumers in Belgium, Germany and France are booked per destination country with the OSS VAT codes in Zoho Books, per product group at the rate that applies there. How you book sales to other EU countries or to a customer with a VAT number is something you agree with your accountant beforehand.

Does this fit within the Zoho Books API limits?

Zoho Books allows 100 requests per minute per organisation and a daily limit per plan, from 1,000 on Free to 10,000 on Premium and higher. How many invoices that is per day depends on the number of calls per invoice. I work that out in the free scan.

Related

Systems and routes for this integration

  • Magento 2

    In production

    Pass orders and customer data on to your accounting.

    More about the Magento 2 integration →
  • Zoho Books

    In production

    Book webshop orders automatically as an invoice.

    View in the overview →
  • Connecting WooCommerce to Exact Online

    In production

    Orders to Exact Online, items and customer group prices back to the webshop; for a client of web agency Mercabilis.

    See the route →
  • Connecting website forms to Zoho CRM and Listmonk

    In production

    At Holos33, my own platform, every website form submission goes to Zoho CRM, and anyone who signs up lands on the right list in Listmonk.

    See the route →

See all integrations →

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