# Zapier — PrimoRoute Integrations
> zapier.com/apps/primoroute/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
PrimoRoute is a transport management software designed to make your day to day operations easier.

- App slug: primoroute
- Operations published here: 8 (5 events, 3 functions)

## Authentication
Zapier connects to PrimoRoute 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 primoroute
```

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

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

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

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

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

- **CLI**:

```bash
npx zapier-sdk run-action primoroute write cancel_order \
  --inputs '{}'
```

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

### Events (5)

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

#### Delivery Completed
Triggers when a delivery route is completed.

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

#### Delivery Created
Triggers when a new delivery route is created.

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

#### New Order
Triggers when a new order is created in PrimoRoute.

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

#### Order Delivered
Triggers when an order is marked as delivered.

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

#### Order Status Changed
Triggers when an order's status changes.

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

### Functions (3)

Functions change something in PrimoRoute.

#### Cancel Order
Cancels an order in PrimoRoute. Orders on a route cannot be cancelled here.

- Type: write · Key: `cancel_order`
- Requires: id
- Optional: lang
- SDK: `runAction({ app: "primoroute", actionType: "write", action: "cancel_order" })`
- CLI: `npx zapier-sdk run-action primoroute write cancel_order`

#### Create Order
Creates a new order in PrimoRoute.

- Type: write · Key: `create_order`
- Requires: recipient__name, financial__totalAmount
- Optional: recipient__qidNumber, recipient__email, recipient__primaryPhoneNumber, recipient__zone, recipient__street, recipient__building, recipient__unitNo, recipient__district, recipient__city, recipient__postalCode, recipient__country, recipient__latitude, recipient__longitude, recipient__preferredLanguage, sender__depotId, sender__qidNumber, sender__name, sender__email, sender__primaryPhoneNumber, sender__zone, sender__street, sender__building, sender__unitNo, sender__district, sender__city, sender__postalCode, sender__country, sender__latitude, sender__longitude, description, sourceType, logistics__totalWeight, logistics__totalVolume, logistics__pieceCount, logistics__serviceTimeMinutes, logistics__priority, logistics__specialInstruction, logistics__specialInstructionNote, financial__paymentMethod, financial__vatRate, financial__currency, timeline__orderDate, timeline__deliveryStartDate, timeline__deliveryDate, timeline__noDeliveryTimeConstraint, timeline__pickupStartDate, timeline__pickupEndDate, force, lang
- SDK: `runAction({ app: "primoroute", actionType: "write", action: "create_order" })`
- CLI: `npx zapier-sdk run-action primoroute write create_order`

#### Update Order
Updates an existing order.

- Type: write · Key: `update_order`
- Requires: id
- Optional: description, status, recipient__qidNumber, ecipient__name, recipient__email, recipient__primaryPhoneNumber, recipient__zone, recipient__street, recipient__building, recipient__unitNo, recipient__district, recipient__city, recipient__postalCode, recipient__country, recipient__latitude, recipient__longitude, recipient__preferredLanguage, sender__depotId, sender__qidNumber, sender__name, sender__email, sender__primaryPhoneNumber, sender__zone, sender__street, sender__building, sender__unitNo, sender__district, sender__city, sender__postalCode, sender__country, sender__latitude, sender__longitude, logistics__deliveryId, logistics__totalWeight, logistics__totalVolume, logistics__pieceCount, logistics__serviceTimeMinutes, logistics__priority, logistics__specialInstruction, logistics__specialInstructionNote, financial__totalAmount, financial__paymentMethod, financial__vatRate, financial__currency, execution__proofPhotoUrl, execution__digitalSignature, execution__failReason, timeline__orderDate, timeline__deliveryStartDate, timeline__deliveryDate, timeline__noDeliveryTimeConstraint, timeline__pickupStartDate, timeline__pickupEndDate
- SDK: `runAction({ app: "primoroute", actionType: "write", action: "update_order" })`
- CLI: `npx zapier-sdk run-action primoroute write update_order`

## Popular integrations
- [PrimoRoute + Airtable](zapier.com/apps/primoroute/integrations/airtable.md)
- [PrimoRoute + Shopify](zapier.com/apps/primoroute/integrations/shopify.md)
- [PrimoRoute + ActiveCampaign](zapier.com/apps/primoroute/integrations/activecampaign.md)

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