---
agent:
  instructions: "Use this search API to find a ready-to-deploy Next Gen Zap for what the user wants to automate, with keywords or a natural-language description, instead of reading every zap. Results are returned in Markdown, each with the zap's SKILL.md install guide."
  endpoint: "https://zapier.sh/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://zapier.sh/developers/"
---

# Commerce Layer + Resend Integrations: Connect with Zapier MCP
> zapier.com/apps/commerce-layer/integrations/resend
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Commerce Layer and Resend in minutes. Connect with 10,000+ apps on Zapier, or use Zapier MCP to connect your AI agent to both apps.

## 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).

## Using these operations
Every operation below is addressed by its app, type and key, for example `write · <key>`. Events from one app can start a run that calls functions in the other.

- **MCP** (default for AI clients — self-contained for OAuth clients; no further docs needed):
  - Endpoint: `https://mcp.zapier.com/api/v1/connect` (Streamable HTTP only; SSE is not supported).
  - Auth: OAuth 2.0 + PKCE + Dynamic Client Registration. Do not create a server at `mcp.zapier.com` or ask for an API token; Zapier auto-provisions the server during browser sign-in.
  - Client setup: Claude Code `claude mcp add --transport http zapier https://mcp.zapier.com/api/v1/connect`; Cursor `mcp.json` `{ "type": "http", "url": "https://mcp.zapier.com/api/v1/connect" }`; VS Code and other clients `mcp.json` `{ "type": "http", "url": "https://mcp.zapier.com/api/v1/connect" }`; OpenCode `opencode.json` `{ "type": "remote", "url": "https://mcp.zapier.com/api/v1/connect" }`; Terminal auto-installer `npx @zapier/install-zapier`.
  - Setup guides: Claude https://docs.zapier.com/mcp/get-started/connect/claude.md; Claude Code https://docs.zapier.com/mcp/get-started/connect/claude-code.md; ChatGPT https://docs.zapier.com/mcp/get-started/connect/chatgpt.md; Cursor https://docs.zapier.com/mcp/get-started/connect/cursor.md; Codex https://docs.zapier.com/mcp/get-started/connect/codex.md.
  - After sign-in: call `discover_zapier_actions` for `commerce-layer` and `resend`, then `enable_zapier_action`. If Commerce Layer or Resend isn't connected in Zapier yet, running an action returns a browser OAuth link for the user.
- **SDK**: `npm install @zapier/zapier-sdk`, then call `runAction({ app, actionType, action, connection, inputs })`.
- **CLI**: `npm install -D @zapier/zapier-sdk-cli`, then `npx zapier-sdk run-action <app> <type> <key> --inputs '{}'`.

### Example
- **MCP**: once Add Contact to Segment is enabled, call `resend_add_contact_to_segment`. Each operation below lists its MCP tool name.
- **SDK**:

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

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

const { data } = await zapier.runAction({
  app: "resend",
  actionType: "write",
  action: "add_contact_segment",
  connection: connection.id,
  inputs: {
    contact_id: "", // Contact Id
    segment_id: "", // Segment Id
  },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action resend write add_contact_segment \
  --inputs '{"contact_id":"","segment_id":""}'
```

## Commerce Layer

### Identity
Commerce Layer is a lightning fast, super flexible and ultra secure REST API that lets you build cutting-edge ecommerce.

- App slug: commerce-layer
- Operations published here: 70 (24 events, 20 functions, 13 queries, 13 search-or-write actions)

### Authentication
Zapier connects to Commerce Layer 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.130.2 and @zapier/zapier-sdk-cli v0.93.2; 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 commerce-layer
```

### Capabilities

#### Events (24)

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

##### New Attachment
Triggers when a new Attachment is created.

- Type: read · Key: `attachmentList`
- Requires: nothing
- MCP tool: `commerce_layer_new_attachment` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "read", action: "attachmentList" })`
- CLI: `npx zapier-sdk run-action commerce-layer read attachmentList`

##### New Customer Event
Triggers when a given customer event is fired.

- Type: read · Key: `customer`
- Requires: event
- Optional: include_resources
- MCP tool: `commerce_layer_new_customer_event` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "read", action: "customer" })`
- CLI: `npx zapier-sdk run-action commerce-layer read customer`

