{
  "name": "Automatic Squarespace order fulfillment process",
  "nodes": [
    {
      "id": "754006f5-1a7e-4e29-9850-e38b1d0c0d09",
      "name": "On clicking 'execute'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        360,
        80
      ]
    },
    {
      "id": "6b7b0d05-38cc-4c2d-8a71-874ff5ad29d9",
      "name": "Split Out Order ",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1080,
        200
      ]
    },
    {
      "id": "1494f1ff-f377-4d56-8da7-274f0c182588",
      "name": "Globals",
      "type": "n8n-nodes-base.set",
      "position": [
        600,
        200
      ]
    },
    {
      "id": "01557e82-9f89-4030-af0f-6663ea945191",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        540,
        80
      ],
      "parameters": {
        "width": 150,
        "height": 80,
        "content": "## Edit this node 👇"
      }
    },
    {
      "id": "9d9d361a-dd12-4c57-9f76-7c4738b5af1e",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        360,
        340
      ]
    },
    {
      "id": "a3e41614-ca4e-4730-a4ab-1e9933ef71d5",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 320,
        "height": 660,
        "content": "## Squarespace Fulfillment Automation with n8n\nRetrieves all Squarespace Orders and mark them as fulfilled automatically Squarespace Commerce API\n\n### Setup\nOpen `Globals` node and update the values b"
      }
    },
    {
      "id": "bc78dac5-3fa9-4b65-a5c3-2196ed53a81c",
      "name": "Query pending Orders",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        840,
        200
      ]
    },
    {
      "id": "a5723a03-41d1-49a9-9baa-c7482fdf82a3",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1640,
        200
      ]
    },
    {
      "id": "7e656389-ca9c-4ff4-9db1-68f84a13e605",
      "name": "Fulfill Order",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1940,
        200
      ]
    },
    {
      "id": "b14b6db8-a027-41c2-a030-aa09b0003d73",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1880,
        0
      ],
      "parameters": {
        "width": 232,
        "height": 346,
        "content": "## Create fulfillment  👇\n\n[Fulfill an order](https://developers.squarespace.com/commerce-apis/fulfill-order)\n- `shouldSendNotification` to send notifications to customer"
      }
    },
    {
      "id": "effd0876-0003-4e3f-ad61-cfe3d4391e67",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1280,
        -80
      ],
      "parameters": {
        "width": null,
        "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 yo"
      }
    },
    {
      "id": "ac8538f5-b93b-43c5-9100-33fe3f6cd70b",
      "name": "Filter Orders",
      "type": "n8n-nodes-base.filter",
      "position": [
        1340,
        200
      ]
    }
  ],
  "connections": {
    "Globals": {
      "main": [
        [
          {
            "node": "Query pending Orders",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Orders": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fulfill Order": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Fulfill Order",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Globals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out Order ": {
      "main": [
        [
          {
            "node": "Filter Orders",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Query pending Orders": {
      "main": [
        [
          {
            "node": "Split Out Order ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On clicking 'execute'": {
      "main": [
        [
          {
            "node": "Globals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}