{
  "name": "Multi-Channel Order Processing",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "orders",
        "responseMode": "onReceived"
      },
      "id": "cf60503d-90a8-4187-a79d-10c1ee5f86d0",
      "name": "Order Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        260,
        300
      ],
      "notes": "Point Shopify/WooCommerce/Amazon order webhooks here."
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "e9584387-9c49-42ca-af61-8a934902c95e",
              "name": "orderId",
              "value": "={{ $json.body.id }}",
              "type": "string"
            },
            {
              "id": "2992fef7-3dee-442a-b14f-74a7c46d4fa8",
              "name": "sku",
              "value": "={{ $json.body.sku }}",
              "type": "string"
            }
          ]
        }
      },
      "id": "63ebf454-c9e6-4cf1-869b-0e241d4c472d",
      "name": "Normalize Order",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        560,
        300
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://ssapi.shipstation.com/orders/createorder",
        "sendBody": true
      },
      "id": "2976c9fe-f9e6-4264-b8cc-0f63d742e1a7",
      "name": "Create Shipment",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        860,
        300
      ],
      "notes": "Header Auth credential for ShipStation."
    },
    {
      "parameters": {
        "select": "channel",
        "text": "=Order {{ $json.orderId }} sent to fulfillment"
      },
      "id": "1ab73b45-c1d8-4b6b-a182-4d72718e36e1",
      "name": "Notify Ops",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.3,
      "position": [
        1160,
        300
      ]
    }
  ],
  "connections": {
    "Order Webhook": {
      "main": [
        [
          {
            "node": "Normalize Order",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Normalize Order": {
      "main": [
        [
          {
            "node": "Create Shipment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Shipment": {
      "main": [
        [
          {
            "node": "Notify Ops",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {}
}