##### New Customer
Triggers when a new Customer is created.

- Type: read · Key: `customerList`
- Requires: nothing
- MCP tool: `commerce_layer_new_customer` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "read", action: "customerList" })`
- CLI: `npx zapier-sdk run-action commerce-layer read customerList`

##### New Customer Address Event
Triggers when a customer address is created.

- Type: read · Key: `customer_address`
- Requires: event
- MCP tool: `commerce_layer_new_customer_address_event` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "read", action: "customer_address" })`
- CLI: `npx zapier-sdk run-action commerce-layer read customer_address`

##### New Customer Subscription Event
Triggers when a given customer_subscription event (one of create or destroy) is fired.

- Type: read · Key: `customer_subscription`
- Requires: event
- MCP tool: `commerce_layer_new_customer_subscription_event` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "read", action: "customer_subscription" })`
- CLI: `npx zapier-sdk run-action commerce-layer read customer_subscription`

##### New Customer Password Reset Event
Triggers when a customer password reset is requested.

- Type: read · Key: `cutomer_password_reset`
- Requires: event
- MCP tool: `commerce_layer_new_customer_password_reset_event` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "read", action: "cutomer_password_reset" })`
- CLI: `npx zapier-sdk run-action commerce-layer read cutomer_password_reset`

##### New Gift Card Event
Triggers when a given gift card event (one of purchase, activate, deactivate, redeem) is fired.

- Type: read · Key: `gift_card`
- Requires: event
- MCP tool: `commerce_layer_new_gift_card_event` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "read", action: "gift_card" })`
- CLI: `npx zapier-sdk run-action commerce-layer read gift_card`

##### New Gift Card
Triggers when a new Gift Card is created.

- Type: read · Key: `gift_cardList`
- Requires: nothing
- MCP tool: `commerce_layer_new_gift_card` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "read", action: "gift_cardList" })`
- CLI: `npx zapier-sdk run-action commerce-layer read gift_cardList`

##### New Order Event
Triggers when a given order event (one of pending, place, approve, cancel, pay, start_fulfilling, fulfill is fired).

- Type: read · Key: `order`
- Requires: event
- Optional: name, include_resources
- MCP tool: `commerce_layer_new_order_event` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "read", action: "order" })`
- CLI: `npx zapier-sdk run-action commerce-layer read order`

##### New Order
Triggers when a new Order is created.

- Type: read · Key: `orderList`
- Requires: nothing
- MCP tool: `commerce_layer_new_order` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "read", action: "orderList" })`
- CLI: `npx zapier-sdk run-action commerce-layer read orderList`

##### New Parcel Event
Triggers when a new parcel is created.

- Type: read · Key: `parcel`
- Requires: nothing
- MCP tool: `commerce_layer_new_parcel_event` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "read", action: "parcel" })`
- CLI: `npx zapier-sdk run-action commerce-layer read parcel`

##### New Price
Triggers when a new Price is created.

- Type: read · Key: `priceList`
- Requires: nothing
- MCP tool: `commerce_layer_new_price` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "read", action: "priceList" })`
- CLI: `npx zapier-sdk run-action commerce-layer read priceList`

##### New Price Import
Triggers when a new Price import is created.

- Type: read · Key: `price_importList`
- Requires: nothing
- MCP tool: `commerce_layer_new_price_import` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "read", action: "price_importList" })`
- CLI: `npx zapier-sdk run-action commerce-layer read price_importList`

##### New Price List
Triggers when a new Price List is created.

- Type: read · Key: `price_listList`
- Requires: nothing
- MCP tool: `commerce_layer_new_price_list` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "read", action: "price_listList" })`
- CLI: `npx zapier-sdk run-action commerce-layer read price_listList`

##### New Refund Event
Triggers when a given refund event is fired.

- Type: read · Key: `refund`
- Requires: event
- Optional: include_resources
- MCP tool: `commerce_layer_new_refund_event` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "read", action: "refund" })`
- CLI: `npx zapier-sdk run-action commerce-layer read refund`

##### New Return Event
Triggers when a given return event is fired.

- Type: read · Key: `return`
- Requires: event
- MCP tool: `commerce_layer_new_return_event` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "read", action: "return" })`
- CLI: `npx zapier-sdk run-action commerce-layer read return`

