ZohoSuite is a supercharged community-maintained Node API SDK that allows you to interact with Zoho Finance Suite APIs (Zoho Books, Zoho Inventory, Zoho Invoice).
$ bun add -D @smoasters/zoho-suiteThis module exports a constructor function which takes an options object.
Creates a new ZohoSuite instance.
import { ZohoSuite } from '@smoasters/zoho-suite';
const zoho = new ZohoSuite({
orgId: process.env.ZOHO_ORGANIZATION_ID,
refreshToken: process.env.ZOHO_REFRESH_TOKEN,
dc: '.eu',
apiFlavour: 'inventory', // books, invoice
client: {
id: process.env.ZOHO_CLIENT_ID,
secret: process.env.ZOHO_CLIENT_SECRET,
},
});