AutomationFlowsWeb Scraping › Create or Find Stripe Customers and Automatically Generate Invoices

Create or Find Stripe Customers and Automatically Generate Invoices

ByAudun @xqus on n8n.io

Save hours of manual billing work with this Stripe automation workflow! Designed for entrepreneurs, SaaS founders, and online business owners, this template checks if a customer already exists in Stripe based on their email. If no customer is found, it automatically creates a…

Event trigger★★★★☆ complexity10 nodesHTTP Request
Web Scraping Trigger: Event Nodes: 10 Complexity: ★★★★☆ Added:

This workflow corresponds to n8n.io template #3723 — we link there as the canonical source.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "nodes": [
    {
      "id": "6f5abd7f-51a7-488f-9fdc-0dc7b9b94b45",
      "name": "Get Stripe Customer",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -460,
        100
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "3e000064-f370-4229-a46c-eb93ab34cfae",
      "name": "Customer exists?",
      "type": "n8n-nodes-base.if",
      "position": [
        -260,
        100
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "82014597-3859-4762-a9b3-10e1e9d9aeda",
      "name": "Create customer",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        0,
        200
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "0f95b863-e1f7-4732-9e9d-3e3c2deae76b",
      "name": "Create invoice",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        280,
        100
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "abcdc761-c7d2-4eaf-8cbd-c4fe80cc47ad",
      "name": "Finalize invoice",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        700,
        100
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "a90c9731-8fea-4037-a6c4-04bc52ad4eac",
      "name": "When clicking \u2018Test workflow\u2019",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -860,
        100
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "5a3478f0-a0d3-493f-9420-126cbcde535d",
      "name": "Set invoice data",
      "type": "n8n-nodes-base.set",
      "position": [
        -660,
        100
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "eb49ed91-bd3b-4752-8932-327457c6ae72",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1480,
        -40
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "923b2c54-eeb8-4605-b0fd-fc24939f11ff",
      "name": "Set customer id",
      "type": "n8n-nodes-base.set",
      "position": [
        0,
        0
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "250a7a35-2079-45fc-b192-dd8a012bbb97",
      "name": "Add item to invoice",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        500,
        100
      ],
      "parameters": {},
      "typeVersion": 4.2
    }
  ],
  "connections": {
    "Create invoice": {
      "main": [
        [
          {
            "node": "Add item to invoice",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create customer": {
      "main": [
        [
          {
            "node": "Create invoice",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set customer id": {
      "main": [
        [
          {
            "node": "Create invoice",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Customer exists?": {
      "main": [
        [
          {
            "node": "Set customer id",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create customer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set invoice data": {
      "main": [
        [
          {
            "node": "Get Stripe Customer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add item to invoice": {
      "main": [
        [
          {
            "node": "Finalize invoice",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Stripe Customer": {
      "main": [
        [
          {
            "node": "Customer exists?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \u2018Test workflow\u2019": {
      "main": [
        [
          {
            "node": "Set invoice data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Save hours of manual billing work with this Stripe automation workflow! Designed for entrepreneurs, SaaS founders, and online business owners, this template checks if a customer already exists in Stripe based on their email. If no customer is found, it automatically creates a…

Source: https://n8n.io/workflows/3723/ — original creator credit. Request a take-down →

More Web Scraping workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Web Scraping

This workflow listens for an “Approved” label on a Trello card, reads the AI draft bookkeeping JSON from card comments, and posts the corresponding transaction to Xero. It then adds a Xero deep link b

Trello Trigger, HTTP Request
Web Scraping

02_LLM_Pipeline v1.0. Uses executeWorkflowTrigger, httpRequest, seaTable. Event-driven trigger; 65 nodes.

Execute Workflow Trigger, HTTP Request, Sea Table
Web Scraping

This workflow allows you to import any workflow from a file or another n8n instance and map the credentials easily. A multi-form setup guides you through the entire process At the beginning you have t

Execute Command, Read Write File, HTTP Request +3
Web Scraping

[n8n] Advanced URL Parsing and Shortening Workflow - Switchy.io Integration. Uses splitInBatches, stickyNote, httpRequest, html. Event-driven trigger; 56 nodes.

HTTP Request, GitHub, Stop And Error +1
Web Scraping

[](https://youtu.be/c7yCZhmMjtI)

HTTP Request, GitHub, Stop And Error +1