##### New Shipment Event
Triggers when a given shipment event (one of upcoming, cancel, on_hold, picking, packing, ready_to_ship, ship is fired).

- Type: read · Key: `shipment`
- Requires: event
- Optional: include_resources
- MCP tool: `commerce_layer_new_shipment_event` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "read", action: "shipment" })`
- CLI: `npx zapier-sdk run-action commerce-layer read shipment`

##### New Shipping Category
Triggers when a Shipping Category is created.

- Type: read · Key: `shipping_categoryList`
- Requires: nothing
- MCP tool: `commerce_layer_new_shipping_category` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "read", action: "shipping_categoryList" })`
- CLI: `npx zapier-sdk run-action commerce-layer read shipping_categoryList`

##### New SKU
Triggers when a new SKU is created.

- Type: read · Key: `skuList`
- Requires: nothing
- MCP tool: `commerce_layer_new_sku` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "read", action: "skuList" })`
- CLI: `npx zapier-sdk run-action commerce-layer read skuList`

##### New SKU Import
Triggers when a new SKU import is created.

- Type: read · Key: `sku_importList`
- Requires: nothing
- MCP tool: `commerce_layer_new_sku_import` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "read", action: "sku_importList" })`
- CLI: `npx zapier-sdk run-action commerce-layer read sku_importList`

##### New Stock Item
Triggers when a new Stock Item is created.

- Type: read · Key: `stock_itemList`
- Requires: nothing
- MCP tool: `commerce_layer_new_stock_item` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "read", action: "stock_itemList" })`
- CLI: `npx zapier-sdk run-action commerce-layer read stock_itemList`

##### New Stock Item Import
Triggers when a new Stock Item import is created.

- Type: read · Key: `stock_item_importList`
- Requires: nothing
- MCP tool: `commerce_layer_new_stock_item_import` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "read", action: "stock_item_importList" })`
- CLI: `npx zapier-sdk run-action commerce-layer read stock_item_importList`

##### New Stock Location
Triggers when a new Stock Location is created.

- Type: read · Key: `stock_locationList`
- Requires: nothing
- MCP tool: `commerce_layer_new_stock_location` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "read", action: "stock_locationList" })`
- CLI: `npx zapier-sdk run-action commerce-layer read stock_locationList`

##### New Stock Transfer Event
Triggers when a given stock transfer event (one of create, upocoming, picking, in_transit, complete, cancel is fired).

- Type: read · Key: `stock_transfer`
- Requires: event
- Optional: include_resources
- MCP tool: `commerce_layer_new_stock_transfer_event` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "read", action: "stock_transfer" })`
- CLI: `npx zapier-sdk run-action commerce-layer read stock_transfer`

#### Functions (20)

Functions change something in Commerce Layer.

##### Activate Gift Card
Activate gift card.

- Type: write · Key: `activate_gift_card`
- Requires: id
- Optional: action
- MCP tool: `commerce_layer_activate_gift_card` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "write", action: "activate_gift_card" })`
- CLI: `npx zapier-sdk run-action commerce-layer write activate_gift_card`

##### Create Attachment
Creates a new Attachment.

- Type: write · Key: `attachmentCreate`
- Requires: attachable_type, attachable_id, name, url
- Optional: description
- MCP tool: `commerce_layer_create_attachment` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "write", action: "attachmentCreate" })`
- CLI: `npx zapier-sdk run-action commerce-layer write attachmentCreate`

##### Balance Change Gift Card
Change balance of a gift card.

- Type: write · Key: `balance_change_gift_card`
- Requires: id, balance_change_cents
- MCP tool: `commerce_layer_balance_change_gift_card` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "write", action: "balance_change_gift_card" })`
- CLI: `npx zapier-sdk run-action commerce-layer write balance_change_gift_card`

##### Create Customer
Creates a new Customer.

- Type: write · Key: `customerCreate`
- Requires: email
- MCP tool: `commerce_layer_create_customer` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "write", action: "customerCreate" })`
- CLI: `npx zapier-sdk run-action commerce-layer write customerCreate`

##### Create Gift Card
Creates a new Gift Card.

