# List Orders — Bol.com

> List orders. See the documentation

- Key: `bol_com-list-orders`
- Type: Action (Read-only)
- Version: 0.0.2
- App: Bol.com (`bol_com`) — https://pipedream.com/apps/bol-com.md
- This page (HTML): https://pipedream.com/apps/bol-com/actions/list-orders
- Hints: read-only · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/bol_com/actions/list-orders/list-orders.mjs

## Description

List orders. [See the documentation](https://api.bol.com/retailer/public/redoc/v10/retailer.html#tag/Orders/operation/get-orders)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `page` | `integer` | No | The requested page number with a page size of 50 items |
| `fulfilmentMethod` | `string` | No | Fulfilled by the retailer (FBR) or fulfilled by bol.com (FBB). In order to retrieve both FBR and FBB orders, ALL can be used as a parameter. |
| `status` | `string` | No | You can filter orders based on their status with the following options: all orders, which include every order regardless of its current status; open orders, which show only the active orders excluding those that have been shipped or cancelled; and shipped orders, which display only the orders that have been shipped. |
| `changeIntervalMinute` | `integer` | No | Indicate the period in minutes, to filter order items based on their most recent change |
| `latestChangeDate` | `string` | No | To filter on the date on which the latest change was performed on an order item. Up to 3 months of history is supported. |
| `vvb` | `boolean` | No | Filters results to include only orders fulfilled through VVB |

## Run it

**MCP**

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

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

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "bol_com-list-orders",
  arguments: {
    page: 10,
    fulfilmentMethod: "Fulfilment Method",
  },
})
```

**TypeScript**

```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: "bol_com-list-orders",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    bol_com: { authProvisionId: "apn_xxxxxxx" },
    page: 10,
    fulfilmentMethod: "Fulfilment Method",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "bol_com-list-orders",
    "configured_props": {
      "bol_com": { "authProvisionId": "apn_xxxxxxx" },
      "page": 10,
      "fulfilmentMethod": "Fulfilment Method"
    }
  }'
```

---

- App: https://pipedream.com/apps/bol-com.md · All apps: https://pipedream.com/apps
