First-party app
Zoho Inventory

Zoho Inventory

Track stock, contacts, catalog items, warehouses and sales orders in Zoho Inventory, across every Zoho data centre.

stable Finance & AccountingCommerce & Payments

About

Zoho Inventory ships in the w6w first-party pack. It declares 17 actions, 2 health checks, and the host runs its code in a sandbox that never sees the credential.

App id
io.w6w.zoho-inventory
Version
0.1.0
Author
w6w
Licence
MIT
Categories
Finance & Accounting · Commerce & Payments

Overview

Zoho Inventory keeps a business’s stock, catalog and order book in one place, and this app puts that into a workflow — list, read, create, update and delete contacts and catalog items, list the warehouses stock is tracked across, and manage sales orders through their full lifecycle. Every action falls back to the organization the connection was authorized against, so a single-organization account needs nothing extra configured; listing organizations is how a workflow discovers the id for anything else.

Zoho hosts every organization in one of eight regional data centres, each with its own API host and, almost always, its own connection endpoint, so this app routes each region through its own dedicated connection rather than one that could silently send an EU organization’s requests through the US region instead. Canada is the one region where that connection endpoint breaks the naming pattern the other seven follow, and this app points at the real endpoint rather than the one the pattern would suggest.

Warehouses are the feature this app adds over an accounting-only integration: Zoho Inventory tracks stock per location, so listing locations is how a workflow finds out where a quantity actually sits. Purchases, bills, transfer orders, assemblies, shipments, packages, inventory adjustments and every jurisdiction-specific tax feature such as GST or CFDI are deliberately left out as not core to workflow automation of an Inventory account; create and update calls take a generic set of fields for the same reason, since Zoho’s own forms run to dozens of optional, region-specific attributes.

Build with Zoho Inventory

Three routes to the same 17 actions. The Workflow tab is generated from Zoho Inventory's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.

Create Contact

contact-create

Create a customer or vendor. `contact_name` is required; `company_name`, `contact_type` ("customer" | "vendor") and `website` are optional, e.g. { "contact_name": "Acme Inc", "contact_type": "customer", "website": "https://acme.example" }.

Delete Contact

contact-delete

Delete an existing Contact.

Get Contact

contact-get

Retrieve one Contact (customer or vendor) by id.

List Contacts

contact-list

List the organization's customers and vendors.

Update Contact

contact-update

Update a Contact's fields.

Create Item

item-create

Create a product or service. `name` is required; `rate`, `sku`, `item_type` ("inventory" | "sales" | "purchases" | "sales_and_purchases") and `product_type` ("goods" | "service") are optional, e.g. { "name": "Hard Drive", "rate": 120, "item_type": "sales" }.

Delete Item

item-delete

Delete an existing catalog item.

Get Item

item-get

Retrieve one catalog item by id.

List Items

item-list

List the products and services in the item catalog.

Update Item

item-update

Update a catalog item's fields.

List Locations

location-list

List the warehouses/locations this organization tracks stock in.

List Organizations

organization-list

List every Zoho Inventory organization this connection can access.

Create Sales Order

salesorder-create

Create a sales order. `customer_id` and `line_items` are required; each line item needs `item_id` and `quantity`, with `rate` optional, e.g. { "customer_id": "982000000000123", "line_items": [{ "item_id": "982000000000456", "quantity": 2 }] }.

Delete Sales Order

salesorder-delete

Delete an existing sales order.

Get Sales Order

salesorder-get

Retrieve one sales order, including its line items, by id.

List Sales Orders

salesorder-list

List the organization's sales orders.

Update Sales Order

salesorder-update

Update a sales order's fields, including replacing its line items.

A workflow step names the app and the action, and the editor fills in the connection when you pick one. This is the Step shape from the workflow spec, carrying Zoho Inventory's real ids.

{
  "manifestVersion": "2",
  "name": "zoho-inventory-example",
  "steps": [
    {
      "id": "contact-create",
      "uses": {
        "app": "io.w6w.zoho-inventory",
        "action": "contact-create",
        "connection": "conn_YOUR_CONNECTION_ID"
      },
      "with": {
        "fields": "<fields>"
      }
    }
  ]
}

Here are some of the things you can do

  • Create Contact

    perform
    contact-create
  • Get Contact

    read
    contact-get
  • List Contacts

    read
    contact-list
  • Update Contact

    perform
    contact-update
  • Create Item

    perform
    item-create

+12 more actions available

Every app-specific value here is a blank you have to fill in. An app action is reached through the connection that authenticates it, so the address is a connection id, not the app id — and connections belong to your account, so a public page cannot know yours. Create one for Zoho Inventory, then fill in the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the parameters that action declares. The call itself is real — the shape is transcribed from the studio's own snippet builder, which prints the same kind of blanks — but nothing in it is specific to Zoho Inventory. The Workflow tab is where this app's real ids are.

Install
npm install @w6w/sdk
yarn add @w6w/sdk
pnpm add @w6w/sdk
deno add npm:@w6w/sdk
Code
import { W6wClient, isActionRun } from "@w6w/sdk";

// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();

const envelope = await client.run({
  urn: "conn_YOUR_CONNECTION_ID",
  action: "contact-create",
  payload: {
    fields: "<value>",
    // organizationId: "<value>",
  },
});

if (isActionRun(envelope)) console.log(envelope.value);
Install the CLI
npm install -g @w6w/cli
CLI
w6w run conn_YOUR_CONNECTION_ID --action contact-create --payload '{"fields":"<value>"}'

Give an AI agent Zoho Inventory — without giving it Zoho Inventory's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.

One tool call
{
  "name": "w6w_invoke",
  "arguments": {
    "ref": "app:io.w6w.zoho-inventory#contact-create",
    "input": {
      "fields": "<fields>"
    }
  }
}

Every tool names its target with a single ref. The app: form above doesn't name a connection at all — the host resolves which of the caller's Zoho Inventory connections to sign with, and refuses rather than guesses when the answer is ambiguous.

What the agent gets

Credentials it can't read

The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.

A tool surface scoped to the caller

Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.

A durable workflow in one call

Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.

Health-aware discovery

Zoho Inventory's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.

The MCP surface is part of the hosted platform. Zoho Inventory itself is MIT, and the runtime that executes it is source-available (FSL).

Request MCP access

Health checks

Zoho Inventory declares its own checks, so its health is a property of the app rather than something the host guesses at.

service

Zoho Inventory platform status

Reads the "Zoho Inventory" component off Zoho's StatusIQ RSS feed (us.zohostatus.com/rss). Unauthenticated and unsigned.

quota

Plan headroom