# Commerce Layer + Mobile Message Integrations: Connect with Zapier MCP
> zapier.com/apps/commerce-layer/integrations/mobile-message-ca21345
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Commerce Layer and Mobile Message 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 · add_contact_to_list`.
- **SDK**:

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

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

const { data } = await zapier.runAction({
  app: "mobile-message-ca21345",
  actionType: "write",
  action: "add_contact_to_list",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action mobile-message-ca21345 write add_contact_to_list \
  --inputs '{}'
```

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

## Mobile Message

### Identity
Instantly send an SMS to any Australian mobile phone number, using your Mobile Message account.

- App slug: mobile-message-ca21345
- Operations published here: 17 (2 events, 13 functions, 2 queries)

### Authentication
Zapier connects to Mobile Message 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 mobile-message-ca21345
```

### Capabilities

#### Events (2)

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

##### New SMS Delivery Status
Triggers when an SMS delivery status changes (delivered or failed).

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

##### New Inbound SMS
Triggers when an inbound SMS is received.

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

#### Functions (13)

Functions change something in Mobile Message.

##### Add Contact to List
Adds a contact to a contact list.

- Type: write · Key: `add_contact_to_list`
- Requires: list_id
- Optional: contact_id, number
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "add_contact_to_list" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write add_contact_to_list`

##### Add Unsubscribe
Adds a phone number to your unsubscribe (opt-out) list.

- Type: write · Key: `add_unsubscribe`
- Requires: number
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "add_unsubscribe" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write add_unsubscribe`

##### Cancel Scheduled Message
Cancels a scheduled message and refunds the credits.

- Type: write · Key: `cancel_message`
- Requires: nothing
- Optional: message_id, custom_ref
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "cancel_message" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write cancel_message`

##### Create Contact
Creates a new contact in your Mobile Message address book.

- Type: write · Key: `create_contact`
- Requires: number
- Optional: first_name, last_name, company, other
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "create_contact" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write create_contact`

##### Create Contact List
Creates a new contact list.

- Type: write · Key: `create_list`
- Requires: name
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "create_list" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write create_list`

##### Delete Contact
Deletes a contact from your Mobile Message address book.

- Type: write · Key: `delete_contact`
- Requires: contact_id
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "delete_contact" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write delete_contact`

##### Delete Contact List
Deletes a contact list (does not delete the contacts themselves).

- Type: write · Key: `delete_list`
- Requires: list_id
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "delete_list" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write delete_list`

##### Remove Contact From List
Removes a contact from a contact list.

- Type: write · Key: `remove_contact_from_list`
- Requires: list_id
- Optional: contact_id, number
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "remove_contact_from_list" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write remove_contact_from_list`

##### Remove Unsubscribe
Removes a phone number from your unsubscribe (opt-out) list.

- Type: write · Key: `remove_unsubscribe`
- Requires: number
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "remove_unsubscribe" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write remove_unsubscribe`

##### Rename Contact List
Renames an existing contact list.

- Type: write · Key: `rename_list`
- Requires: list_id, name
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "rename_list" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write rename_list`

##### Send SMS
Sends an SMS message

- Type: write · Key: `sendSMS`
- Requires: to, sender, message
- Optional: custom_ref, enable_unicode, max_parts, scheduled_for, ignore_unsubscribes
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "sendSMS" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write sendSMS`

##### Send SMS to List
Sends a templated SMS to all contacts in a contact list.

- Type: write · Key: `send_sms_to_list`
- Requires: list_id, sender, message
- Optional: custom_ref, enable_unicode, max_parts, scheduled_for, ignore_unsubscribes
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "send_sms_to_list" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write send_sms_to_list`

##### Update Contact
Updates an existing contact by contact ID.

- Type: write · Key: `update_contact`
- Requires: contact_id
- Optional: number, first_name, last_name, company, other
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "update_contact" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write update_contact`

#### Queries (2)

Queries read from Mobile Message and return data. They change nothing.

##### Find Contact
Finds a contact by phone number.

- Type: search · Key: `find_contact`
- Requires: number
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "search", action: "find_contact" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 search find_contact`

##### Find Message
Finds a sent or scheduled message by message ID or custom reference.

- Type: search · Key: `find_message`
- Requires: message_id
- Optional: custom_ref
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "search", action: "find_message" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 search find_message`

## Frequently asked questions about automating with Commerce Layer and Mobile Message

### 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
- Mobile Message integrations: zapier.com/apps/mobile-message-ca21345/integrations.md
- Full page: zapier.com/apps/commerce-layer/integrations/mobile-message-ca21345
- SDK: npmjs.com/package/@zapier/zapier-sdk