# Trunkrs — Pipedream Connect

> The specialist in Fresh & Frozen delivery

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

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

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

const { tools } = await mcp.listTools()

// e.g. run Cancel Shipment:
const result = await mcp.callTool({
  name: "trunkrs-cancel-shipment",
  arguments: {
    trunkrsNr: "Trunkrs Number",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.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: "trunkrs-cancel-shipment",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    trunkrs: { authProvisionId: "apn_xxxxxxx" },
    trunkrsNr: "Trunkrs Number",
  },
})
```

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

## Actions (7)

### `trunkrs-cancel-shipment` — Cancel Shipment (Write)

Cancel a shipment. See the documentation

Full schema: https://pipedream.com/apps/trunkrs/actions/cancel-shipment.md

### `trunkrs-create-shipment` — Create Shipment (Write)

Create a new shipment. See the documentation

Full schema: https://pipedream.com/apps/trunkrs/actions/create-shipment.md

### `trunkrs-get-shipment` — Get Shipment (Read-only)

Get a shipment by its Trunkrs number. See the documentation

Full schema: https://pipedream.com/apps/trunkrs/actions/get-shipment.md

### `trunkrs-get-shipment-state` — Get Shipment State (Read-only)

Get the state of a shipment. See the documentation

Full schema: https://pipedream.com/apps/trunkrs/actions/get-shipment-state.md

### `trunkrs-list-shipments` — List Shipments (Read-only)

List all shipments. See the documentation

Full schema: https://pipedream.com/apps/trunkrs/actions/list-shipments.md

### `trunkrs-list-time-slots` — List Time Slots (Read-only)

List time slots. See the documentation

Full schema: https://pipedream.com/apps/trunkrs/actions/list-time-slots.md

### `trunkrs-list-trunkrs-nr-options` — List Trunkrs Number Options (Read-only)

Retrieves available options for the Trunkrs Number field.

Full schema: https://pipedream.com/apps/trunkrs/actions/list-trunkrs-nr-options.md

## Triggers (4)

### `trunkrs-new-shipment-created` — New Shipment Created (Instant) (Instant)

Emit new event when a new shipment is created. See the documentation

Full schema: https://pipedream.com/apps/trunkrs/triggers/new-shipment-created.md

### `trunkrs-shipment-cancelled` — Shipment Cancelled (Instant) (Instant)

Emit new event when a shipment is cancelled. See the documentation

Full schema: https://pipedream.com/apps/trunkrs/triggers/shipment-cancelled.md

### `trunkrs-shipment-reviewed` — Shipment Reviewed (Instant) (Instant)

Emit new event when a shipment is reviewed. See the documentation

Full schema: https://pipedream.com/apps/trunkrs/triggers/shipment-reviewed.md

### `trunkrs-shipment-state-updated` — Shipment State Updated (Instant) (Instant)

Emit new event when a shipment state is updated. See the documentation

Full schema: https://pipedream.com/apps/trunkrs/triggers/shipment-state-updated.md

---

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