- Type: write · Key: `gift_cardCreate`
- Requires: currency_code, balance_cents
- MCP tool: `commerce_layer_create_gift_card` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "write", action: "gift_cardCreate" })`
- CLI: `npx zapier-sdk run-action commerce-layer write gift_cardCreate`

##### Create Order
Creates a new Order.

- Type: write · Key: `orderCreate`
- Requires: market_id
- MCP tool: `commerce_layer_create_order` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "write", action: "orderCreate" })`
- CLI: `npx zapier-sdk run-action commerce-layer write orderCreate`

##### Create Price
Creates a new Price.

- Type: write · Key: `priceCreate`
- Requires: price_list_id, sku_code, amount_cents
- Optional: compare_at_amount_cents
- MCP tool: `commerce_layer_create_price` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "write", action: "priceCreate" })`
- CLI: `npx zapier-sdk run-action commerce-layer write priceCreate`

##### Create Price Import
Creates a new Price Import.

- Type: write · Key: `price_importCreate`
- Requires: parent_resource_id, inputs, cleanup_records
- MCP tool: `commerce_layer_create_price_import` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "write", action: "price_importCreate" })`
- CLI: `npx zapier-sdk run-action commerce-layer write price_importCreate`

##### Create Price List
Creates a new Price List.

- Type: write · Key: `price_listCreate`
- Requires: name, currency_code
- MCP tool: `commerce_layer_create_price_list` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "write", action: "price_listCreate" })`
- CLI: `npx zapier-sdk run-action commerce-layer write price_listCreate`

##### Purchase Gift Card
Purchase gift card.

- Type: write · Key: `purchase_gift_card`
- Requires: id
- Optional: action
- MCP tool: `commerce_layer_purchase_gift_card` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "write", action: "purchase_gift_card" })`
- CLI: `npx zapier-sdk run-action commerce-layer write purchase_gift_card`

##### Create Shipping Category
Creates a new Shipping Category.

- Type: write · Key: `shipping_categoryCreate`
- Requires: name
- MCP tool: `commerce_layer_create_shipping_category` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "write", action: "shipping_categoryCreate" })`
- CLI: `npx zapier-sdk run-action commerce-layer write shipping_categoryCreate`

##### Create SKU
Creates a new SKU.

- Type: write · Key: `skuCreate`
- Requires: code, name, shipping_category_id
- MCP tool: `commerce_layer_create_sku` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "write", action: "skuCreate" })`
- CLI: `npx zapier-sdk run-action commerce-layer write skuCreate`

##### Create SKU Import
Creates a new SKU Import.

- Type: write · Key: `sku_importCreate`
- Requires: inputs, cleanup_records
- MCP tool: `commerce_layer_create_sku_import` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "write", action: "sku_importCreate" })`
- CLI: `npx zapier-sdk run-action commerce-layer write sku_importCreate`

##### Create Stock Item
Creates a new Stock Item.

- Type: write · Key: `stock_itemCreate`
- Requires: stock_location_id, sku_code, quantity
- MCP tool: `commerce_layer_create_stock_item` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "write", action: "stock_itemCreate" })`
- CLI: `npx zapier-sdk run-action commerce-layer write stock_itemCreate`

##### Create Stock Item Import
Creates a new Stock Item Import.

- Type: write · Key: `stock_item_importCreate`
- Requires: parent_resource_id, inputs, cleanup_records
- MCP tool: `commerce_layer_create_stock_item_import` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "write", action: "stock_item_importCreate" })`
- CLI: `npx zapier-sdk run-action commerce-layer write stock_item_importCreate`

##### Create Stock Location 
Creates a new Stock Location .

- Type: write · Key: `stock_locationCreate`
- Requires: name, address_id
- MCP tool: `commerce_layer_create_stock_location` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "write", action: "stock_locationCreate" })`
- CLI: `npx zapier-sdk run-action commerce-layer write stock_locationCreate`

##### Trigger Order
Execute an action on an Order.

- Type: write · Key: `trigger_order`
- Requires: id, action
- MCP tool: `commerce_layer_trigger_order` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "write", action: "trigger_order" })`
- CLI: `npx zapier-sdk run-action commerce-layer write trigger_order`

##### Update Customer Reference
Update customer data setting external identifier.

- Type: write · Key: `update_customer_ref`
- Requires: id
- Optional: reference, reference_origin
- MCP tool: `commerce_layer_update_customer_reference` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "write", action: "update_customer_ref" })`
- CLI: `npx zapier-sdk run-action commerce-layer write update_customer_ref`

