# WooCommerce — Pipedream Connect

> WooCommerce is the open-source ecommerce platform for WordPress.

- API slug: `woocommerce` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Commerce
- Website: https://woocommerce.com
- This page (HTML): https://pipedream.com/apps/woocommerce
- Tools: 22 actions · 4 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: woocommerce`

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

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

const { tools } = await mcp.listTools()

// e.g. run Add Order Note:
const result = await mcp.callTool({
  name: "woocommerce-add-order-note",
  arguments: {
    orderId: 10,
    note: "Note",
  },
})
```

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

## API proxy

For a WooCommerce 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://api.example.com/v1/me

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkuZXhhbXBsZS5jb20vdjEvbWU?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: "woocommerce-add-order-note",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    woocommerce: { authProvisionId: "apn_xxxxxxx" },
    orderId: 10,
    note: "Note",
  },
})
```

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

## Actions (22)

### `woocommerce-add-order-note` — Add Order Note (Write)

Create a new note for an order. See the docs

Full schema: https://pipedream.com/apps/woocommerce/actions/add-order-note.md

### `woocommerce-create-customer` — Create Customer (Write)

Creates a new customer. See the docs

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

### `woocommerce-create-order` — Create Order (Write)

Creates a new order. See the docs

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

### `woocommerce-create-product` — Create Product (Write)

Creates a new product. See the docs

Full schema: https://pipedream.com/apps/woocommerce/actions/create-product.md

### `woocommerce-create-refund` — Create Refund (Write)

Create a new refund for an order. See the docs

Full schema: https://pipedream.com/apps/woocommerce/actions/create-refund.md

### `woocommerce-delete-order` — Delete Order (Write)

Delete an existing order. See the docs

Full schema: https://pipedream.com/apps/woocommerce/actions/delete-order.md

### `woocommerce-get-customer` — Get Customer (Read-only)

Retrieve a specific customer. See the docs

Full schema: https://pipedream.com/apps/woocommerce/actions/get-customer.md

### `woocommerce-get-order` — Get Order (Read-only)

Retrieve a specific order. See the docs

Full schema: https://pipedream.com/apps/woocommerce/actions/get-order.md

### `woocommerce-get-order-note` — Get Order Note (Read-only)

Retrieve a specific order note. See the docs

Full schema: https://pipedream.com/apps/woocommerce/actions/get-order-note.md

### `woocommerce-get-product` — Get Product (Read-only)

Retrieve a specific product. See the docs

Full schema: https://pipedream.com/apps/woocommerce/actions/get-product.md

### `woocommerce-list-product-categories-options` — List Categories Options (Read-only)

Retrieves available options for the Categories field.

Full schema: https://pipedream.com/apps/woocommerce/actions/list-product-categories-options.md

### `woocommerce-list-customer-options` — List Customer Options (Read-only)

Retrieves available options for the Customer field.

Full schema: https://pipedream.com/apps/woocommerce/actions/list-customer-options.md

### `woocommerce-list-order-id-options` — List Order ID Options (Read-only)

Retrieves available options for the Order ID field.

Full schema: https://pipedream.com/apps/woocommerce/actions/list-order-id-options.md

### `woocommerce-list-order-notes` — List Order Notes (Read-only)

Retrieve a list of notes for a specific order. See the docs

Full schema: https://pipedream.com/apps/woocommerce/actions/list-order-notes.md

### `woocommerce-list-orders` — List Orders (Read-only)

Retrieve a list of orders. See the docs

Full schema: https://pipedream.com/apps/woocommerce/actions/list-orders.md

### `woocommerce-list-payment-method-options` — List Payment Method Options (Read-only)

Retrieves available options for the Payment Method field.

Full schema: https://pipedream.com/apps/woocommerce/actions/list-payment-method-options.md

### `woocommerce-list-product-id-options` — List Product ID Options (Read-only)

Retrieves available options for the Product ID field.

Full schema: https://pipedream.com/apps/woocommerce/actions/list-product-id-options.md

### `woocommerce-list-products` — List Products (Read-only)

Retrieve a list of products. See the docs

Full schema: https://pipedream.com/apps/woocommerce/actions/list-products.md

### `woocommerce-list-products-options` — List Products Options (Read-only)

Retrieves available options for the Products field.

Full schema: https://pipedream.com/apps/woocommerce/actions/list-products-options.md

### `woocommerce-search-customers` — Search Customers (Read-only)

Finds a customer by searching. See the docs

Full schema: https://pipedream.com/apps/woocommerce/actions/search-customers.md

### `woocommerce-update-order-status` — Update Order Status (Write)

Update the status of a specific order. See the docs

Full schema: https://pipedream.com/apps/woocommerce/actions/update-order-status.md

### `woocommerce-update-product` — Update Product (Write)

Updates a product. See the docs

Full schema: https://pipedream.com/apps/woocommerce/actions/update-product.md

## Triggers (4)

### `woocommerce-new-coupon-event` — New Coupon Event (Instant) (Instant)

Emit new event each time the specified coupon event(s) occur

Full schema: https://pipedream.com/apps/woocommerce/triggers/new-coupon-event.md

### `woocommerce-new-customer-event` — New Customer Event (Instant) (Instant)

Emit new event each time the specified customer event(s) occur

Full schema: https://pipedream.com/apps/woocommerce/triggers/new-customer-event.md

### `woocommerce-new-order-event` — New Order Event (Instant) (Instant)

Emit new event each time the specified order event(s) occur

Full schema: https://pipedream.com/apps/woocommerce/triggers/new-order-event.md

### `woocommerce-new-product-event` — New Product Event (Instant) (Instant)

Emit new event each time the specified product event(s) occur

Full schema: https://pipedream.com/apps/woocommerce/triggers/new-product-event.md

---

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