# Zapier — Distributor OS Integrations
> zapier.com/apps/distributor-os/integrations
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Identity
Distributor OS is a B2B wholesale platform that helps merchants manage distributors, orders, payments, and inventory from one place.

- App slug: distributor-os
- Operations published here: 13 (7 events, 4 functions, 2 queries)

## Authentication
Zapier connects to Distributor OS via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection distributor-os
```

## Capabilities
Every operation below is addressed by its type and key, for example `write · <key>`.

Zap editor: every operation below is also configurable without code at zapier.com/apps/distributor-os/integrations — useful for a human in the loop, not usually for an agent calling the SDK or MCP directly.

### Getting Started
- **MCP**: connect Distributor OS through mcp.zapier.com to expose these operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`
- **CLI**: `npm install -D @zapier/zapier-sdk-cli` (see Authentication above to connect an account)

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · create_product`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "distributor-os", owner: "me" });

const { data } = await zapier.runAction({
  app: "distributor-os",
  actionType: "write",
  action: "create_product",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action distributor-os write create_product \
  --inputs '{}'
```

Paginating results: some calls return more than fits in one response — for example, listing Distributor OS's actions, or a search action's matches. In TypeScript, iterate with `.pages()` or `.items()` rather than assuming a single page:

```typescript
for await (const action of zapier.listActions({ app: "distributor-os" }).items()) {
  console.log(action.key);
}
```

From the shell, the same `--cursor`/`--max-items`/`--page-size` flags work on `list-actions` and directly on `run-action`. Add `--json` for output a script can parse instead of formatted text:

```bash
npx zapier-sdk list-actions distributor-os --page-size 50 --max-items 200 --json
```

### Events (7)

Events fire when something happens in Distributor OS. Use them to start a run.

#### New Distributor
Triggers when a new distributor joins your store.

- Type: read · Key: `new_distributor`
- Requires: nothing
- SDK: `runAction({ app: "distributor-os", actionType: "read", action: "new_distributor" })`
- CLI: `npx zapier-sdk run-action distributor-os read new_distributor`

#### New Order
Triggers when a new order is created in your store.

- Type: read · Key: `new_order`
- Requires: nothing
- SDK: `runAction({ app: "distributor-os", actionType: "read", action: "new_order" })`
- CLI: `npx zapier-sdk run-action distributor-os read new_order`

#### New Payment
Triggers when a payment is received for an order.

- Type: read · Key: `new_payment`
- Requires: nothing
- SDK: `runAction({ app: "distributor-os", actionType: "read", action: "new_payment" })`
- CLI: `npx zapier-sdk run-action distributor-os read new_payment`

#### New Product
Triggers when a new product is created in your store.

- Type: read · Key: `new_product`
- Requires: nothing
- SDK: `runAction({ app: "distributor-os", actionType: "read", action: "new_product" })`
- CLI: `npx zapier-sdk run-action distributor-os read new_product`

#### New Refund
Triggers when a refund is requested for an order.

- Type: read · Key: `new_refund`
- Requires: nothing
- SDK: `runAction({ app: "distributor-os", actionType: "read", action: "new_refund" })`
- CLI: `npx zapier-sdk run-action distributor-os read new_refund`

#### Order Updated
Triggers when an order status changes (e.g. shipped, delivered, cancelled).

- Type: read · Key: `order_updated`
- Requires: nothing
- SDK: `runAction({ app: "distributor-os", actionType: "read", action: "order_updated" })`
- CLI: `npx zapier-sdk run-action distributor-os read order_updated`

#### Payment Failed
Triggers when a payment attempt fails for an order.

- Type: read · Key: `payment_failed`
- Requires: nothing
- SDK: `runAction({ app: "distributor-os", actionType: "read", action: "payment_failed" })`
- CLI: `npx zapier-sdk run-action distributor-os read payment_failed`

### Functions (4)

Functions change something in Distributor OS.

#### Create Product
Creates a new product in your store.

- Type: write · Key: `create_product`
- Requires: name, sku, price
- Optional: description, inventory_quantity, status, product_type
- SDK: `runAction({ app: "distributor-os", actionType: "write", action: "create_product" })`
- CLI: `npx zapier-sdk run-action distributor-os write create_product`

#### Invite Distributor
Sends an invitation email to a new distributor to join your store.

- Type: write · Key: `invite_distributor`
- Requires: email, first_name
- Optional: last_name, company_name, phone, payment_terms, credit_limit, notes
- SDK: `runAction({ app: "distributor-os", actionType: "write", action: "invite_distributor" })`
- CLI: `npx zapier-sdk run-action distributor-os write invite_distributor`

#### Update Order Status
Updates the status of an existing order (e.g. mark as shipped, delivered, or cancelled).

- Type: write · Key: `update_order_status`
- Requires: order_id, status
- Optional: tracking_number, carrier, notes
- SDK: `runAction({ app: "distributor-os", actionType: "write", action: "update_order_status" })`
- CLI: `npx zapier-sdk run-action distributor-os write update_order_status`

#### Update Product
Updates an existing product in your store.

- Type: write · Key: `update_product`
- Requires: product_id
- Optional: name, price, description, inventory_quantity, status, product_type
- SDK: `runAction({ app: "distributor-os", actionType: "write", action: "update_product" })`
- CLI: `npx zapier-sdk run-action distributor-os write update_product`

### Queries (2)

Queries read from Distributor OS and return data. They change nothing.

#### Find Distributor by Email
Finds an existing distributor in your store by their email address.

- Type: search · Key: `find_distributor_by_email`
- Requires: email
- SDK: `runAction({ app: "distributor-os", actionType: "search", action: "find_distributor_by_email" })`
- CLI: `npx zapier-sdk run-action distributor-os search find_distributor_by_email`

#### Find Product by SKU
Finds an existing product in your store by its SKU code.

- Type: search · Key: `find_product_by_sku`
- Requires: sku
- SDK: `runAction({ app: "distributor-os", actionType: "search", action: "find_product_by_sku" })`
- CLI: `npx zapier-sdk run-action distributor-os search find_product_by_sku`

## Popular integrations
- [Distributor OS + Google Sheets](zapier.com/apps/distributor-os/integrations/google-sheets.md)
- [Distributor OS + Gmail](zapier.com/apps/distributor-os/integrations/gmail.md)
- [Distributor OS + Slack](zapier.com/apps/distributor-os/integrations/slack.md)
- [Distributor OS + Airtable](zapier.com/apps/distributor-os/integrations/airtable.md)
- [Distributor OS + ActiveCampaign](zapier.com/apps/distributor-os/integrations/activecampaign.md)

## Links
- Full app page: zapier.com/apps/distributor-os/integrations
- MCP: zapier.com/mcp/distributor-os
- SDK: npmjs.com/package/@zapier/zapier-sdk