{
  "name": "Sync inventory updates between systems via webhook and Google Sheets logging",
  "nodes": [
    {
      "id": "91ded471-7fd7-439a-b549-5fbb62fd5838",
      "name": "Inventory Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -128,
        16
      ]
    },
    {
      "id": "e7ec7048-62c0-4433-bc3f-e302562eebe9",
      "name": "Normalize Inventory Data",
      "type": "n8n-nodes-base.set",
      "position": [
        144,
        16
      ]
    },
    {
      "id": "e684f603-500c-4306-845b-3e99d8c4d4fa",
      "name": "Check Sync Origin",
      "type": "n8n-nodes-base.if",
      "position": [
        432,
        16
      ]
    },
    {
      "id": "3e2a34ff-a113-4bf8-9d89-d74a8e644480",
      "name": "Prepare Inventory Payload",
      "type": "n8n-nodes-base.code",
      "position": [
        656,
        -32
      ]
    },
    {
      "id": "31d2b2ea-bd0a-46ab-b32a-28bfd0dd9130",
      "name": "Send Inventory To Secondary API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        864,
        -32
      ]
    },
    {
      "id": "58f465b6-99fd-4319-85d9-50b04a1b7e76",
      "name": "Log Inventory Sync To Google Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1264,
        -32
      ]
    },
    {
      "id": "e51d34f3-4758-485a-b499-ff0ae01bfe2b",
      "name": "Inventory Sync Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -880,
        -240
      ],
      "parameters": {
        "width": 656,
        "height": 496,
        "content": "## Retail – Transfer Inventory Updates Across Systems\n\n### Purpose\nAutomatically synchronize inventory quantity updates between systems such as online stores, POS, ERP or warehouse platforms. This wor"
      }
    },
    {
      "id": "168e11af-13ca-4ce8-996d-4e83c5d60e01",
      "name": "Trigger & Data Preparation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        -176
      ],
      "parameters": {
        "width": 544,
        "height": 368,
        "content": "## Trigger & Data Preparation\n\nDetects inventory update events from the source system and prepares a standardized data structure by extracting essential fields such as SKU, quantity, source system and"
      }
    },
    {
      "id": "2296361e-34b6-4c05-bfc9-568a631ecfae",
      "name": "Inventory Sync",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        384,
        -176
      ],
      "parameters": {
        "width": 640,
        "height": 368,
        "content": "## Inventory Sync\n\nValidates the origin of the inventory update to prevent circular sync loops, prepares a clean and API-ready payload and sends the inventory update to the secondary system for synchr"
      }
    },
    {
      "id": "7144a960-d2a9-455d-97ca-dfdc0e315772",
      "name": "Logging",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1072,
        -176
      ],
      "parameters": {
        "width": 464,
        "height": 368,
        "content": "## Logging\n\nRecords inventory sync details such as SKU, quantity, source system, status into Google Sheets for auditing, tracking and operational visibility."
      }
    }
  ],
  "connections": {
    "Check Sync Origin": {
      "main": [
        [
          {
            "node": "Prepare Inventory Payload",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Inventory Webhook": {
      "main": [
        [
          {
            "node": "Normalize Inventory Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Normalize Inventory Data": {
      "main": [
        [
          {
            "node": "Check Sync Origin",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Inventory Payload": {
      "main": [
        [
          {
            "node": "Send Inventory To Secondary API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Inventory To Secondary API": {
      "main": [
        [
          {
            "node": "Log Inventory Sync To Google Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}