{
  "name": "Automate QuickBooks customers & sales receipts generation from a Google Sheet",
  "nodes": [
    {
      "id": "01eb09e0-1209-4614-ab15-16ee134500b4",
      "name": "Google Sheets Trigger",
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "position": [
        -360,
        -60
      ]
    },
    {
      "id": "generated-601704ef-7cbd-449a-afd3-da0f6d324ddd",
      "name": "Workflow Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -580,
        -400
      ],
      "parameters": {
        "width": 800,
        "height": 280,
        "content": "## Workflow Overview\n\nThis workflow first checks if a customer from the Google Sheet already exists in QuickBooks Online using their **Customer Name** or **Email**.\n\n- If the customer **exists**, the "
      }
    },
    {
      "id": "generated-b0d6eeec-8888-4a1a-a47e-6e4507bd358c",
      "name": "QuickBooks Customer Check & Creation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -200,
        200
      ],
      "parameters": {
        "width": 800,
        "height": 280,
        "content": "### QuickBooks Customer Check & Creation\n\n1.  **Check Customer Existence**: This node queries QuickBooks Online to see if a customer with the matching \"Customer Name\" or \"Email\" already exists.\n2.  **"
      }
    },
    {
      "id": "generated-2e0f8a9c-3a00-4222-997a-ccfd0dfdd357",
      "name": "Customer Exists?",
      "type": "n8n-nodes-base.if",
      "position": [
        440,
        40
      ]
    },
    {
      "id": "generated-035f9a50-5501-4f7e-a282-4054830fd813",
      "name": "Create Customer",
      "type": "n8n-nodes-base.quickbooks",
      "position": [
        760,
        160
      ]
    },
    {
      "id": "generated-f97635f5-7da3-4756-9569-88abcf4259ea",
      "name": "Create Sales Receipt",
      "type": "n8n-nodes-base.quickbooks",
      "position": [
        1020,
        -20
      ]
    },
    {
      "id": "ae9dae6f-5c70-4547-8dd7-90fd4eb3b431",
      "name": "QuickBooks Customer Check & Creation1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        -380
      ],
      "parameters": {
        "width": 820,
        "height": 340,
        "content": "### Sales Receipts\n\n1.  **Check Customer Existence**: This node queries QuickBooks Online to see if a customer with the matching \"Customer Name\" or \"Email\" already exists.\n2.  **Customer Exists?**: Th"
      }
    },
    {
      "id": "0b6028de-052f-40ad-a384-c126f3d2c20a",
      "name": "Check Customer Existence",
      "type": "n8n-nodes-base.quickbooks",
      "position": [
        60,
        0
      ]
    }
  ],
  "connections": {
    "Create Customer": {
      "main": [
        [
          {
            "node": "Create Sales Receipt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Customer Exists?": {
      "main": [
        [
          {
            "node": "Create Sales Receipt",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create Customer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets Trigger": {
      "main": [
        [
          {
            "node": "Create a customer",
            "type": "main",
            "index": 0
          },
          {
            "node": "Check Customer Existence",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Customer Existence": {
      "main": [
        [
          {
            "node": "Customer Exists?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}