# Zapier — Flexport Integrations
> zapier.com/apps/flexport/integrations
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Identity
Flexport is a service that connects freight and fulfillment logistics to automate orders, shipments, and event tracking across your workflows.

- App slug: flexport
- Operations published here: 12 (3 events, 3 functions, 5 queries, 1 search-or-write action)

## Authentication
Zapier connects to Flexport via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection flexport
```

## Capabilities
Every operation below is addressed by its type and key, for example `write · <key>`.

Zap editor: every operation below is also configurable without code at zapier.com/apps/flexport/integrations — useful for a human in the loop, not usually for an agent calling the SDK or MCP directly.

### Getting Started
- **MCP**: connect Flexport through mcp.zapier.com to expose these operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`
- **CLI**: `npm install -D @zapier/zapier-sdk-cli` (see Authentication above to connect an account)

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · create_product`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "flexport", owner: "me" });

const { data } = await zapier.runAction({
  app: "flexport",
  actionType: "write",
  action: "create_product",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action flexport write create_product \
  --inputs '{}'
```

Paginating results: some calls return more than fits in one response — for example, listing Flexport's actions, or a search action's matches. In TypeScript, iterate with `.pages()` or `.items()` rather than assuming a single page:

```typescript
for await (const action of zapier.listActions({ app: "flexport" }).items()) {
  console.log(action.key);
}
```

From the shell, the same `--cursor`/`--max-items`/`--page-size` flags work on `list-actions` and directly on `run-action`. Add `--json` for output a script can parse instead of formatted text:

```bash
npx zapier-sdk list-actions flexport --page-size 50 --max-items 200 --json
```

### Events (3)

Events fire when something happens in Flexport. Use them to start a run.

#### New Inbound Shipment
Triggers when a new inbound freight shipment appears in Flexport, optionally filtered by transportation mode or status. Requires freight API credentials on the connection.

- Type: read · Key: `new_inbound_shipment`
- Requires: nothing
- Optional: transportation_mode, status
- SDK: `runAction({ app: "flexport", actionType: "read", action: "new_inbound_shipment" })`
- CLI: `npx zapier-sdk run-action flexport read new_inbound_shipment`

#### New Order
Triggers when a new fulfillment order is submitted to Flexport.

- Type: read · Key: `new_order`
- Requires: nothing
- SDK: `runAction({ app: "flexport", actionType: "read", action: "new_order" })`
- CLI: `npx zapier-sdk run-action flexport read new_order`

#### Order Status Changed
Triggers when an order moves through its fulfillment lifecycle (submitted, picked, packed, dispatched, shipped, delivered, held, or cancelled), optionally filtered to a single status.

- Type: read · Key: `order_status_changed`
- Requires: nothing
- Optional: status_filter
- SDK: `runAction({ app: "flexport", actionType: "read", action: "order_status_changed" })`
- CLI: `npx zapier-sdk run-action flexport read order_status_changed`

### Functions (3)

Functions change something in Flexport.

#### Create Product
Creates a new product in the Flexport catalog.

- Type: write · Key: `create_product`
- Requires: merchant_sku, name
- Optional: category, weight, weight_unit, length, width, height, length_unit, origin_country, tariff_code, customs_value, customs_description
- SDK: `runAction({ app: "flexport", actionType: "write", action: "create_product" })`
- CLI: `npx zapier-sdk run-action flexport write create_product`

#### Update Product
Updates an existing product by its Flexport Logistics SKU (DSKU). Only the fields you provide are changed.

- Type: write · Key: `update_product`
- Requires: logistics_sku
- Optional: name, merchant_sku, category, weight, weight_unit, length, width, height, length_unit, origin_country, tariff_code, customs_value, customs_description
- SDK: `runAction({ app: "flexport", actionType: "write", action: "update_product" })`
- CLI: `npx zapier-sdk run-action flexport write update_product`

#### Upload Shipment Document
Uploads a document (for example a completed pro forma invoice) and attaches it to a freight shipment. Requires freight API credentials on the connection.

- Type: write · Key: `upload_document`
- Requires: shipment_id, file, file_name, document_type
- Optional: mime_type, memo
- SDK: `runAction({ app: "flexport", actionType: "write", action: "upload_document" })`
- CLI: `npx zapier-sdk run-action flexport write upload_document`

### Queries (5)

Queries read from Flexport and return data. They change nothing.

#### Find Commercial Invoice
Finds a commercial invoice by shipment, invoice number, or ID, including line items with units and declared values. Requires freight API credentials on the connection.

- Type: search · Key: `find_commercial_invoice`
- Requires: search_by, value
- SDK: `runAction({ app: "flexport", actionType: "search", action: "find_commercial_invoice" })`
- CLI: `npx zapier-sdk run-action flexport search find_commercial_invoice`

#### Find Customs Entry
Finds a customs entry by its entry number and returns it with the linked shipment (Flex ID and house bill number) for post-entry verification. Requires freight API credentials on the connection.

- Type: search · Key: `find_customs_entry`
- Requires: entry_number
- SDK: `runAction({ app: "flexport", actionType: "search", action: "find_customs_entry" })`
- CLI: `npx zapier-sdk run-action flexport search find_customs_entry`

#### Find Document
Finds a document attached to a freight shipment (for example the commercial invoice PDF or billing packet), including the file itself. Requires freight API credentials on the connection.

- Type: search · Key: `find_document`
- Requires: shipment_id
- Optional: document_type
- SDK: `runAction({ app: "flexport", actionType: "search", action: "find_document" })`
- CLI: `npx zapier-sdk run-action flexport search find_document`

#### Find Order
Finds a fulfillment order by your External Order ID or the Flexport Order ID.

- Type: search · Key: `find_order`
- Requires: search_by, order_id
- SDK: `runAction({ app: "flexport", actionType: "search", action: "find_order" })`
- CLI: `npx zapier-sdk run-action flexport search find_order`

#### Find Product
Finds a product by its exact Merchant SKU or Flexport Logistics SKU (DSKU).

- Type: search · Key: `find_product`
- Requires: search_by, sku
- SDK: `runAction({ app: "flexport", actionType: "search", action: "find_product" })`
- CLI: `npx zapier-sdk run-action flexport search find_product`

### Search or Write Actions (1)

These operations search for a match first, and create one only if nothing is found.

#### Find or Create Product
Finds a product by SKU, creating it if none exists.

- Type: search_or_write · Key: `find_product`
- Requires: search_by, sku, merchant_sku, name
- Optional: category, weight, weight_unit, length, width, height, length_unit, origin_country, tariff_code, customs_value, customs_description
- SDK: `runAction({ app: "flexport", actionType: "search_or_write", action: "find_product" })`
- CLI: `npx zapier-sdk run-action flexport search_or_write find_product`

## Popular integrations
- [Flexport + Airtable](zapier.com/apps/flexport/integrations/airtable.md)
- [Flexport + ActiveCampaign](zapier.com/apps/flexport/integrations/activecampaign.md)

## Links
- Full app page: zapier.com/apps/flexport/integrations
- MCP: zapier.com/mcp/flexport
- SDK: npmjs.com/package/@zapier/zapier-sdk