# 将 Shopify 接入 Open Flow

Source: https://openflow.run/zh-cn/integrations/shopify/

[全部集成](https://openflow.run/zh-cn/integrations/)

通过一个 Shopify 连接维护商品目录、处理订单并更新商店内容。

*   [98 个工具](https://openflow.run/zh-cn/integrations/shopify/#integration-actions)
*   自定义凭据
*   API 密钥
*   OAuth 2.0
*   营销
*   数据与分析
*   跨境电商

[连接 Shopify](https://console.openflow.run/connections/shopify)

每月 20,000 次免费应用调用（付费服务另计）

## 可以做什么

查询和编辑商品，管理变体与集合，维护客户地址，准备草稿订单，处理退款，发布页面与文章，并跟踪库存、履约和批量任务。

### 查看店铺商品

搜索商品并按 global ID 读取选定商品。

### 查看商品变体

使用支持的 Shopify 搜索语法查询变体。

### 订单与履约

读取订单和履约任务，了解待发货情况。

### 按地点查看库存

读取库存商品及指定地点的数量。

### 查看店铺页面

列出页面并读取指定数字页面 ID。

### 查看博客文章

读取指定博客中的文章。

### 维护商品与变体

创建或更新变体，并整理商品集合。

### 准备草稿订单

准备草稿订单，并按指令发送付款通知。

### 处理退款

根据指定商品和付款交易进行全额或部分退款。

### 发布商店内容

创建或更新商店页面和博客文章。

### 维护客户资料

更新客户信息和配送地址。

### 维护商店自定义数据

设置自定义字段，创建或更新自定义对象。

## 使用 Shopify 的模板

![Receive Shopify Order Events 在 Open Flow 中的工作流截图](https://openflow.run/template-previews/receive-shopify-order-events/light-cover.webp)

电商

### [Receive Shopify Order Events](https://openflow.run/zh-cn/templates/receive-shopify-order-events/)

Receive new Shopify orders with their original large integer IDs preserved.

![Process Shopify Orders Across Sales Tools 在 Open Flow 中的工作流截图](https://openflow.run/template-previews/process-shopify-orders-across-sales-tools/light-cover.webp)

E-commerce

### [Process Shopify Orders Across Sales Tools](https://openflow.run/zh-cn/templates/process-shopify-orders-across-sales-tools/)

Create sales records and send an order email when a Shopify order is created.

![List the First Open Shopify Orders 在 Open Flow 中的工作流截图](https://openflow.run/template-previews/list-first-open-shopify-orders/light-cover.webp)

销售

### [List the First Open Shopify Orders](https://openflow.run/zh-cn/templates/list-first-open-shopify-orders/)

Read up to 50 open Shopify orders.

![Log Shopify Order Campaigns in Baserow 在 Open Flow 中的工作流截图](https://openflow.run/template-previews/log-shopify-order-campaigns-in-baserow/light-cover.webp)

营销

### [Log Shopify Order Campaigns in Baserow](https://openflow.run/zh-cn/templates/log-shopify-order-campaigns-in-baserow/)

Record Shopify orders with a first-visit campaign in Baserow each day.

## 所有工具

98 个工具

### List Blogs

列出 Shopify REST 博客，支持可选的 handle 过滤和分页。

`shopify.list_blogs`

### Get Blog

按数字 ID 检索一个 Shopify REST 博客。

`shopify.get_blog`

### Count Blogs

统计已连接店铺中的 Shopify REST 博客数量。

`shopify.count_blogs`

### List Pages

列出 Shopify REST 页面，支持可选过滤和分页。

`shopify.list_pages`

### Get Page

按数字 ID 检索一个 Shopify REST 页面。

`shopify.get_page`

### Count Pages

统计 Shopify REST 页面数量，支持可选过滤。

`shopify.count_pages`

### List Articles

列出博客中的 Shopify REST 文章，支持可选过滤和分页。

`shopify.list_articles`

### Get Article

按博客 ID 和文章 ID 检索一个 Shopify REST 文章。

`shopify.get_article`

### Count Articles

统计博客中的 Shopify REST 文章数量，支持可选过滤。

`shopify.count_articles`

### List Article Tags

列出已连接店铺中所有文章的 Shopify REST 文章标签。

`shopify.list_article_tags`

### List Blog Article Tags

列出一个博客的 Shopify REST 文章标签。

`shopify.list_blog_article_tags`

### List Article Authors

列出已连接店铺中的 Shopify REST 文章作者。

`shopify.list_article_authors`

### Delete Product

删除商品。所需权限：write\_products。还需员工拥有相应操作权限。

`shopify.delete_product`

### Duplicate Product

复制商品。所需权限：write\_products。还需员工拥有相应操作权限。

`shopify.duplicate_product`

### Create Product Variants

批量创建商品变体。所需权限：write\_products。还需员工拥有相应操作权限。

`shopify.create_product_variants`

### Update Product Variants

批量更新商品变体；允许部分更新时同时返回成功变体和业务错误。所需权限：write\_products。还需员工拥有相应操作权限。

`shopify.update_product_variants`

### Delete Product Variants

批量删除商品变体。所需权限：write\_products。还需员工拥有相应操作权限。

`shopify.delete_product_variants`

### Create Collection

创建商品集合。所需权限：write\_products。Starter 或 Retail 套餐不可用。还需员工拥有相应操作权限。

`shopify.create_collection`

### Update Collection

更新商品集合。所需权限：write\_products。Starter 或 Retail 套餐不可用。还需员工拥有相应操作权限。

`shopify.update_collection`

### Delete Collection

删除商品集合。所需权限：write\_products。Starter 或 Retail 套餐不可用。还需员工拥有相应操作权限。

`shopify.delete_collection`

### Add Collection Products

向手动集合添加商品。所需权限：write\_products。Starter 或 Retail 套餐不可用。还需员工拥有相应操作权限。

`shopify.add_collection_products`

### Remove Collection Products

从手动集合移除商品。所需权限：write\_products。还需员工拥有相应操作权限。

`shopify.remove_collection_products`

### Close Order

归档订单。所需权限：write\_orders。还需员工拥有相应操作权限。

`shopify.close_order`

### Open Order

重新打开订单。所需权限：write\_orders。还需员工拥有相应操作权限。

`shopify.open_order`

### Mark Order Paid

将订单标记为已付款，用于登记已收到的付款，不会代替实际收款。所需权限：write\_orders。还需员工拥有相应操作权限。

`shopify.mark_order_paid`

### Send Order Invoice

发送订单付款通知。所需权限：write\_orders。还需员工拥有相应操作权限。

`shopify.send_order_invoice`

### Cancel Order

取消订单。所需权限：write\_orders 或 write\_marketplace\_orders 或 write\_buyer\_membership\_orders。操作不可撤销。

`shopify.cancel_order`

### Create Refund

创建订单退款，按指定交易退回款项；必须提供稳定幂等键。所需权限：orders 或 marketplace\_orders 或 buyer\_membership\_orders。

`shopify.create_refund`

### Create Customer

创建客户。所需权限：write\_customers。

`shopify.create_customer`

### Update Customer

更新客户。所需权限：write\_customers。

`shopify.update_customer`

### Delete Customer

删除客户。所需权限：write\_customers。

`shopify.delete_customer`

### Create Customer Address

创建客户地址。所需权限：write\_customers。

`shopify.create_customer_address`

### Update Customer Address

更新客户地址。所需权限：write\_customers。

`shopify.update_customer_address`

### Delete Customer Address

删除客户地址。所需权限：write\_customers。

`shopify.delete_customer_address`

### Set Default Customer Address

设置客户默认地址。所需权限：write\_customers。

`shopify.set_default_customer_address`

### Add Tags

添加资源标签。

`shopify.add_tags`

### Remove Tags

移除资源标签。

`shopify.remove_tags`

### Set Metafields

设置自定义字段。需要所属资源对应的写入权限。

`shopify.set_metafields`

### Delete Metafields

删除自定义字段。需要所属资源对应的写入权限。

`shopify.delete_metafields`

### Create Metaobject

创建自定义对象。所需权限：write\_metaobjects。

`shopify.create_metaobject`

### Update Metaobject

更新自定义对象。所需权限：write\_metaobjects。

`shopify.update_metaobject`

### Delete Metaobject

删除自定义对象。所需权限：write\_metaobjects。

`shopify.delete_metaobject`

### Cancel Bulk Operation

取消批量任务。

`shopify.cancel_bulk_operation`

### Create Draft Order

创建草稿订单。所需权限：write\_draft\_orders 或 write\_quick\_sale。还需员工拥有相应操作权限。

`shopify.create_draft_order`

### Update Draft Order

更新草稿订单。所需权限：write\_draft\_orders。还需员工拥有相应操作权限。

`shopify.update_draft_order`

### Delete Draft Order

删除草稿订单。所需权限：write\_draft\_orders 或 write\_quick\_sale。还需员工拥有相应操作权限。

`shopify.delete_draft_order`

### Complete Draft Order

完成草稿订单。所需权限：write\_draft\_orders。还需员工拥有相应操作权限。

`shopify.complete_draft_order`

### Send Draft Order Invoice

发送草稿订单付款通知。所需权限：write\_draft\_orders。还需员工拥有相应操作权限。

`shopify.send_draft_order_invoice`

### Create Blog

创建博客。所需权限：write\_online\_store\_pages。

`shopify.create_blog`

### Update Blog

更新博客。所需权限：write\_online\_store\_pages。

`shopify.update_blog`

### Delete Blog

删除博客。所需权限：write\_online\_store\_pages。

`shopify.delete_blog`

### Create Page

创建页面。所需权限：write\_online\_store\_pages。

`shopify.create_page`

### Update Page

更新页面。所需权限：write\_online\_store\_pages。

`shopify.update_page`

### Delete Page

删除页面。所需权限：write\_online\_store\_pages。

`shopify.delete_page`

### Create Article

创建文章。所需权限：write\_online\_store\_pages。

`shopify.create_article`

### Update Article

更新文章。所需权限：write\_online\_store\_pages。

`shopify.update_article`

### Delete Article

删除文章。所需权限：write\_online\_store\_pages。

`shopify.delete_article`

### Publish Resource

发布资源到销售渠道。所需权限：write\_publications。还需员工拥有相应操作权限。

`shopify.publish_resource`

### Unpublish Resource

从销售渠道撤下资源。所需权限：write\_publications。还需员工拥有相应操作权限。

`shopify.unpublish_resource`

### Create Files

从 URL 创建文件。所需权限：write\_files 或 write\_themes 或 write\_images。

`shopify.create_files`

### Delete Files

删除文件。所需权限：write\_files。

`shopify.delete_files`

### Get Order Cancel Result

轮询订单取消结果，返回成功或失败状态及错误。需要 read\_orders 和取消订单权限。

`shopify.get_order_cancel_result`

### Get Job

查询后台任务。

`shopify.get_job`

### Get Product Operation

查询商品异步操作。

`shopify.get_product_operation`

### List Publications

列出销售渠道发布目标。所需权限：read\_publications。

`shopify.list_publications`

### List Draft Orders

列出草稿订单。

`shopify.list_draft_orders`

### Get Draft Order

查询草稿订单。

`shopify.get_draft_order`

### List Files

列出文件和处理状态。所需权限：read\_files 或 read\_themes 或 read\_images。

`shopify.list_files`

### Get File

查询文件处理状态。

`shopify.get_file`

### List Metaobjects

列出自定义对象。所需权限：read\_metaobjects。

`shopify.list_metaobjects`

### Get Metaobject

查询自定义对象。所需权限：read\_metaobjects。

`shopify.get_metaobject`

### List Bulk Operations

列出批量任务。

`shopify.list_bulk_operations`

### Get Shop

检索已连接 Shopify Admin 令牌的基本店铺信息。

`shopify.get_shop`

### List Products

列出 Shopify 产品，支持可选搜索查询和游标分页。

`shopify.list_products`

### Get Product

按 ID 全局 GraphQL 检索一个 Shopify 产品。

`shopify.get_product`

### List Product Variants

列出 Shopify 产品变体，支持可选搜索查询和游标分页。

`shopify.list_product_variants`

### List Order Fulfillment Orders

列出一个 Shopify 订单的履约订单和可履约行项目。

`shopify.list_order_fulfillment_orders`

### Get Fulfillment Order

检索一个 Shopify 履约订单，行项目独立分页。

`shopify.get_fulfillment_order`

### List Orders

列出 Shopify 订单，支持可选搜索查询和游标分页。

`shopify.list_orders`

### Get Order

通过 GraphQL 全局 ID 检索一个 Shopify 订单。

`shopify.get_order`

### List Customers

列出 Shopify 客户，支持可选搜索查询和游标分页。

`shopify.list_customers`

### Get Customer

通过 GraphQL 全局 ID 检索一个 Shopify 客户。

`shopify.get_customer`

### List Inventory Items

列出 Shopify 库存项目，支持可选搜索查询和游标分页。

`shopify.list_inventory_items`

### Get Inventory Item

通过 GraphQL 全局 ID 检索一个 Shopify 库存项目。

`shopify.get_inventory_item`

### Get Inventory Quantities

检索一个 Shopify 库存项目在一个位置的选定库存数量状态。

`shopify.get_inventory_quantities`

### List Locations

列出 Shopify 库存位置，支持可选过滤器和游标分页。

`shopify.list_locations`

### Get Location

通过 GraphQL 全局 ID 检索一个 Shopify 位置。

`shopify.get_location`

### List Collections

列出 Shopify 收藏集，支持可选搜索查询和游标分页。

`shopify.list_collections`

### Get Collection

通过 GraphQL 全局 ID 检索一个 Shopify 收藏集。

`shopify.get_collection`

### Create Product

使用类型化产品属性和可选媒体源创建一个 Shopify 产品。

`shopify.create_product`

### Update Product

通过 GraphQL 全局 ID 使用类型化属性和可选新媒体更新一个 Shopify 产品。

`shopify.update_product`

### Adjust Inventory Quantities

应用增量 Shopify 库存数量更改，需要幂等性和显式比较并交换值。

`shopify.adjust_inventory_quantities`

### Set Inventory Quantities

设置绝对 Shopify 库存数量，需要幂等性和显式比较并交换值。

`shopify.set_inventory_quantities`

### Create Fulfillment

为一个或多个履约订单创建 Shopify 履约，支持可选跟踪和客户通知。

`shopify.create_fulfillment`

### Submit Bulk Query

提交 Shopify Admin GraphQL 批量查询，并返回用于异步轮询的操作 ID。

`shopify.submit_bulk_query`

### Get Bulk Operation

按 ID 检索一个 Shopify 批量操作，用于进度轮询和结果 URL 发现。

`shopify.get_bulk_operation`

### Download Bulk Result

下载已完成或部分的 Shopify 批量 JSONL 结果，并将其上传到连接器传输存储。

`shopify.download_bulk_result`

### Execute Graphql

对已连接的商店执行 JSON 友好的 Shopify Admin GraphQL 查询或变更。

`shopify.execute_graphql`

没有符合搜索条件的工具。

## 将 Shopify 接入 Open Flow

[连接 Shopify](https://console.openflow.run/connections/shopify)

每月 20,000 次免费应用调用（付费服务另计）