##### Update Shipment
Updates a Shipment.

- Type: write · Key: `update_shipment`
- Requires: id
- Optional: reference, metadata
- MCP tool: `commerce_layer_update_shipment` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "write", action: "update_shipment" })`
- CLI: `npx zapier-sdk run-action commerce-layer write update_shipment`

##### Update SKU
Updates an SKU.

- Type: write · Key: `update_sku`
- Requires: id, code, name, shipping_category_id
- MCP tool: `commerce_layer_update_sku` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "write", action: "update_sku" })`
- CLI: `npx zapier-sdk run-action commerce-layer write update_sku`

#### Queries (13)

Queries read from Commerce Layer and return data. They change nothing.

##### Find Attachment
Finds a Attachment by name.

- Type: search · Key: `attachmentSearch`
- Requires: name
- MCP tool: `commerce_layer_find_attachment` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "search", action: "attachmentSearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search attachmentSearch`

##### Find Customer
Finds a customer by id or reference.

- Type: search · Key: `customerSearch`
- Requires: id_or_reference
- MCP tool: `commerce_layer_find_customer` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "search", action: "customerSearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search customerSearch`

##### Find Gift Card
Finds a gift card by id or reference.

- Type: search · Key: `gift_cardSearch`
- Requires: id_or_reference
- MCP tool: `commerce_layer_find_gift_card` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "search", action: "gift_cardSearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search gift_cardSearch`

##### Find Order
Finds an order by id or reference.

- Type: search · Key: `orderSearch`
- Requires: id_or_reference
- MCP tool: `commerce_layer_find_order` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "search", action: "orderSearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search orderSearch`

##### Find Price
Finds a price by price list.

- Type: search · Key: `priceSearch`
- Requires: price_list_id
- MCP tool: `commerce_layer_find_price` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "search", action: "priceSearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search priceSearch`

##### Find Price Import
Finds a Price Import by status.

- Type: search · Key: `price_importSearch`
- Requires: status
- MCP tool: `commerce_layer_find_price_import` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "search", action: "price_importSearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search price_importSearch`

##### Find Price List
Finds a Price List by name.

- Type: search · Key: `price_listSearch`
- Requires: name
- MCP tool: `commerce_layer_find_price_list` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "search", action: "price_listSearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search price_listSearch`

##### Find Shipping Category
Finds an Shipping Category by name.

- Type: search · Key: `shipping_categorySearch`
- Requires: name
- MCP tool: `commerce_layer_find_shipping_category` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "search", action: "shipping_categorySearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search shipping_categorySearch`

##### Find SKU
Finds an SKU by code.

- Type: search · Key: `skuSearch`
- Requires: code
- MCP tool: `commerce_layer_find_sku` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "search", action: "skuSearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search skuSearch`

##### Find SKU Import
Finds an SKU Import by status.

- Type: search · Key: `sku_importSearch`
- Requires: status
- MCP tool: `commerce_layer_find_sku_import` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "search", action: "sku_importSearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search sku_importSearch`

##### Find Stock Item
Finds an stock item by stock location id.

- Type: search · Key: `stock_itemSearch`
- Requires: stock_location_id
- MCP tool: `commerce_layer_find_stock_item` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "search", action: "stock_itemSearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search stock_itemSearch`

##### Find Stock Item Import
Finds a Stock Item Import by status.

- Type: search · Key: `stock_item_importSearch`
- Requires: status
- MCP tool: `commerce_layer_find_stock_item_import` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "search", action: "stock_item_importSearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search stock_item_importSearch`

##### Find Stock Location 
Finds a Stock Location by name.

- Type: search · Key: `stock_locationSearch`
- Requires: name
- MCP tool: `commerce_layer_find_stock_location` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "commerce-layer", actionType: "search", action: "stock_locationSearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search stock_locationSearch`

#### Search or Write Actions (13)

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

##### Find or Create Attachment
Finds a Attachment by name.

