Shopify注文の自動履行フロー
中級
これはAI, IT Ops分野の自動化ワークフローで、13個のノードを含みます。主にSet, Filter, Shopify, HttpRequest, ManualTriggerなどのノードを使用、AI技術を活用したスマート自動化を実現。 Shopify オーダー自動履行フロー
前提条件
- •Shopify Admin API認証情報
- •ターゲットAPIの認証情報が必要な場合あり
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"meta": {
"instanceId": "e634e668fe1fc93a75c4f2a7fc0dad807ca318b79654157eadb9578496acbc76",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "30da4d86-83ef-4226-ad2e-d73f531bd4ed",
"name": "「Test workflow」クリック時",
"type": "n8n-nodes-base.manualTrigger",
"position": [
0,
100
],
"parameters": {},
"typeVersion": 1
},
{
"id": "bd57625d-03f2-48b3-94b5-2653214682eb",
"name": "付箋",
"type": "n8n-nodes-base.stickyNote",
"position": [
700,
-280
],
"parameters": {
"height": 440,
"content": "## Filtering orders for fulfillment 👇\nFilter the valid orders for programatically fulfillments\n\n- you exclusively sell digital downloads or digital gift cards\n- you use fulfillment services for all your products\n"
},
"typeVersion": 1
},
{
"id": "5928c16f-b842-42e3-9c81-ac9b796d22ff",
"name": "Loop Over Items",
"type": "n8n-nodes-base.splitInBatches",
"position": [
1060,
0
],
"parameters": {
"options": {}
},
"typeVersion": 3
},
{
"id": "4509fb4e-fed0-4424-94a2-55d1c56a5d5a",
"name": "付箋1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1320,
-180
],
"parameters": {
"height": 340,
"content": "## Get fulfillment orders 👇\n[Retrieves a list of fulfillment orders for a specific order.](https://shopify.dev/docs/api/admin-rest/2025-01/resources/fulfillmentorder#get-orders-order-id-fulfillment-orders)\n\n\n"
},
"typeVersion": 1
},
{
"id": "76e16b42-01a3-4c88-a64b-a408b4bb9f40",
"name": "Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
0,
-160
],
"parameters": {
"rule": {
"interval": [
{}
]
}
},
"typeVersion": 1.2
},
{
"id": "1835c0d1-c7d3-4db6-b898-d604c8df7ad1",
"name": "Filter Orders",
"type": "n8n-nodes-base.filter",
"position": [
760,
0
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "loose"
},
"combinator": "and",
"conditions": [
{
"id": "3fdde26b-82ef-42f1-ba36-d4fe667f8866",
"operator": {
"type": "number",
"operation": "gt"
},
"leftValue": "={{ (new Date().getTime() - new Date($json.created_at).getTime()) / (1000 * 60 * 60) }}\n",
"rightValue": 24
}
]
},
"looseTypeValidation": true
},
"typeVersion": 2.2
},
{
"id": "977c3b8d-e3a9-4146-bc4c-e06e67f26a9e",
"name": "Get Fulfillment Orders",
"type": "n8n-nodes-base.httpRequest",
"position": [
1380,
20
],
"parameters": {
"url": "=https://{{ $('Set Global').item.json['store-id'] }}.myshopify.com/admin/api/2025-01/orders/{{ $json.id }}/fulfillment_orders.json",
"options": {},
"authentication": "predefinedCredentialType",
"nodeCredentialType": "shopifyAccessTokenApi"
},
"credentials": {
"shopifyAccessTokenApi": {
"id": "vtyKGPLLdjc7MLea",
"name": "Shopify Access Token account"
}
},
"typeVersion": 4.2
},
{
"id": "cf4c99c4-882c-4706-9cb9-8c154549545b",
"name": "付箋2",
"type": "n8n-nodes-base.stickyNote",
"position": [
240,
-180
],
"parameters": {
"width": 232,
"height": 346,
"content": "## Edit this node 👇\n\nGet your store ID and replace in the GET url"
},
"typeVersion": 1
},
{
"id": "3a33e89b-ecf5-4be1-b3e4-9c20c00c7c1c",
"name": "Set Global",
"type": "n8n-nodes-base.set",
"position": [
300,
0
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "78289fb1-8a1a-46a2-973e-f5f2a7309993",
"name": "store-id",
"type": "string",
"value": "{store-id}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "68dffeba-705c-42b5-851e-893964a51176",
"name": "付箋4",
"type": "n8n-nodes-base.stickyNote",
"position": [
1680,
-180
],
"parameters": {
"width": 232,
"height": 346,
"content": "## Create fulfillment 👇\n\n[Creates a fulfillment for one or many fulfillment orders](https://shopify.dev/docs/api/admin-rest/2025-04/resources/fulfillment#post-fulfillments)\n- `notify_customer` to send notifications to customer"
},
"typeVersion": 1
},
{
"id": "24137672-00d7-4fa0-9238-f2dca7900adf",
"name": "付箋5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-440,
-300
],
"parameters": {
"width": 372,
"height": 546,
"content": "## Shopify Fulfillment Automation with n8n\nShopify store owners who want to automate the fulfillment process, whether for entire orders or specific products (like personalization items). However, the challenge lies in retrieving the [Fulfillment Order ID](https://shopify.dev/docs/api/admin-rest/2025-01/resources/fulfillmentorder#get-orders-order-id-fulfillment-orders) (not [Order ID](https://shopify.dev/docs/api/admin-rest/2025-01/resources/order#get-orders-order-id?fields=id,line-items,name,total-price))—a crucial piece needed to trigger fulfillment.\n\nThis n8n workflow can:\n\n- Get all unfulfilled orders from Shopify store.\n\n- Retrieve the Fulfillment Order ID (using the \"List Fulfillment Orders\" action).\n\n- Create a fulfillment request (using \"Mark fulfillment orders as fulfilled\").\n\n- Handle edge cases, like partially fulfilled orders or errors in API responses.\n\n"
},
"typeVersion": 1
},
{
"id": "bfb340f2-1fb6-4be7-823a-d24d6d8361be",
"name": "Get all Unfulfilled orders",
"type": "n8n-nodes-base.shopify",
"position": [
540,
0
],
"parameters": {
"options": {
"fulfillmentStatus": "unfulfilled"
},
"operation": "getAll",
"returnAll": true,
"authentication": "accessToken"
},
"credentials": {
"shopifyAccessTokenApi": {
"id": "vtyKGPLLdjc7MLea",
"name": "Shopify Access Token account"
}
},
"typeVersion": 1
},
{
"id": "8350fcaf-1bf8-4af1-a716-816b19a4b892",
"name": "Mark fulfillment orders as fulfilled",
"type": "n8n-nodes-base.httpRequest",
"position": [
1740,
20
],
"parameters": {
"url": "=https://{{ $('Set Global').item.json['store-id'] }}.myshopify.com/admin/api/2025-01/fulfillments.json",
"method": "POST",
"options": {},
"jsonBody": "={\"fulfillment\":{\"line_items_by_fulfillment_order\":[{\"fulfillment_order_id\":{{ $json.fulfillment_orders[0].id }}}],\"notify_customer\":true}}",
"sendBody": true,
"specifyBody": "json",
"authentication": "predefinedCredentialType",
"nodeCredentialType": "shopifyAccessTokenApi"
},
"credentials": {
"shopifyAccessTokenApi": {
"id": "vtyKGPLLdjc7MLea",
"name": "Shopify Access Token account"
}
},
"typeVersion": 4.2
}
],
"pinData": {},
"connections": {
"3a33e89b-ecf5-4be1-b3e4-9c20c00c7c1c": {
"main": [
[
{
"node": "bfb340f2-1fb6-4be7-823a-d24d6d8361be",
"type": "main",
"index": 0
}
]
]
},
"1835c0d1-c7d3-4db6-b898-d604c8df7ad1": {
"main": [
[
{
"node": "5928c16f-b842-42e3-9c81-ac9b796d22ff",
"type": "main",
"index": 0
}
]
]
},
"5928c16f-b842-42e3-9c81-ac9b796d22ff": {
"main": [
[],
[
{
"node": "977c3b8d-e3a9-4146-bc4c-e06e67f26a9e",
"type": "main",
"index": 0
}
]
]
},
"76e16b42-01a3-4c88-a64b-a408b4bb9f40": {
"main": [
[
{
"node": "3a33e89b-ecf5-4be1-b3e4-9c20c00c7c1c",
"type": "main",
"index": 0
}
]
]
},
"977c3b8d-e3a9-4146-bc4c-e06e67f26a9e": {
"main": [
[
{
"node": "8350fcaf-1bf8-4af1-a716-816b19a4b892",
"type": "main",
"index": 0
}
]
]
},
"bfb340f2-1fb6-4be7-823a-d24d6d8361be": {
"main": [
[
{
"node": "1835c0d1-c7d3-4db6-b898-d604c8df7ad1",
"type": "main",
"index": 0
}
]
]
},
"30da4d86-83ef-4226-ad2e-d73f531bd4ed": {
"main": [
[
{
"node": "3a33e89b-ecf5-4be1-b3e4-9c20c00c7c1c",
"type": "main",
"index": 0
}
]
]
},
"8350fcaf-1bf8-4af1-a716-816b19a4b892": {
"main": [
[
{
"node": "5928c16f-b842-42e3-9c81-ac9b796d22ff",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - 人工知能, IT運用
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
Squarespace注文の自動履行フロー
Squarespace オーダー自動履行フロー
Set
Filter
Split Out
+
Set
Filter
Split Out
12 ノードbangank36
営業
Microsoft Teams会議分析をGPT-4.1、Outlook、Mem.aiを使用して自動化
GPT-4.1、Outlook、Mem.aiを使ってMicrosoft Teams会議の分析を自動化する
If
Set
Code
+
If
Set
Code
61 ノードWayne Simpson
人事
Googleスプレッドシートからn8nユーザーの招待を自動化する
Googleスプレッドシートからn8nユーザーの招待を自動化
Set
Code
Merge
+
Set
Code
Merge
11 ノードbangank36
IT運用
Squarespace コードインジェクションを GitHub にバックアップ
Squarespace コードインジェクションを GitHub へバックアップ
If
Set
Code
+
If
Set
Code
17 ノードbangank36
エンジニアリング
AI スマートアシスタント: Supabase ストレージと Google Drive ファイルとの対話
AIワンチャットボット:SupabaseストレージとGoogle Driveのファイルと対話
If
Set
Wait
+
If
Set
Wait
62 ノードMark Shcherbakov
エンジニアリング
GPT-4o、Googleカレンダー、Gmailを使って自動のに会議の参加者を調べる
GPT-4o、Google カレンダー、Gmail を使って会議参加者の調査を自動生成
If
Set
Gmail
+
If
Set
Gmail
18 ノードAdam Janes
人工知能
ワークフロー情報
難易度
中級
ノード数13
カテゴリー2
ノードタイプ8
作成者
bangank36
@bangank36Automation specialist with 10+ years of experience helping SME website owners streamline their workflows—specializing in Squarespace, Shopify, and WordPress. Book an initial consultation for custom n8n automation using my link.
外部リンク
n8n.ioで表示 →
このワークフローを共有