Skip to content

Design notes: one app, eight Zoho data centers

October 9, 2026 · Updated November 9, 2026

This is a post for developers, and for the curious. It describes one design decision in LedgerStitch, the WooCommerce to Zoho Books sync we are building for editions outside the US: how a single app connects to Zoho Books organizations hosted in different Zoho data centers.

LedgerStitch is not built yet. These are design notes, written before the build, and we will update this post with what we learn.

Why this matters

Zoho does not run one global service. Its documentation for connecting apps across regions lists eight data centers: .com, .eu, .in, .com.au, .jp, .ca, .sa and .uk (checked October 6, 2026). An organization lives in one of them. Its users sign in through that data center's accounts server, and its data is reached through that data center's API address.

An integration that hardcodes the .com addresses works for organizations on the US data center and fails for everyone else. Since our whole reason for existing is the organizations outside the US edition, getting this right is the first thing to build, not a later improvement.

What Zoho's OAuth flow gives you

Zoho supports a multi-data-center OAuth flow. The user signs in and consents as usual. The response then carries the details an app needs to talk to the right region. From Zoho's multi-DC documentation, the values to keep are:

  • location: which data center the user's account is in.
  • accounts-server: the accounts address for that data center, used for token exchange and refresh.
  • api_domain: the address to send API calls to for that account.

The rule we are designing around is simple: never derive any of these; store what Zoho returns, per tenant, and use only that.

What we will store per tenant

For each connected Zoho Books organization, LedgerStitch's tenant record is designed to hold:

tenant_id
zoho_org_id
location          (from Zoho's response)
accounts_server   (from Zoho's response)
api_domain        (from Zoho's response)
refresh_token     (encrypted, never logged)
zoho_books_plan   (detected at connect, for API budgeting)
data_region       (where our own copy of this tenant's settings lives)

Every API call for that tenant will be built from its stored api_domain. Every token refresh will go to its stored accounts_server. There is no global default to fall back to, so a bug shows up as a clear error rather than a silent call to the wrong region.

Refresh tokens will be encrypted at rest with a managed key, and access tokens cached briefly. Store keys from WooCommerce will be encrypted the same way. None of them will ever be written to logs.

Edition is a separate question

Data center decides where to send calls. Edition decides what those calls must contain. The UK, Indian, Canadian and other editions of Zoho Books have different tax setups and different required fields on an invoice: place of supply and GSTIN in India, VAT treatment in the UK and EU, province in Canada.

We are designing these as small per-edition adapters on top of one posting engine. The engine does the same thing for everyone (customer, items, document, payment), and the adapter adds the edition's extra fields. Exactly which fields each edition's API requires is something we are confirming in Zoho's API documentation, edition by edition, before writing each adapter.

Two consequences:

  • We never hardcode tax rates. The app reads each organization's own taxes through the API, and the user maps their store's rates to them.
  • An unmapped rate stops the order in "needs review". It is better for an order to wait than to post with a guessed tax.

Rate limits are per organization

Zoho Books' API limits apply per organization: 100 requests a minute, and a daily cap by Zoho Books plan of 1,000 on Free, 2,000 on Standard, 5,000 on Professional and 10,000 on Premium and above, with a concurrency limit of 5 on free plans and 10 on paid plans (Zoho Books API documentation, checked October 6, 2026). They are shared with every other integration on that organization.

So the budget has to be per tenant too. The design:

  • Detect the Zoho Books plan at connect time.
  • A per-tenant token bucket at 60 requests a minute, under the 100 limit.
  • Spend at most half the daily cap by default, configurable by the user.
  • On a "too many requests" response, back off exponentially with jitter.
  • Pace historical imports overnight.
  • Warn the user before the cap is reached.

Processing one organization's orders one at a time also keeps concurrency at one, well under Zoho's limits, and prevents duplicate customers (see why store syncs create duplicate customers).

What is still open

Being honest about the unknowns:

  • Testing across data centers. End-to-end tests need a Zoho Books organization in each data center we support. Whether we can create test organizations in every region is something we are still finding out.
  • Listing and billing per data center. Zoho Marketplace's announcements of new extensions tag each one with availability for the US data center. Whether a third-party extension can be listed and billed for organizations elsewhere is a question we have put to Zoho. If not, LedgerStitch would be offered from our own site instead.
  • How a marketplace-billed app reads plan status. We are reading Zoho's developer documentation on this before we build the billing side.

If you are building something similar

The short version:

  1. Use Zoho's multi-DC OAuth flow from day one.
  2. Store location, accounts-server and api_domain per tenant; never derive them.
  3. Keep a per-tenant rate budget; remember that other integrations share it.
  4. Separate "where" (data center) from "what" (edition-specific fields).
  5. Test against a real organization in every region you claim to support.

If you are a WooCommerce merchant on a non-US Zoho Books edition and want to try LedgerStitch when it is ready, join early access. Read how it works for the non-technical version.