Fob
Browse the docs

Zoho Books

@finopsbricks/fob-zb connects you to your Zoho Books organization. One npm package gives you two ways in:

You want to…UseStart here
Query and update your books from a terminal, or let an AI agent do itThe CLI, fob-zbInstall the CLI
Put Zoho Books inside automated workflows: workers, scheduled jobs, assembly linesThe library, import { fobZb }Use the library

Both need the same thing first: a connection to Zoho, which is a Zoho Self Client plus a one-time grant code. Connect Zoho Books walks you through it in about five minutes.

Beta

fob-zb covers 27 Zoho Books resources: reads on all of them, and writes on the core documents. Some features are not built yet. See Beta limits.

Video coming soon
fob-zb in 90 seconds

How it works#

fob-zb runs on your machine, or in your worker, and calls the Zoho Books API directly with your own OAuth credentials. No FinOpsBricks server sits in between, and your data and credentials are never sent to us.

  • Credentials live in ~/.fob/fob-zb/config.yml (file mode 0600) for the CLI, or in FOB_ZB_* environment variables for workers.
  • Access tokens last one hour. fob-zb refreshes them from your long-lived refresh token automatically.
  • Data centers: Zoho runs separate regions (US, EU, India, Australia and more). Your credentials only work in the region where you created them. See Regions.

What you can do#

AreaResourcesWrites
Sales and receivablescontacts, contact persons, estimates, sales orders, invoices, recurring invoices, credit notes, retainer invoices, customer paymentsCreate, edit and delete contacts, estimates, sales orders, invoices and credit notes. Status actions (mark sent/void/accepted, submit, approve), email, invoice write-off, stop or resume recurring invoices
Purchases and payablesbills, recurring bills, vendor credits, purchase orders, expenses, recurring expenses, vendor paymentsCreate, edit and delete bills and purchase orders. Mark bills open or void. Submit, approve and email purchase orders. Record and delete vendor payments. Stop or resume recurring bills and expenses
Bankingbank accounts, bank transactionsCreate, edit, delete, activate and deactivate bank accounts. Create, delete, categorize, match, unmatch, exclude and restore feed transactions
Accountingchart of accounts, journals, itemsCreate, edit, delete, activate and deactivate accounts and items. Journals are read only
Projectsprojects, time entriesRead only
Settingsorganizations, users, taxes, currenciesRead only

Every resource supports list and show. The command reference lists every command and option.

Beta limits#

  • bank-rules and base-currency-adjustments are not built yet.
  • bank-transactions categorize and match have not been validated against a live bank feed. Try them on a test organization first.
  • Not yet supported: attachments and receipts, bulk operations, report endpoints, and a browser-based login.

Missing something? Open an issue on GitHub.

fob-zb is not affiliated with or endorsed by Zoho Corporation. "Zoho" and "Zoho Books" are trademarks of Zoho Corporation.