{
  "name": "Generate Packing Slip",
  "nodes": [
    {
      "parameters": {
        "content": "## Generate Packing Slip\n\nFulfillment centers and e-commerce platforms generate packing slips with order number, shipping address, and itemized contents \u2014 ready for printing and including in shipments.\n\n**Note:** This workflow uses the Iteration Layer community node (`n8n-nodes-iterationlayer`). Install it via Settings > Community Nodes on self-hosted n8n, or add it directly on n8n Cloud with Verified Community Nodes enabled.",
        "height": 280,
        "width": 500,
        "color": 2
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        200,
        40
      ],
      "id": "bdecf206-0601-4338-bfbd-237388b4eec5",
      "name": "Overview"
    },
    {
      "parameters": {
        "content": "### Step 1: Generate Document\nResource: **Document Generation**\n\nConfigure the Document Generation parameters below, then connect your credentials.",
        "height": 160,
        "width": 300,
        "color": 6
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        475,
        100
      ],
      "id": "70cfc140-a7d1-4e5b-a76b-dfa2231eaf6d",
      "name": "Step 1 Note"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        250,
        300
      ],
      "id": "527e2b3e-ca9a-4e4c-b16f-bfed7b363e0e",
      "name": "Manual Trigger"
    },
    {
      "parameters": {
        "resource": "documentGeneration",
        "format": "pdf",
        "documentJson": "{\n  \"metadata\": {\n    \"title\": \"Packing Slip - Order #WH-88421\",\n    \"author\": \"Summit Outdoor Gear\"\n  },\n  \"page\": {\n    \"size\": {\n      \"preset\": \"A4\"\n    },\n    \"margins\": {\n      \"top_in_pt\": 72,\n      \"right_in_pt\": 72,\n      \"bottom_in_pt\": 72,\n      \"left_in_pt\": 72\n    }\n  },\n  \"styles\": {\n    \"text\": {\n      \"font_family\": \"Helvetica\",\n      \"font_size_in_pt\": 11.0,\n      \"line_height\": 1.5,\n      \"color\": \"#333333\"\n    },\n    \"headline\": {\n      \"font_family\": \"Helvetica\",\n      \"font_size_in_pt\": 24.0,\n      \"color\": \"#111111\",\n      \"spacing_before_in_pt\": 12.0,\n      \"spacing_after_in_pt\": 6.0,\n      \"font_weight\": \"bold\"\n    },\n    \"link\": {\n      \"color\": \"#0066CC\",\n      \"is_underlined\": true\n    },\n    \"list\": {\n      \"text_style\": {\n        \"font_family\": \"Helvetica\",\n        \"font_size_in_pt\": 11.0,\n        \"line_height\": 1.5,\n        \"color\": \"#333333\"\n      },\n      \"marker_color\": \"#333333\",\n      \"marker_gap_in_pt\": 8.0\n    },\n    \"table\": {\n      \"header\": {\n        \"background_color\": \"#333333\",\n        \"text_color\": \"#FFFFFF\",\n        \"font_size_in_pt\": 11.0,\n        \"font_weight\": \"bold\"\n      },\n      \"body\": {\n        \"background_color\": \"#FFFFFF\",\n        \"text_color\": \"#333333\",\n        \"font_size_in_pt\": 11.0\n      },\n      \"border\": {\n        \"outer\": {\n          \"top\": {\n            \"color\": \"#CCCCCC\",\n            \"width_in_pt\": 1.0\n          },\n          \"right\": {\n            \"color\": \"#CCCCCC\",\n            \"width_in_pt\": 1.0\n          },\n          \"bottom\": {\n            \"color\": \"#CCCCCC\",\n            \"width_in_pt\": 1.0\n          },\n          \"left\": {\n            \"color\": \"#CCCCCC\",\n            \"width_in_pt\": 1.0\n          }\n        },\n        \"inner\": {\n          \"horizontal\": {\n            \"color\": \"#EEEEEE\",\n            \"width_in_pt\": 0.5\n          },\n          \"vertical\": {\n            \"color\": \"#EEEEEE\",\n            \"width_in_pt\": 0.5\n          }\n        }\n      }\n    },\n    \"grid\": {\n      \"background_color\": \"#FFFFFF\",\n      \"border_color\": \"#CCCCCC\",\n      \"border_width_in_pt\": 0.0,\n      \"gap_in_pt\": 12.0\n    },\n    \"separator\": {\n      \"color\": \"#CCCCCC\",\n      \"thickness_in_pt\": 1.0,\n      \"spacing_before_in_pt\": 12.0,\n      \"spacing_after_in_pt\": 12.0\n    },\n    \"image\": {\n      \"border_color\": \"#000000\",\n      \"border_width_in_pt\": 0.0\n    }\n  },\n  \"footer\": [\n    {\n      \"type\": \"paragraph\",\n      \"runs\": [\n        {\n          \"text\": \"Summit Outdoor Gear \\u00b7 1200 Warehouse Pkwy, Denver, CO 80216 \\u00b7 summitoutdoorgear.com\"\n        }\n      ]\n    }\n  ],\n  \"content\": [\n    {\n      \"type\": \"headline\",\n      \"level\": \"h1\",\n      \"text\": \"Packing Slip\"\n    },\n    {\n      \"type\": \"grid\",\n      \"columns\": [\n        {\n          \"column_span\": 4,\n          \"blocks\": [\n            {\n              \"type\": \"paragraph\",\n              \"runs\": [\n                {\n                  \"text\": \"Order #: \",\n                  \"font_weight\": \"bold\"\n                },\n                {\n                  \"text\": \"WH-88421\\n\"\n                },\n                {\n                  \"text\": \"Date: \",\n                  \"font_weight\": \"bold\"\n                },\n                {\n                  \"text\": \"March 14,\\n                      2026\"\n                }\n              ]\n            }\n          ]\n        },\n        {\n          \"column_span\": 4,\n          \"blocks\": [\n            {\n              \"type\": \"paragraph\",\n              \"runs\": [\n                {\n                  \"text\": \"Ship To:\\n\",\n                  \"font_weight\": \"bold\"\n                },\n                {\n                  \"text\": \"Jordan Rivera\\n4521 Pine Crest Ave\\nPortland,\\n                      OR 97201\"\n                }\n              ]\n            }\n          ]\n        },\n        {\n          \"column_span\": 4,\n          \"blocks\": [\n            {\n              \"type\": \"paragraph\",\n              \"runs\": [\n                {\n                  \"text\": \"Shipping Method:\\n\",\n                  \"font_weight\": \"bold\"\n                },\n                {\n                  \"text\": \"UPS Ground\\n\"\n                },\n                {\n                  \"text\": \"Tracking: \",\n                  \"font_weight\": \"bold\"\n                },\n                {\n                  \"text\": \"1Z999AA10123456784\"\n                }\n              ]\n            }\n          ]\n        }\n      ]\n    },\n    {\n      \"type\": \"separator\"\n    },\n    {\n      \"type\": \"table\",\n      \"column_widths_in_percent\": [\n        20,\n        55,\n        25\n      ],\n      \"header\": {\n        \"cells\": [\n          {\n            \"text\": \"SKU\"\n          },\n          {\n            \"text\": \"Item\"\n          },\n          {\n            \"text\": \"Qty\",\n            \"horizontal_alignment\": \"center\"\n          }\n        ]\n      },\n      \"rows\": [\n        {\n          \"cells\": [\n            {\n              \"text\": \"SOG-TN-440\"\n            },\n            {\n              \"text\": \"Alpine Pro 4-Person Tent\"\n            },\n            {\n              \"text\": \"1\",\n              \"horizontal_alignment\": \"center\"\n            }\n          ]\n        },\n        {\n          \"cells\": [\n            {\n              \"text\": \"SOG-SB-220\"\n            },\n            {\n              \"text\": \"Down Sleeping Bag (-10\\u00b0C)\"\n            },\n            {\n              \"text\": \"2\",\n              \"horizontal_alignment\": \"center\"\n            }\n          ]\n        },\n        {\n          \"cells\": [\n            {\n              \"text\": \"SOG-MP-115\"\n            },\n            {\n              \"text\": \"Foam Sleeping Pad (Regular)\"\n            },\n            {\n              \"text\": \"2\",\n              \"horizontal_alignment\": \"center\"\n            }\n          ]\n        },\n        {\n          \"cells\": [\n            {\n              \"text\": \"SOG-HL-330\"\n            },\n            {\n              \"text\": \"LED Headlamp (400 Lumens)\"\n            },\n            {\n              \"text\": \"3\",\n              \"horizontal_alignment\": \"center\"\n            }\n          ]\n        }\n      ]\n    },\n    {\n      \"type\": \"separator\"\n    },\n    {\n      \"type\": \"paragraph\",\n      \"runs\": [\n        {\n          \"text\": \"Total Items: \",\n          \"font_weight\": \"bold\"\n        },\n        {\n          \"text\": \"8 \\u00b7 Please verify all items upon receipt. For returns or exchanges,\\n              visit summitoutdoorgear.com/returns or contact support@summitoutdoorgear.com within 30 days.\"\n        }\n      ]\n    }\n  ]\n}"
      },
      "type": "n8n-nodes-iterationlayer.iterationLayer",
      "typeVersion": 1,
      "position": [
        500,
        300
      ],
      "id": "a449367c-93b9-4405-b90b-041d34affc4d",
      "name": "Generate Document",
      "credentials": {
        "iterationLayerApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Generate Document",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}