← All work

Syncing invoices with Zoho Books · Jul – Sep 2026

Connecting merchants’ accounting to their invoices

Merchants who invoice through us often already have their clients and invoices in Zoho Books. Asking them to type everything again was a non-starter. I built the integration that links a merchant’s Zoho Books organisation to their account with us and pulls clients and invoices across, so the two stay in step.

Role
Frontend engineer
When
Jul – Sep 2026
Where
PayGlocal
Stack
Next.jsReact 19TypeScriptTanStack QueryOAuth 2.0

The situation

Our invoicing product needed clients and invoices, and the merchants who would get the most from it already had both in their accounting tool. Without a link, they’d keep two systems by hand: an invoice marked paid in one wouldn’t be paid in the other. Merchants with several accounts with us also needed to choose which of them a Zoho organisation belonged to.

What I built

  • Connecting: an OAuth sign-in to Zoho Books, with the redirect built from the page the merchant started on and a callback that confirms the result, then a result screen that says whether it worked.
  • An Integrations section in account settings (moved there from the dashboard home, with the redirect address registered to match), showing connection status, the connected organisation and the last sync time, plus a disconnect dialog that explains what happens to data already synced.
  • Syncing: pull clients, invoices or both on demand; a sync line on each invoice’s details; source and sync columns and filters on the clients and invoices lists, so it’s clear what came from Zoho and what was created here.
  • Payment status kept in step, including invoices paid outside our platform.
  • Merchants with several accounts: connect and sync dialogs and the hook rewritten so each connection belongs to one account, with the connected account shown on the sync line.
  • The same integration rebuilt as its own module in the dashboard rewrite: connect, disconnect, sync dialogs, a status badge, a settings entry and consolidated account handling for clients and invoices, later moved onto the shared form layer.
Try it

Integrations

Not connected

Bring clients and invoices in from Zoho Books, and keep their status in step.

Invoices

The source column says where each record came from. Paid outside the platform syncs back too.

InvoiceClientStatusSource

Decisions

Settings, not a banner

Early banners and a settings dialog on the dashboard home were added and removed within days. An integration is configured once and checked occasionally, so it lives in account settings, where people look for it.

Say where every record came from

Once records arrive from two places, people need to know which is which before they edit anything. A source column and filter answer that on every list.

One connection per account

A merchant with two accounts might keep them in two Zoho organisations, or one. Tying each connection to a specific account avoids invoices landing in the wrong place.

Make disconnecting predictable

The disconnect dialog says what stays (records already synced) and what stops (new changes), so nobody disconnects expecting data to vanish, or to keep flowing.

Outcome

WhatBeforeAfterDetail
Clients and invoices from accountingretypedsynced on demandone click
Paid status across both toolskept by handsyncedincluding paid outside
Where a record came fromunclearsource column and filterevery list
↑↓ move↵ openesc close