# Billbee — Pipedream Connect

> The simple multichannel software in the Cloud.

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

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

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

const { tools } = await mcp.listTools()

// e.g. run Add Shipment To Order:
const result = await mcp.callTool({
  name: "billbee-add-shipment-to-order",
  arguments: {
    orderId: "Order ID",
    shippingProviderId: "Shipping Provider ID",
  },
})
```

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

## API proxy

For a Billbee 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.billbee.io/api/v1/shopaccounts

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcHAuYmlsbGJlZS5pby9hcGkvdjEvc2hvcGFjY291bnRz?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: "billbee-add-shipment-to-order",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    billbee: { authProvisionId: "apn_xxxxxxx" },
    orderId: "Order ID",
    shippingProviderId: "Shipping Provider ID",
  },
})
```

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

## Actions (19)

### `billbee-add-shipment-to-order` — Add Shipment To Order (Write)

Add a shipment to an existing order. See the documentation

Full schema: https://pipedream.com/apps/billbee/actions/add-shipment-to-order.md

### `billbee-change-order-state` — Change Order State (Write)

Change the state of an order. See the documentation

Full schema: https://pipedream.com/apps/billbee/actions/change-order-state.md

### `billbee-create-invoice-for-order` — Create Invoice For Order (Write)

Create an invoice for an existing order. See the documentation

Full schema: https://pipedream.com/apps/billbee/actions/create-invoice-for-order.md

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

Create a new order. See the documentation

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

### `billbee-get-order-by-id` — Get Order By ID (Read-only)

Retrieve a specific order by its ID from Billbee. See the documentation

Full schema: https://pipedream.com/apps/billbee/actions/get-order-by-id.md

### `billbee-list-carrier-id-options` — List Carrier ID Options (Read-only)

Retrieves available options for the Carrier ID field.

Full schema: https://pipedream.com/apps/billbee/actions/list-carrier-id-options.md

### `billbee-list-cloud-storage-id-options` — List Cloud Storage ID Options (Read-only)

Retrieves available options for the Cloud Storage ID field.

Full schema: https://pipedream.com/apps/billbee/actions/list-cloud-storage-id-options.md

### `billbee-list-customer-id-options` — List Customer ID Options (Read-only)

Retrieves available options for the Customer ID field.

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

### `billbee-list-customers` — List Customers (Read-only)

Retrieve a list of customers. See the documentation

Full schema: https://pipedream.com/apps/billbee/actions/list-customers.md

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

Retrieves available options for the Order ID field.

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

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

Retrieves available options for the Order State ID field.

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

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

Retrieve a list of orders. See the documentation

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

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

Retrieve a list of products. See the documentation

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

### `billbee-list-shipment-type-options` — List Shipment Type Options (Read-only)

Retrieves available options for the Shipment Type field.

Full schema: https://pipedream.com/apps/billbee/actions/list-shipment-type-options.md

### `billbee-list-shipping-provider-id-options` — List Shipping Provider ID Options (Read-only)

Retrieves available options for the Shipping Provider ID field.

Full schema: https://pipedream.com/apps/billbee/actions/list-shipping-provider-id-options.md

### `billbee-list-shop-id-options` — List Shop ID Options (Read-only)

Retrieves available options for the Shop ID field.

Full schema: https://pipedream.com/apps/billbee/actions/list-shop-id-options.md

### `billbee-list-stock-id-options` — List Stock ID Options (Read-only)

Retrieves available options for the Stock ID field.

Full schema: https://pipedream.com/apps/billbee/actions/list-stock-id-options.md

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

Partially update an existing order. See the documentation

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

### `billbee-update-stock` — Update Stock (Write)

Update the stock level for a single product. See the documentation

Full schema: https://pipedream.com/apps/billbee/actions/update-stock.md

---

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