8
n8n 한국어amn8n.com

Shopify 모든 주문을 Google 스프레드시트에 가져오기

중급

이것은Other분야의자동화 워크플로우로, 11개의 노드를 포함합니다.주로 If, Set, Code, SplitOut, HttpRequest 등의 노드를 사용하며. Shopify의 모든 주문을 Google 스프레드시트에 가져옵니다.

사전 요구사항
  • 대상 API의 인증 정보가 필요할 수 있음
  • Google Sheets API 인증 정보

카테고리

워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
  "meta": {
    "instanceId": "e634e668fe1fc93a75c4f2a7fc0dad807ca318b79654157eadb9578496acbc76",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "33114dba-d3e2-469c-bb01-e50d4e84be53",
      "name": "'Test workflow' 클릭 시",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        120,
        60
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "68a92424-8345-40d1-bdb2-ad4b68c35406",
      "name": "주문 가져오기",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        500,
        0
      ],
      "parameters": {
        "url": "https://{store}.myshopify.com/admin/api/2025-01/orders.json",
        "options": {
          "response": {
            "response": {
              "fullResponse": true
            }
          }
        },
        "sendQuery": true,
        "authentication": "predefinedCredentialType",
        "queryParameters": {
          "parameters": [
            {
              "name": "limit",
              "value": "250"
            },
            {
              "name": "fields",
              "value": "id,note,email,processed_at,customer"
            },
            {
              "name": "={{ $json.page_info ? \"page_info\" : \"status\" }}",
              "value": "={{ $json.page_info ? $json.page_info : 'any' }}"
            }
          ]
        },
        "nodeCredentialType": "shopifyAccessTokenApi"
      },
      "credentials": {
        "shopifyAccessTokenApi": {
          "id": "vtyKGPLLdjc7MLea",
          "name": "Shopify Access Token account"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "e0e67ff4-cba3-420e-ad06-4201d8517470",
      "name": "page_info 추출",
      "type": "n8n-nodes-base.code",
      "position": [
        900,
        120
      ],
      "parameters": {
        "jsCode": "function parseNextParams(headerValue) {\n    // Match the URL inside <>\n    const urlMatch = headerValue.match(/<([^>]+)>;\\s*rel=\"next\"/);\n    if (!urlMatch) return null;\n\n    const url = urlMatch[1]; // Extracted URL\n    const paramsString = url.split(\"?\")[1]; // Get query string\n\n    if (!paramsString) return {}; // No params found\n\n    // Convert query string to object\n    return paramsString.split(\"&\").reduce((acc, param) => {\n        const [key, value] = param.split(\"=\");\n        acc[decodeURIComponent(key)] = decodeURIComponent(value);\n        return acc;\n    }, {});\n}\n\n/* Example usage\n`<https://59b774-3.myshopify.com/admin/api/2025-01/orders.json?limit=250&fields=id%2Cnote%2Cemail%2Cprocessed_at%2Ccustomer&page_info=eyJzdGF0dXMiOiJhbnkiLCJsYXN0X2lkIjo2MzQ5MjI3MDAwMDk0LCJsYXN0X3ZhbHVlIjoiMjAyNC0xMi0zMSAwOToxMzowMi42MTcxNjYiLCJkaXJlY3Rpb24iOiJuZXh0In0>; rel=\"next\"`\n*/\nconst headerValue = $input.first().json.headers.link;\nconst params = parseNextParams(headerValue);\nreturn params;"
      },
      "typeVersion": 2
    },
    {
      "id": "fd06d8fa-3c6d-4877-a2e8-cb71b0d0ef32",
      "name": "루프 항목 병합",
      "type": "n8n-nodes-base.code",
      "position": [
        1120,
        -100
      ],
      "parameters": {
        "jsCode": "let results = [],\n  i = 0;\n\ndo {\n  try {\n    results = results.concat($(\"Get Orders\").all(0, i));\n  } catch (error) {\n    return results;\n  }\n  i++;\n} while (true);"
      },
      "typeVersion": 2
    },
    {
      "id": "cd9840ad-4ec2-4979-b0cc-c7dc42917452",
      "name": "주문 목록",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1380,
        -100
      ],
      "parameters": {
        "options": {},
        "fieldToSplitOut": "body.orders"
      },
      "typeVersion": 1
    },
    {
      "id": "9d491fda-ab2e-4247-85bd-969a07476471",
      "name": "Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1620,
        -100
      ],
      "parameters": {
        "columns": {
          "value": {
            "id": "={{ $json.id }}",
            "note": "={{ $json.note }}",
            "email": "={{ $json.email }}",
            "processed_at": "={{ $json.processed_at }}"
          },
          "schema": [
            {
              "id": "id",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "id",
              "defaultMatch": true,
              "canBeUsedToMatch": true
            },
            {
              "id": "email",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "email",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "processed_at",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "processed_at",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "note",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "note",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [
            "id"
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "appendOrUpdate",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": 2030201341,
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1yf_RYZGFHpMyOvD3RKGSvIFY2vumvI4474Qm_1t4-jM/edit#gid=2030201341",
          "cachedResultName": "shopify_orders"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1yf_RYZGFHpMyOvD3RKGSvIFY2vumvI4474Qm_1t4-jM",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1yf_RYZGFHpMyOvD3RKGSvIFY2vumvI4474Qm_1t4-jM/edit?usp=drivesdk",
          "cachedResultName": "Squarespace automation"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "JgI9maibw5DnBXRP",
          "name": "Google Sheets account"
        }
      },
      "typeVersion": 4.5
    },
    {
      "id": "d1974350-5fcb-448a-b895-17b296de0019",
      "name": "스티커 노트",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        440,
        -160
      ],
      "parameters": {
        "width": 232,
        "height": 346,
        "content": "## Edit this node 👇\n\nGet your store URL and replace in the GET url: https://{your-store}.myshopify.com/admin/api/2025-01/orders.json\n"
      },
      "typeVersion": 1
    },
    {
      "id": "bbc911a5-0020-47d9-8b2f-2edd7ac83325",
      "name": "스티커 노트1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1580,
        -260
      ],
      "parameters": {
        "width": 252,
        "height": 346,
        "content": "## Clone this spreadsheet\n\nhttps://docs.google.com/spreadsheets/d/1KRl6aCCU2SE3Z6vB2EbTnSwSUAre0BLf9Wu6fyPlrIE/edit?usp=sharing"
      },
      "typeVersion": 1
    },
    {
      "id": "fdec0965-3a0c-4886-90b4-f2ef4f0cebdd",
      "name": "일정 트리거",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        120,
        -120
      ],
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "87cdb9e8-a031-4a40-a5e6-65a0cfc40180",
      "name": "page_info 매개변수 할당",
      "type": "n8n-nodes-base.set",
      "position": [
        1120,
        120
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "57e59bb7-ac20-4a1b-b54a-3468fc0519d3",
              "name": "page_info",
              "type": "string",
              "value": "={{ $json.page_info }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "8f15e8a1-19de-401f-8ef2-358a42e806bb",
      "name": "page_info 존재 확인",
      "type": "n8n-nodes-base.if",
      "position": [
        720,
        0
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "30d965c3-cbba-430e-81c2-ef8b543665e7",
              "operator": {
                "type": "string",
                "operation": "notContains"
              },
              "leftValue": "={{ $json.headers.link }}",
              "rightValue": "rel=\"next\""
            }
          ]
        }
      },
      "typeVersion": 2.2
    }
  ],
  "pinData": {},
  "connections": {
    "68a92424-8345-40d1-bdb2-ad4b68c35406": {
      "main": [
        [
          {
            "node": "8f15e8a1-19de-401f-8ef2-358a42e806bb",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "cd9840ad-4ec2-4979-b0cc-c7dc42917452": {
      "main": [
        [
          {
            "node": "9d491fda-ab2e-4247-85bd-969a07476471",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "fd06d8fa-3c6d-4877-a2e8-cb71b0d0ef32": {
      "main": [
        [
          {
            "node": "cd9840ad-4ec2-4979-b0cc-c7dc42917452",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "fdec0965-3a0c-4886-90b4-f2ef4f0cebdd": {
      "main": [
        [
          {
            "node": "68a92424-8345-40d1-bdb2-ad4b68c35406",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "e0e67ff4-cba3-420e-ad06-4201d8517470": {
      "main": [
        [
          {
            "node": "87cdb9e8-a031-4a40-a5e6-65a0cfc40180",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "8f15e8a1-19de-401f-8ef2-358a42e806bb": {
      "main": [
        [
          {
            "node": "fd06d8fa-3c6d-4877-a2e8-cb71b0d0ef32",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "e0e67ff4-cba3-420e-ad06-4201d8517470",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "87cdb9e8-a031-4a40-a5e6-65a0cfc40180": {
      "main": [
        [
          {
            "node": "68a92424-8345-40d1-bdb2-ad4b68c35406",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "33114dba-d3e2-469c-bb01-e50d4e84be53": {
      "main": [
        [
          {
            "node": "68a92424-8345-40d1-bdb2-ad4b68c35406",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
자주 묻는 질문

이 워크플로우를 어떻게 사용하나요?

위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.

이 워크플로우는 어떤 시나리오에 적합한가요?

중급 - 기타

유료인가요?

이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.

워크플로우 정보
난이도
중급
노드 수11
카테고리1
노드 유형9
난이도 설명

일정 경험을 가진 사용자를 위한 6-15개 노드의 중간 복잡도 워크플로우

저자
bangank36

bangank36

@bangank36

Automation 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에서 보기

이 워크플로우 공유

카테고리

카테고리: 34