# Zapier — DeftShip Integrations
> zapier.com/apps/deftship/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
DeftShip is a custom-built, cloud-based logistics solution designed to save customers time, effort, and money while building your businesses.

- App slug: deftship
- Operations published here: 7 (4 events, 3 functions)

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

- Auth type: oauth
- 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 deftship
```

## 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/deftship/integrations — useful for a human in the loop, not usually for an agent calling the SDK or MCP directly.

### Getting Started
- **MCP**: connect DeftShip 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 · buy_insurance`.
- **SDK**:

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

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

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

- **CLI**:

```bash
npx zapier-sdk run-action deftship write buy_insurance \
  --inputs '{}'
```

Paginating results: some calls return more than fits in one response — for example, listing DeftShip'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: "deftship" }).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 deftship --page-size 50 --max-items 200 --json
```

### Events (4)

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

#### New Freight Order Created
Triggers when a new freight order is created.

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

#### New Freight Shipment Created
Triggers when a new freight shipment is created.

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

#### New Parcel Order Created
Triggers when a new parcel order is created.

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

#### New Parcel Shipment Created
Triggers when a new parcel shipment is created.

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

### Functions (3)

Functions change something in DeftShip.

#### Buy Insurance
Book an Insurance

- Type: write · Key: `buy_insurance`
- Requires: shipment_date, shipment_type, carrier, service_code, from_address_name, from_address_attention, from_address_telephone, from_address_street_1, from_address_city, from_address_state, from_address_country, from_address_zip, to_address_name, to_address_attention, to_address_telephone, to_address_street_1, to_address_city, to_address_state, to_address_zip, to_address_country, tracking_number, item_quantity, item_price, item_description
- Optional: from_address_email, from_address_street_2, from_address_street_3, to_address_email, to_address_street_2, to_address_street_3
- SDK: `runAction({ app: "deftship", actionType: "write", action: "buy_insurance" })`
- CLI: `npx zapier-sdk run-action deftship write buy_insurance`

#### Create Freight Order
Triggers when a new order is created.

- Type: write · Key: `create_freight_order`
- Requires: pickup_date, from_address_name, from_address_telephone, from_address_street_1, from_address_city, from_address_state, from_address_zip, from_address_country, from_address_opening_time, from_address_closing_time, from_address_lift_gate, from_address_appointment, from_address_residential, from_address_inside, from_address_limited_access, to_address_name, to_address_telephone, to_address_street_1, to_address_city, to_address_state, to_address_zip, to_address_country, to_address_opening_time, to_address_closing_time, to_address_lift_gate, to_address_appointment, to_address_residential, to_address_inside, to_address_limited_access, to_address_is_amazon_facility, package_type, weight, count, length, width, height, is_hazmat, is_used_items, is_stackable, carrier_insurance, description, sku
- Optional: from_address_attention, from_address_email, from_address_street_2, from_address_street_3, from_address_instructions, to_address_attention, to_address_email, to_address_street_2, to_address_street_3, to_address_instructions, price
- SDK: `runAction({ app: "deftship", actionType: "write", action: "create_freight_order" })`
- CLI: `npx zapier-sdk run-action deftship write create_freight_order`

#### Create Parcel Order
Create Parcel Order

- Type: write · Key: `create_parcel_order`
- Requires: from_address_name, from_address_telephone, from_address_street_1, from_address_city, from_address_state, from_address_country, from_address_zip, to_address_name, to_address_telephone, to_address_street_1, to_address_city, to_address_state, to_address_zip, to_address_country, count, weight, length, width, height, signature, insurance, hazmat
- Optional: from_address_attention, from_address_email, from_address_street_2, from_address_street_3, to_address_attention, to_address_email, to_address_street_2, to_address_street_3, reference_2, item_description, item_price, item_quantity, item_sku, content_type, country_of_manufacture
- SDK: `runAction({ app: "deftship", actionType: "write", action: "create_parcel_order" })`
- CLI: `npx zapier-sdk run-action deftship write create_parcel_order`

## Popular integrations
- [DeftShip + Ship24 Order Tracking](zapier.com/apps/deftship/integrations/ship24-order-tracking.md)

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