Zenventory ACTION
Create Item
Generates a new item. See the documentation
- Action
- Writes data
- API key
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Zenventory account once, then configure and run Create Item from your backend or agent.
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: "zenventory-create-item",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
zenventory: { authProvisionId: "apn_xxxxxxx" },
sku: "SKU",
clientId: 10,
},
})
console.log(result)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": "zenventory-create-item",
"configured_props": {
"zenventory": { "authProvisionId": "apn_xxxxxxx" },
"sku": "SKU",
"clientId": 10
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{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": "zenventory",
},
},
},
)
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: "zenventory-create-item",
arguments: {
sku: "SKU",
clientId: 10,
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
sku SKU | string | The item's SKU. Required |
clientId Client Id | integer | Id of the client that the item belongs to. Defaults to the user's client id. Optional |
clientName Client Name | string | Name of the client that the item belongs to. Ignored if clientId is provided and is nonzero. Optional |
upc UPC | string | The item's UPC. Optional |
description Description | string | The item's description. Optional |
category Category | string | The item's category to be grouped by. Optional |
baseUom Base UOM | string | The item's base unit of measurement. Optional |
unitCost Unit Cost | string | How much the item costs you to stock. Optional |
leadTime Lead Time | integer | The item's lead time. Optional |
defaultEconOrder Default Econ Order | integer | The item's default order quantity for purchase orders. Optional |
orderLimit Order Limit | integer | The item's order limit. Optional |
rrp RRP | string | The item's recommended retail price. Optional |
price Price | string | How much the item is sold for. Optional |
active Active | boolean | True if the item is active. Inactive items are hidden from most processes. Optional |
kit Kit | boolean | True if the item is a kit item made up of other items. An item cannot both be a kit and an assembly item. Optional |
assembly Assembly | boolean | True if the item is stocked by combining other items together. An item cannot both be a kit and an assembly item. Optional |
perishable Perishable | boolean | True if the item has an expiration date. A non-inventory or serialized item cannot also be this. Optional |
trackLot Track Lot | boolean | True if the item is tracked by lot numbers. A non-inventory or serialized item cannot also be this. Optional |
serialized Serialized | boolean | True if the item is tracked by serial numbers. A non-inventory item cannot be serialized. Optional |
nonInventory Non Inventory | boolean | True if the item does not have inventory. A kit or assembly cannot also be non-inventory. Optional |
weight Weight | string | The item's weight. Optional |
storageLength Storage Length | string | Part of the dimensions the item takes to store. Optional |
storageWidth Storage Width | string | Part of the dimensions the item takes to store. Optional |
storageHeight Storage Height | string | Part of the dimensions the item takes to store. Optional |
safetyStock Safety Stock | integer | How much stock should be withheld when reporting stock levels to marketplace integrations. Optional |
userField1 User Field 1 | string | User defined field for the item. Optional |
userField2 User Field 2 | string | User defined field for the item. Optional |
userField3 User Field 3 | string | User defined field for the item. Optional |
userField4 User Field 4 | string | User defined field for the item. Optional |
userField5 User Field 5 | string | User defined field for the item. Optional |
userField6 User Field 6 | string | User defined field for the item. Optional |
notes Notes | string | Notes for the item. Optional |
assignToAllWarehouses Assign To All Warehouses | boolean | True to assign to all warehouses on creation. Optional |
assignToWarehouse Assign To Warehouse | boolean | True to assign the item to a specific warehouse. Optional |
warehouseId Warehouse Id | integer | Id of the warehouse the item will be assigned to. If no warehouse parameters are given, then the user's current warehouse will be used. Optional |
warehouseName Warehouse Name | string | Name of the warehouse the item will be assigned to. Ignored if warehouseId is provided. Optional |
reorderLevel Reorder Level | integer | Reorder level for the item's warehouse assignment. Optional |
REFERENCE
Tool details
Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.
- Registry key
- zenventory-create-item
- Version
- 0.0.4
- App
- Zenventory
- Authentication
- API key
- Read-only
- No
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