---
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/"
---

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

Integrate Polar and Commerce Layer 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 `polar` and `commerce-layer`, then `enable_zapier_action`. If Polar or Commerce Layer 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 Activate Gift Card is enabled, call `commerce_layer_activate_gift_card`. 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: "commerce-layer", owner: "me" });

const { data } = await zapier.runAction({
  app: "commerce-layer",
  actionType: "write",
  action: "activate_gift_card",
  connection: connection.id,
  inputs: {
    id: "",
  },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action commerce-layer write activate_gift_card \
  --inputs '{"id":""}'
```

## Polar

### Identity
Polar is a modern billing platform for developers & designers. Integrate it with your stack in minutes and sell internationally with full tax compliance.

- App slug: polar
- Operations published here: 21 (21 events)

### Authentication
Zapier connects to Polar 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.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 polar
```

### Capabilities

#### Events (21)

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

##### Benefit Created
Triggers when a new benefit is created.

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

##### Benefit Updated
Triggers when a benefit is updated.

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

##### Checkout Created
Triggers when a new checkout session is created.

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

##### Checkout Expired
Triggers when a checkout session expires.

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

##### Checkout Updated
Triggers when a checkout session is updated.

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

##### Customer Created
Triggers when a new customer is created.

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

##### Customer Deleted
Triggers when a customer is deleted.

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

##### Customer State Changed
Triggers when a customer state has changed.

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

##### Customer Updated
Triggers when a customer is updated.

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

##### Order Created
Triggers when a new order is created.

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

##### Order Paid
Triggers when an order is paid.

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

##### Order Updated
Triggers when an order is updated.

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

##### Product Created
Triggers when a new product is created.

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

##### Product Updated
Triggers when a product is updated.

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

##### Subscription Active
Triggers when a subscription becomes active.

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

##### Subscription Canceled
Triggers when a subscription is canceled.

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

##### Subscription Created
Triggers when a new subscription is created.

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

##### Subscription Past Due
Triggers when a subscription payment fails and becomes past due.

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

##### Subscription Revoked
Triggers when a subscription is revoked.

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

##### Subscription Uncanceled
Triggers when a subscription cancellation is revoked.

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

##### Subscription Updated
Triggers when a subscription is updated.

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

## 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`

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

### 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
- Polar integrations: zapier.com/apps/polar/integrations.md
- Commerce Layer integrations: zapier.com/apps/commerce-layer/integrations.md
- Full page: zapier.com/apps/polar/integrations/commerce-layer
- MCP quickstart (non-OAuth / connection-token clients): docs.zapier.com/mcp/get-started/quickstart.md
- SDK: npmjs.com/package/@zapier/zapier-sdk