# Order Desk — Pipedream Connect

> Save time and use Order Desk to automate your ecommerce order management workflow with 300+ integrations and counting!

- API slug: `order_desk` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Business Management
- Website: https://www.orderdesk.com/
- This page (HTML): https://pipedream.com/apps/order-desk
- Tools: 5 actions · 2 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: order_desk`

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

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

const { tools } = await mcp.listTools()

// e.g. run Create Order:
const result = await mcp.callTool({
  name: "order_desk-create-order",
  arguments: {
    order_items: ["Order Items"],
    customer_first_name: "Customer First Name",
  },
})
```

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

## API proxy

For a Order Desk 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.orderdesk.me/api/v2/test

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcHAub3JkZXJkZXNrLm1lL2FwaS92Mi90ZXN0?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: "order_desk-create-order",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    order_desk: { authProvisionId: "apn_xxxxxxx" },
    order_items: ["Order Items"],
    customer_first_name: "Customer First Name",
  },
})
```

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

## Actions (5)

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

Create Order See the documentation.

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

### `order_desk-find-order` — Find Order (Read-only)

Find Order See the documentation.

Full schema: https://pipedream.com/apps/order-desk/actions/find-order.md

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

Retrieves available options for the Order ID field.

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

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

List Orders based on a search criteria See the documentation.

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

### `order_desk-update-order` — Update Order (Write)

Update Order See the documentation.

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

## Triggers (2)

### `order_desk-new-order-created` — New Order Created (Polling)

Emit new event a new order is created

Full schema: https://pipedream.com/apps/order-desk/triggers/new-order-created.md

### `order_desk-new-order-updated` — New Order Updated (Polling)

Emit new event a new order is updated

Full schema: https://pipedream.com/apps/order-desk/triggers/new-order-updated.md

---

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