# Create Item — Zoho Inventory

> Creates a new item in Zoho Inventory. See the documentation

- Key: `zoho_inventory-create-item`
- Type: Action (Write)
- Version: 0.0.1
- App: Zoho Inventory (`zoho_inventory`) — https://pipedream.com/apps/zoho-inventory.md
- This page (HTML): https://pipedream.com/apps/zoho-inventory/actions/create-item
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/zoho_inventory/actions/create-item/create-item.mjs

## Description

Creates a new item in Zoho Inventory. [See the documentation](https://www.zoho.com/inventory/api/v1/items/#create-an-item)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `organization` | `string` | Yes | Select the organization Options are loaded from the connected account. |
| `name` | `string` | Yes | Name of the item. |
| `groupId` | `string` | No | The item group to which this item belongs. Options are loaded from the connected account. |
| `groupName` | `string` | No | Name of the product group. |
| `unit` | `string` | No | Unit of measurement for the item (e.g., kg, box, pcs). |
| `itemType` | `string` | No | Item type. If the item is associated with a group, type should be inventory. |
| `productType` | `string` | No | Type of the product. |
| `isTaxable` | `boolean` | No | Whether the item is taxable. |
| `taxId` | `string` | No | The tax to associate with the item. Options are loaded from the connected account. |
| `description` | `string` | No | Description of the item. |
| `purchaseAccountId` | `string` | No | Unique ID generated by the server for the purchase account. Options are loaded from the connected account. |
| `inventoryAccountId` | `string` | No | Unique ID generated by the server for the inventory account. Options are loaded from the connected account. |
| `vendorId` | `string` | No | The preferred vendor for purchasing this item. Options are loaded from the connected account. |
| `vendorName` | `string` | No | Name of the preferred vendor for purchasing this item. |
| `rate` | `string` | No | Sales price of the item. |
| `purchaseRate` | `string` | No | Purchase price of the item. |
| `reorderLevel` | `string` | No | Reorder level of the item. |
| `sku` | `string` | No | The Stock Keeping Unit (SKU) of the item. Must be unique across all items. |
| `upc` | `string` | No | The 12-digit Unique Product Code (UPC) of the item. |
| `ean` | `string` | No | Unique EAN value for the item. |
| `isbn` | `string` | No | Unique ISBN value for the item. |
| `partNumber` | `string` | No | Part number of the item. |
| `attributeName1` | `string` | No | Name of the attribute present in the item group. |
| `attributeOptionName1` | `string` | No | Name of the attribute's option. |
| `purchaseDescription` | `string` | No | Description displayed to the vendor in purchase orders. |
| `documents` | `string[]` | No | List of documents associated with the item. Each entry should be a JSON string, e.g. {"name":"manual.pdf","document_type":"pdf"}. |
| `locations` | `string[]` | No | List of locations for the item. Each entry should be a JSON string, e.g. {"warehouse_id":"WH123","quantity":10}. |
| `itemTaxPreferences` | `string[]` | No | 🇮🇳 List of tax preferences for the item. Each entry should be a JSON string, e.g. {"tax_name":"GST","tax_percentage":18}. |
| `hsnOrSac` | `string` | No | 🇮🇳 HSN code of the item. |
| `satItemKeyCode` | `string` | No | 🇲🇽 SAT item key code for goods/services. |
| `unitKeyCode` | `string` | No | 🇲🇽 Unit key code for goods/services. |
| `customFields` | `string[]` | No | Custom fields for the item. Each entry should be a JSON string, e.g. {"customfield_id":"cf_1","value":"foo"}. |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "zoho_inventory",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "zoho_inventory-create-item",
  arguments: {
    organization: "Organization",
    name: "Name",
  },
})
```

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "zoho_inventory-create-item",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    zoho_inventory: { authProvisionId: "apn_xxxxxxx" },
    organization: "Organization",
    name: "Name",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "zoho_inventory-create-item",
    "configured_props": {
      "zoho_inventory": { "authProvisionId": "apn_xxxxxxx" },
      "organization": "Organization",
      "name": "Name"
    }
  }'
```

---

- App: https://pipedream.com/apps/zoho-inventory.md · All apps: https://pipedream.com/apps
