{
 "id": "shopifyordersshe",
 "name": "AutomateRecipes \u2013 shopify-orders-sheet",
 "nodes": [
  {
   "parameters": {},
   "name": "Manual Trigger",
   "type": "n8n-nodes-base.manualTrigger",
   "typeVersion": 1,
   "position": [
    0,
    0
   ],
   "id": "3af2f521-ed5b-4968-a66a-67b9d07ae25d"
  },
  {
   "parameters": {
    "url": "http://127.0.0.1:9000/shopify/orders",
    "options": {}
   },
   "type": "n8n-nodes-base.httpRequest",
   "typeVersion": 4.2,
   "name": "S1 GET mock/shopify/orders",
   "position": [
    220,
    0
   ],
   "id": "f2c74f7f-b73f-4ab7-af61-8ef5e7457d8c"
  },
  {
   "parameters": {
    "jsCode": "const o=$input.first().json.orders;if(o.length!==2)throw new Error('expected 2 orders');return o.map(x=>({json:{service:'sheets/append',payload:{date:x.created_at,total:x.total_price,customer:x.email,items:x.line_items.map(l=>l.title).join(', ')}}}));"
   },
   "type": "n8n-nodes-base.code",
   "typeVersion": 2,
   "name": "S2",
   "position": [
    440,
    0
   ],
   "id": "a5fd34a3-2c5a-42d8-a816-8edf923f9f43"
  },
  {
   "parameters": {
    "method": "POST",
    "url": "=http://127.0.0.1:9000/{{ $json.service }}",
    "sendBody": true,
    "specifyBody": "json",
    "jsonBody": "={{ JSON.stringify($json.payload) }}",
    "options": {}
   },
   "type": "n8n-nodes-base.httpRequest",
   "typeVersion": 4.2,
   "name": "S3 POST mock (send)",
   "position": [
    660,
    0
   ],
   "id": "ca5d38ea-bd34-46e9-b132-2908c7052a9b"
  }
 ],
 "connections": {
  "Manual Trigger": {
   "main": [
    [
     {
      "node": "S1 GET mock/shopify/orders",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "S1 GET mock/shopify/orders": {
   "main": [
    [
     {
      "node": "S2",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "S2": {
   "main": [
    [
     {
      "node": "S3 POST mock (send)",
      "type": "main",
      "index": 0
     }
    ]
   ]
  }
 },
 "settings": {},
 "active": false,
 "pinData": {},
 "meta": {
  "note": "Tested on n8n 1.70.3 with local mocks for: Shopify (Watch Orders), Google Sheets. Replace 'POST mock'/'GET mock' HTTP nodes with the real app nodes + credentials before production."
 }
}