Shopify connector
Read and manage products, orders, customers, and inventory in your Shopify store from AgentRuntime workflows.
En esta página
Shopify is an online store platform. The shopify connector calls your store's Admin API so workflows can look up orders, list and update products, create customers, and adjust stock levels, for example when a webhook fires, on a schedule, or when an agent needs store data.
Prerequisites
- A Shopify store, with permission to create an app in its admin.
- An Admin API access token for that store. Shopify gives you one when you create and install a custom app. Treat it like a password.
- The access scopes your workflows need on that app. Shopify scope names follow the pattern
read_products,write_products,read_orders,read_customers,write_customers,read_inventory, andwrite_inventory. Grant only the ones you use. - The project_contributor role or higher in your workspace.
Connect in AgentRuntime
- Create an Admin API token in Shopify
In your Shopify admin, create a custom app (Shopify's help center describes this under "Develop apps"), give it the Admin API scopes you need, install it on your store, and copy the Admin API access token. Shopify shows the token only once. Menu names in Shopify change over time, so follow Shopify's current documentation for this step.
- Create a connection
Open Connections in the Console and click New custom connection. Enter a Display name (for example
My store). Under Credentials, add one row per setting, using Add field for more rows:- Key
shopify_shop, Value your store address, for exampleyour-store.myshopify.com. - Key
shopify_admin_access_token, Value the Admin API access token.
Click Save. The dialog also asks who can use the connection; choose the option that fits your team. See Authentication.
- Key
- Add the shopify MCP instance
Open MCP, click Add connectors, find shopify, and add it to your workspace. Open the instance, and on Instance config create or open a profile, choose your connection in the Connection picker, set the profile Status to Active, and click Save, then Use this profile for workflows.
- Smoke test
In Workflow Studio, add a connector tools step that calls
shopify_get_shopwith no arguments and run it. A result with ashopobject means the token and store address work.
What you can build
- Low-stock alerts. Call
shopify_list_inventory_levels, filter for quantities below your threshold, and notify your team. Add a human approval step beforeshopify_adjust_inventory. - Order support. A chat or webhook supplies an order ID. Call
shopify_get_orderandshopify_list_fulfillments, let an LLM draft the reply, and send it by email. - Catalog sync. Call
shopify_list_products, reshape the data with a Lua step, and write changes back withshopify_update_product, or save rows to a spreadsheet. - New customer follow-up. When an order webhook arrives, call
shopify_get_customerand pass the details to your email or CRM tool.
Tools
Tools marked Changes data write to your store. The others only read.
| Tool | What it does |
|---|---|
shopify_get_shop | Get your store's details. |
shopify_list_products | List products. Filter by status (active, archived, or draft). |
shopify_get_product | Get one product by ID. |
shopify_create_product | Create a product. Changes data. |
shopify_update_product | Update fields of a product by ID. Changes data. |
shopify_delete_product | Delete a product by ID. Changes data. |
shopify_list_orders | List orders, filtered by status or financial_status. |
shopify_get_order | Get one order by ID. |
shopify_list_fulfillments | List the fulfillments of an order. |
shopify_list_customers | List customers, with filters for dates, IDs, and status. |
shopify_get_customer | Get one customer by ID. |
shopify_create_customer | Create a customer. Changes data. |
shopify_list_inventory_levels | List stock levels by inventory item or location. |
shopify_adjust_inventory | Add or remove available stock at a location. Changes data. |
shopify_admin_rest | Make a raw Admin REST call (GET, POST, PUT, or DELETE) for anything the tools above do not cover. Can change data. |
Parameters:
- IDs such as
product_id,order_id, andcustomer_idare the numeric Shopify IDs, passed as strings. shopify_list_products: optionallimit(default 50, maximum 250),page_info, andstatus.shopify_list_orders: optionallimit(default 50),status(open,closed,cancelled, orany), andfinancial_status(for examplepaid,pending,refunded).shopify_list_customers: optionallimit(default 50, maximum 250),ids,status,fields,since_id,page_info,created_at_min,created_at_max,updated_at_min, andupdated_at_max.shopify_create_product:title(required), and optionallybody_html,vendor,product_type, andstatus(activeordraft).shopify_update_product:product_idandfields(both required).fieldsis an object of the product fields to change, such astitle,tags, orstatus.shopify_create_customer:email(required), and optionallyfirst_name,last_name, andphone.shopify_list_inventory_levels: optionalinventory_item_idsandlocation_ids(comma-separated), andlimit(default 50).shopify_adjust_inventory:inventory_item_id,location_id, andavailable_adjustment(a positive or negative whole number), all required.shopify_admin_rest:methodandpath(required; the path starts with/, for example/products.json), and optionallyqueryandbody.
Example
Look up an order for a support workflow:
{
"id": "get-order",
"type": "mcp",
"name": "Look up Shopify order",
"instance_id": "YOUR_SHOPIFY_INSTANCE_ID",
"tool_name": "shopify_get_order",
"tool_args": {
"order_id": "{{input.order_id}}"
},
"timeout_s": 30
}In Studio you pick the instance and tool from lists, and Studio fills in instance_id. The order is returned under order.
Configuration
These are the settings on the instance's config profile. When you use a connection, give its credential rows the same key names. Published key names carry the shopify_ prefix.
| Key | Required | Description |
|---|---|---|
shopify_shop | Yes, unless shopify_api_base is set | Store address, for example your-store.myshopify.com. A name without a dot, such as your-store, has .myshopify.com added. |
shopify_admin_access_token | Yes | Admin API access token. |
shopify_api_version | No | Shopify Admin API version. Default 2024-10. |
shopify_request_timeout_seconds | No | Time limit for each Shopify request, in seconds. Default 30. |
shopify_api_base | No | Replaces the store's Admin API address. Normally leave it empty. |
Troubleshooting
| Issue | Fix |
|---|---|
missing shopify admin_access_token or missing shopify shop or api_base | The active profile is missing that setting. Add the rows to the connection and check the profile is Active. |
Shopify API error 401 | The token is wrong, or the app was uninstalled. Create or reinstall the app and use Rotate on the connection. |
Shopify API error 403 | The app does not have the scope for that call. Add the scope in Shopify and reinstall the app if Shopify asks. |
Shopify API error 404 | The ID does not exist in this store, or the store address belongs to a different store than the token. |
| Wrong data or missing fields | The connector uses the API version in shopify_api_version. Set another version there if you need newer fields. |
Related
- Integrations quickstart
- Inbound webhooks to start a workflow from a Shopify event
- Shopify order to WhatsApp
- Connector catalog
- Troubleshooting