# Zenventory — Pipedream Connect

> All-In-One Platform for E-Commerce Operations Success

- API slug: `zenventory` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Business Management
- Website: https://www.zenventory.com/
- This page (HTML): https://pipedream.com/apps/zenventory
- Tools: 3 actions · 3 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: zenventory`

```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": "zenventory",
      },
    },
  },
)

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

const { tools } = await mcp.listTools()

// e.g. run Create Customer Order:
const result = await mcp.callTool({
  name: "zenventory-create-customer-order",
  arguments: {
    orderNumber: "Order Number",
    clientId: 10,
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a Zenventory endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://app.zenventory.com/rest/inventory/items

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcHAuemVudmVudG9yeS5jb20vcmVzdC9pbnZlbnRvcnkvaXRlbXM?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```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: "zenventory-create-customer-order",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    zenventory: { authProvisionId: "apn_xxxxxxx" },
    orderNumber: "Order Number",
    clientId: 10,
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (3)

### `zenventory-create-customer-order` — Create Customer Order (Write)

Creates a new customer order. See the documentation

Full schema: https://pipedream.com/apps/zenventory/actions/create-customer-order.md

### `zenventory-create-item` — Create Item (Write)

Generates a new item. See the documentation

Full schema: https://pipedream.com/apps/zenventory/actions/create-item.md

### `zenventory-create-purchase-order` — Create Purchase Order (Write)

Generates a new purchase order. See the documentation

Full schema: https://pipedream.com/apps/zenventory/actions/create-purchase-order.md

## Triggers (3)

### `zenventory-new-customer-order` — New Customer Order Created (Polling)

Emit new event when a new customer order is created.

Full schema: https://pipedream.com/apps/zenventory/triggers/new-customer-order.md

### `zenventory-new-item-created` — New Item Created (Polling)

Emit new event when a new item is created.

Full schema: https://pipedream.com/apps/zenventory/triggers/new-item-created.md

### `zenventory-new-purchase-order` — New Purchase Order Created (Polling)

Emit new event when a new purchase order is created.

Full schema: https://pipedream.com/apps/zenventory/triggers/new-purchase-order.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
