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

Integrate SureCart 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).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## 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**: connect each app through mcp.zapier.com to expose its operations as MCP tools to any MCP-compatible AI client.
- **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**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · activate_gift_card`.
- **SDK**:

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

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

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

- **CLI**:

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

## SureCart

### Identity
The new way to sell on WordPress. A simple yet powerful e-commerce platform designed to grow your business by effortlessly selling online.

- App slug: surecart
- Operations published here: 70 (44 events, 26 queries)

### Authentication
Zapier connects to SureCart 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 surecart
```

### Capabilities

#### Events (44)

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

##### Affiliation Request Approved
Triggers when a affiliation request is approved.

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

##### Affiliation Request Created
Triggers when a affiliation request is created.

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

##### Affiliation Request Denied
Triggers when a new affiliation request is denied.

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

##### Cancellation Act Created
Triggers when a cancellation act is created.

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

##### Cancellation Act Updated
Triggers when a cancellation act is updated.

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

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

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

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

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

##### Fulfillment Created
Triggers when a fulfillment is created.

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

##### Fulfillment Deleted
Triggers when a fulfillment is deleted.

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

##### Fulfillment Updated
Triggers when a fulfillment is updated.

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

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

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

##### Order Delivered
Triggers when a order is delivered.

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

##### Order Fulfilled
Triggers when a order is fulfilled.

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

##### Order Processing
Triggers when a order becomes processing.

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

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

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

##### Order Partially Fulfilled
Triggers when a order is partially fulfilled.

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

##### Order Partially Shipped
Triggers when a order is partially shipped.

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

##### Order Payment Failed
Triggers when a order payment fails.

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

##### Order Shipped
Triggers when a order is shipped.

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

##### Order Unfulfilled
Triggers when a order is unfulfilled.

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

##### Order Voided
Triggers when a order is voided.

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

##### Payout Completed
Triggers when a payout is completed.

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

##### Purchase Created
Triggers when a purchase is created.

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

##### Purchase Invoked
Triggers when a purchase is invoked.

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

##### Purchase Revoked
Triggers when a purchase is revoked.

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

##### Purchase Updated
Triggers when a purchase is updated.

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

##### Referral Approved
Triggers when a referral is approved.

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

##### Referral Created
Triggers when a referral is created.

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

##### Refund Created
Triggers when a refund is created.

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

##### Refund Succeeded
Triggers when a refund succeeds.

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

##### Return Request Completed
Triggers when a return request is completed.

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

##### Return Request Created
Triggers when a return request is created.

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

##### Return Request Deleted
Triggers when a return request is deleted.

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

##### Return Request Opened
Triggers when a return request is opened.

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

##### Return Request Updated
Triggers when a return request is updated.

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

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

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

##### Subscription Completed
Triggers when a subscription is completed.

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

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

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

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

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

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

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

##### Subscription Trialing
Triggers when a subscription becomes trialing.

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

##### Subscription Renewed
Triggers when a subscription is renewed.

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

##### Subscription Set to Cancel
Triggers when a subscription is set to cancel.

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

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

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

#### Queries (26)

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

##### Find Affiliation
Find an existing affiliation by ID.

- Type: search · Key: `affiliationSearch`
- Requires: id
- Optional: expand
- SDK: `runAction({ app: "surecart", actionType: "search", action: "affiliationSearch" })`
- CLI: `npx zapier-sdk run-action surecart search affiliationSearch`

##### Find Affiliation Request
Find an existing affiliation request by ID.

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

##### Find Cancellation Act
Find an existing cancellation act by ID.

- Type: search · Key: `cancellation_actSearch`
- Requires: id
- Optional: expand
- SDK: `runAction({ app: "surecart", actionType: "search", action: "cancellation_actSearch" })`
- CLI: `npx zapier-sdk run-action surecart search cancellation_actSearch`

##### Find Checkout
Find an existing checkout by ID.

- Type: search · Key: `checkoutSearch`
- Requires: id
- Optional: expand
- SDK: `runAction({ app: "surecart", actionType: "search", action: "checkoutSearch" })`
- CLI: `npx zapier-sdk run-action surecart search checkoutSearch`

##### Find Click
Find an existing click by ID.

- Type: search · Key: `clickSearch`
- Requires: id
- Optional: expand
- SDK: `runAction({ app: "surecart", actionType: "search", action: "clickSearch" })`
- CLI: `npx zapier-sdk run-action surecart search clickSearch`

##### Find Coupon
Find an existing coupon by ID.

- Type: search · Key: `couponSearch`
- Requires: id
- Optional: expand
- SDK: `runAction({ app: "surecart", actionType: "search", action: "couponSearch" })`
- CLI: `npx zapier-sdk run-action surecart search couponSearch`

##### Find Customer
Find an existing customer by ID.

- Type: search · Key: `customerSearch`
- Requires: id
- Optional: expand
- SDK: `runAction({ app: "surecart", actionType: "search", action: "customerSearch" })`
- CLI: `npx zapier-sdk run-action surecart search customerSearch`

##### Find Fulfillment
Find an existing fulfillment by ID.

- Type: search · Key: `fulfillmentSearch`
- Requires: id
- Optional: expand
- SDK: `runAction({ app: "surecart", actionType: "search", action: "fulfillmentSearch" })`
- CLI: `npx zapier-sdk run-action surecart search fulfillmentSearch`

##### Find Fulfillment Item
Find an existing fulfillment item by ID.

- Type: search · Key: `fulfillment_itemSearch`
- Requires: id
- Optional: expand
- SDK: `runAction({ app: "surecart", actionType: "search", action: "fulfillment_itemSearch" })`
- CLI: `npx zapier-sdk run-action surecart search fulfillment_itemSearch`