- Type: search_or_write · Key: `attachmentSearch`
- Requires: name, attachable_type, attachable_id, url
- Optional: description
- SDK: `runAction({ app: "commerce-layer", actionType: "search_or_write", action: "attachmentSearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search_or_write attachmentSearch`

##### Find or Create Customer
Finds a customer by id or reference.

- Type: search_or_write · Key: `customerSearch`
- Requires: id_or_reference, email
- SDK: `runAction({ app: "commerce-layer", actionType: "search_or_write", action: "customerSearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search_or_write customerSearch`

##### Find or Create Gift Card
Finds a gift card by id or reference.

- Type: search_or_write · Key: `gift_cardSearch`
- Requires: id_or_reference, currency_code, balance_cents
- SDK: `runAction({ app: "commerce-layer", actionType: "search_or_write", action: "gift_cardSearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search_or_write gift_cardSearch`

##### Find or Create Order
Finds an order by id or reference.

- Type: search_or_write · Key: `orderSearch`
- Requires: id_or_reference, market_id
- SDK: `runAction({ app: "commerce-layer", actionType: "search_or_write", action: "orderSearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search_or_write orderSearch`

##### Find or Create Price
Finds a price by price list.

- Type: search_or_write · Key: `priceSearch`
- Requires: price_list_id, sku_code, amount_cents
- Optional: compare_at_amount_cents
- SDK: `runAction({ app: "commerce-layer", actionType: "search_or_write", action: "priceSearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search_or_write priceSearch`

##### Find or Create Price Import
Finds a Price Import by status.

- Type: search_or_write · Key: `price_importSearch`
- Requires: status, parent_resource_id, inputs, cleanup_records
- SDK: `runAction({ app: "commerce-layer", actionType: "search_or_write", action: "price_importSearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search_or_write price_importSearch`

##### Find or Create Price List
Finds a Price List by name.

- Type: search_or_write · Key: `price_listSearch`
- Requires: name, currency_code
- SDK: `runAction({ app: "commerce-layer", actionType: "search_or_write", action: "price_listSearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search_or_write price_listSearch`

##### Find or Create Shipping Category
Finds an Shipping Category by name.

- Type: search_or_write · Key: `shipping_categorySearch`
- Requires: name
- SDK: `runAction({ app: "commerce-layer", actionType: "search_or_write", action: "shipping_categorySearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search_or_write shipping_categorySearch`

##### Find or Create SKU
Finds an SKU by code.

- Type: search_or_write · Key: `skuSearch`
- Requires: code, name, shipping_category_id
- SDK: `runAction({ app: "commerce-layer", actionType: "search_or_write", action: "skuSearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search_or_write skuSearch`

##### Find or Create SKU Import
Finds an SKU Import by status.

- Type: search_or_write · Key: `sku_importSearch`
- Requires: status, inputs, cleanup_records
- SDK: `runAction({ app: "commerce-layer", actionType: "search_or_write", action: "sku_importSearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search_or_write sku_importSearch`

##### Find or Create Stock Item
Finds an stock item by stock location id.

- Type: search_or_write · Key: `stock_itemSearch`
- Requires: stock_location_id, sku_code, quantity
- SDK: `runAction({ app: "commerce-layer", actionType: "search_or_write", action: "stock_itemSearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search_or_write stock_itemSearch`

##### Find or Create Stock Item Import
Finds a Stock Item Import by status.

- Type: search_or_write · Key: `stock_item_importSearch`
- Requires: status, parent_resource_id, inputs, cleanup_records
- SDK: `runAction({ app: "commerce-layer", actionType: "search_or_write", action: "stock_item_importSearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search_or_write stock_item_importSearch`

##### Find or Create Stock Location 
Finds a Stock Location by name.

- Type: search_or_write · Key: `stock_locationSearch`
- Requires: name, address_id
- SDK: `runAction({ app: "commerce-layer", actionType: "search_or_write", action: "stock_locationSearch" })`
- CLI: `npx zapier-sdk run-action commerce-layer search_or_write stock_locationSearch`

## Resend

### Identity
Resend is the email API for developers. It's designed for you to build, test, and send transactional and marketing emails at scale.

- App slug: resend
- Operations published here: 7 (7 functions)