##### Find Line Item
Find an existing line item by ID.

- Type: search · Key: `line_itemSearch`
- Requires: id
- Optional: expand
- SDK: `runAction({ app: "surecart", actionType: "search", action: "line_itemSearch" })`
- CLI: `npx zapier-sdk run-action surecart search line_itemSearch`

##### Find Order
Find an existing order by ID.

- Type: search · Key: `orderSearch`
- Requires: id
- Optional: expand
- SDK: `runAction({ app: "surecart", actionType: "search", action: "orderSearch" })`
- CLI: `npx zapier-sdk run-action surecart search orderSearch`

##### Find Payment Intent
Find an existing payment intent by ID.

- Type: search · Key: `payment_intentSearch`
- Requires: id
- Optional: expand
- SDK: `runAction({ app: "surecart", actionType: "search", action: "payment_intentSearch" })`
- CLI: `npx zapier-sdk run-action surecart search payment_intentSearch`

##### Find Payment Method
Find an existing payment method by ID.

- Type: search · Key: `payment_methodSearch`
- Requires: id
- Optional: expand
- SDK: `runAction({ app: "surecart", actionType: "search", action: "payment_methodSearch" })`
- CLI: `npx zapier-sdk run-action surecart search payment_methodSearch`

##### Find Payout
Find an existing payout by ID.

- Type: search · Key: `payoutSearch`
- Requires: id
- Optional: expand
- SDK: `runAction({ app: "surecart", actionType: "search", action: "payoutSearch" })`
- CLI: `npx zapier-sdk run-action surecart search payoutSearch`

##### Find Payout Group
Find an existing payout group by ID.

- Type: search · Key: `payout_groupSearch`
- Requires: id
- Optional: expand
- SDK: `runAction({ app: "surecart", actionType: "search", action: "payout_groupSearch" })`
- CLI: `npx zapier-sdk run-action surecart search payout_groupSearch`

##### Find Price
Find an existing price by ID.

- Type: search · Key: `priceSearch`
- Requires: id
- Optional: expand
- SDK: `runAction({ app: "surecart", actionType: "search", action: "priceSearch" })`
- CLI: `npx zapier-sdk run-action surecart search priceSearch`

##### Find Product
Find an existing product by ID.

- Type: search · Key: `productSearch`
- Requires: id
- Optional: expand
- SDK: `runAction({ app: "surecart", actionType: "search", action: "productSearch" })`
- CLI: `npx zapier-sdk run-action surecart search productSearch`

##### Find Promotion
Find an existing promotion by ID.

- Type: search · Key: `promotionSearch`
- Requires: id
- Optional: expand
- SDK: `runAction({ app: "surecart", actionType: "search", action: "promotionSearch" })`
- CLI: `npx zapier-sdk run-action surecart search promotionSearch`

##### Find Purchase
Find an existing purchase by ID.

- Type: search · Key: `purchaseSearch`
- Requires: id
- Optional: expand
- SDK: `runAction({ app: "surecart", actionType: "search", action: "purchaseSearch" })`
- CLI: `npx zapier-sdk run-action surecart search purchaseSearch`

##### Find Referral
Find an existing referral by ID.

- Type: search · Key: `referralSearch`
- Requires: id
- Optional: expand
- SDK: `runAction({ app: "surecart", actionType: "search", action: "referralSearch" })`
- CLI: `npx zapier-sdk run-action surecart search referralSearch`

##### Find Referral Item
Find an existing referral item by ID.

- Type: search · Key: `referral_itemSearch`
- Requires: id
- Optional: expand
- SDK: `runAction({ app: "surecart", actionType: "search", action: "referral_itemSearch" })`
- CLI: `npx zapier-sdk run-action surecart search referral_itemSearch`

##### Find Refund
Find an existing refund by ID.

- Type: search · Key: `refundSearch`
- Requires: id
- Optional: expand
- SDK: `runAction({ app: "surecart", actionType: "search", action: "refundSearch" })`
- CLI: `npx zapier-sdk run-action surecart search refundSearch`

##### Find Return Item
Find an existing return item by ID.

- Type: search · Key: `return_itemSearch`
- Requires: id
- Optional: expand
- SDK: `runAction({ app: "surecart", actionType: "search", action: "return_itemSearch" })`
- CLI: `npx zapier-sdk run-action surecart search return_itemSearch`

##### Find Return Request
Find an existing return request by ID.

- Type: search · Key: `return_requestSearch`
- Requires: id
- Optional: expand
- SDK: `runAction({ app: "surecart", actionType: "search", action: "return_requestSearch" })`
- CLI: `npx zapier-sdk run-action surecart search return_requestSearch`

##### Find Subscription
Find an existing subscription by ID.

- Type: search · Key: `subscriptionSearch`
- Requires: id
- Optional: expand
- SDK: `runAction({ app: "surecart", actionType: "search", action: "subscriptionSearch" })`
- CLI: `npx zapier-sdk run-action surecart search subscriptionSearch`

##### Find Tracking
Find an existing tracking by ID.

- Type: search · Key: `trackingSearch`
- Requires: id
- Optional: expand
- SDK: `runAction({ app: "surecart", actionType: "search", action: "trackingSearch" })`
- CLI: `npx zapier-sdk run-action surecart search trackingSearch`

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

## Links
- SureCart integrations: zapier.com/apps/surecart/integrations.md
- Commerce Layer integrations: zapier.com/apps/commerce-layer/integrations.md
- Full page: zapier.com/apps/surecart/integrations/commerce-layer
- SDK: npmjs.com/package/@zapier/zapier-sdk