### Authentication
Zapier connects to Resend 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.130.2 and @zapier/zapier-sdk-cli v0.93.2; 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 resend
```

### Capabilities

#### Functions (7)

Functions change something in Resend.

##### Add Contact to Segment
Add an existing contact to a segment.

- Type: write · Key: `add_contact_segment`
- Requires: contact_id, segment_id
- MCP tool: `resend_add_contact_to_segment` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "resend", actionType: "write", action: "add_contact_segment" })`
- CLI: `npx zapier-sdk run-action resend write add_contact_segment`

##### Create Contact
Create a contact on a Resend audience

- Type: write · Key: `create_contact`
- Requires: email
- Optional: first_name, last_name, unsubscribed
- MCP tool: `resend_create_contact` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "resend", actionType: "write", action: "create_contact" })`
- CLI: `npx zapier-sdk run-action resend write create_contact`

##### Create Segment
Create a Segment in your Resend team

- Type: write · Key: `create_segment`
- Requires: name
- MCP tool: `resend_create_segment` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "resend", actionType: "write", action: "create_segment" })`
- CLI: `npx zapier-sdk run-action resend write create_segment`

##### Remove Contact From Segment
Remove an existing contact from a segment.

- Type: write · Key: `delete_contact_segment`
- Requires: contact_id, segment_id
- MCP tool: `resend_remove_contact_from_segment` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "resend", actionType: "write", action: "delete_contact_segment" })`
- CLI: `npx zapier-sdk run-action resend write delete_contact_segment`

##### Delete Segment
Remove an existing Segment. (Does not delete the Contacts belonging to the Segment)

- Type: write · Key: `delete_segment`
- Requires: segment_id
- MCP tool: `resend_delete_segment` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "resend", actionType: "write", action: "delete_segment" })`
- CLI: `npx zapier-sdk run-action resend write delete_segment`

##### Retrieve Contact
Retrieve a single contact using the Contact Id or Email

- Type: write · Key: `get_contact`
- Requires: contact_id
- MCP tool: `resend_retrieve_contact` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "resend", actionType: "write", action: "get_contact" })`
- CLI: `npx zapier-sdk run-action resend write get_contact`

##### Send Email
Send an Email with Resend

- Type: write · Key: `send_email`
- Requires: from, to, subject
- Optional: html, text, reply_to, cc, bcc, tags, scheduled_at, attachment_name
- MCP tool: `resend_send_email` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "resend", actionType: "write", action: "send_email" })`
- CLI: `npx zapier-sdk run-action resend write send_email`

## Frequently asked questions about automating with Commerce Layer and Resend

### My AI agent already connects to my apps. Why add Zapier?

Your AI agent’s built-in or native connectors cover a limited set of popular apps. Zapier reaches 10,000+ apps and 90,000+ triggers and actions. Zapier also adds what your AI agent can’t: one place to manage logins and credentials, so you never paste an API key; automations that keep running after the chat closes, with fixes you can review when a run hits a snag; and the freedom to switch agent interfaces without starting over.

### Can’t my AI agent already run tasks on a schedule?

Most popular AI agents can run scheduled tasks. And for simple recurring jobs, that might be all you need. Automations that run on Zapier can run on a schedule too, but they can also start the moment something happens in your apps—like when a new lead/ticket comes in or you get an email reply. Zapier also uses AI only in the steps that need judgment, so routine steps like posting to Slack or updating Salesforce don’t burn model tokens.

### Why not have my AI agent write me a script?

You can, and the first version will probably work. The trouble comes later: a script needs somewhere to run, a way to hear about events, and someone to keep it going. If an API changes or a login expires, your script can quietly stop until you notice. It also holds your keys, often in a repo, where a leak can expose your accounts. With Zapier, your agent builds the automation, and you publish it. Zapier hosts it, handles your logins and credentials, and records every run. If a run fails, Zapier diagnoses what went wrong and prepares a fix you can review. Or you can decide which fixes Zapier can apply for you.

## Links
- Commerce Layer integrations: zapier.com/apps/commerce-layer/integrations.md
- Resend integrations: zapier.com/apps/resend/integrations.md
- Full page: zapier.com/apps/commerce-layer/integrations/resend
- MCP quickstart (non-OAuth / connection-token clients): docs.zapier.com/mcp/get-started/quickstart.md
- SDK: npmjs.com/package/@zapier/zapier-sdk