Create Stripe Invoices from Airtable Orders with Google Sheets Logging — n8n 工作流

复杂度 定时9 个节点🏷️ Invoice Processing作者:Rahul Joshi

概览

Description Automate B2B order invoicing by fetching orders from Airtable, validating paid B2B entries, creating Stripe customers and invoices, finalizing invoices, and logging structured invoice data into Google Sheets. This workflow ensures seamless B2B billing, centralized record-keeping, and reduces manual errors in financial operations. ⚡💳📊

What This Template Does Triggers hourly to check for new B2B orders. ⏱️ Fetches order data from Airtable (Orders table). 📥 Filters only paid orders wit

使用的节点

AirtableGoogle SheetsHTTP RequestStripeCode

工作流预览

🚀 B2B Invoice Automation Workflow
This workflow automatically creates Stripe invoices for
What it does:
- Triggers every hour to check for new
⏰ Schedule Setup
Purpose: Triggers the workflow every hour to check for
Configuration:
- Interval: 1 hour
- Can be changed based on your needs
Tips:
📋 Airtable Setup
Purpose: Fetch order data from your Airtable
Required Steps:
1. Replace the hardcoded record ID with your actual rec
2. Update base ID and table ID to match your se
🔍 Order Filtering
Purpose: Only process B2B orders that are already paid
Filter Conditions:
- financial_status = "paid"
- tags contains "B2B"
- Both conditions must be true (AND logic)
👤 Stripe Customer Creation
Purpose: Create or update customer in Stripe
Configuration:
- Maps customer data from Airtable
- Uses continueOnFail to handle existing customers
- Stores custo
📄 Line Item Processing
Purpose: Split orders into individual line items for in
What it does:
- Processes each product in the order separately
- Formats data for Stripe invoice crea
🧾 Invoice Creation
Purpose: Create draft invoice in Stripe
Configuration:
- Creates invoice for the customer
- Sets 30-day payment terms
- Uses send_invoice collection method
✅ Invoice Finalization
Purpose: Finalize the draft invoice to make it payable
What happens:
- Converts draft to final invoice
- Generates invoice number
- Makes invoice payable by custome
📊 Data Formatting
Purpose: Format invoice data for Google Sheets logging
Data includes:
- Invoice details (ID, number, status)
- Customer information
- Financial amounts (converted from c
📋 Google Sheets Logging
Purpose: Log invoice data to spreadsheet for tracking
Setup Required:
1. Replace YOUR_SPREADSHEET_ID with your actual Google
2. Ensure proper column head
H
Hourly Trigger
Fetch B2B Order
F
Filter B2B Paid Orders
Create Stripe Customer
Process Line Items
Create Stripe Invoice
Finalize Invoice
Format Data for Sheets
Log to Google Sheets
9 nodes8 edges

工作原理

  1. 1

    触发器

    工作流由 定时 触发器启动,按预定计划运行。

  2. 2

    处理

    数据流经 9 个节点, connecting airtable, code, googlesheets。

  3. 3

    输出

    工作流完成自动化并将结果发送到配置的目标。

节点详情 (9)

AI

Airtable

airtable

#1
GO

Google Sheets

googleSheets

#2
HT

HTTP Request

httpRequest

#3
ST

Stripe

stripe

#4
CO

Code

code

#5

如何导入此工作流

  1. 1点击右侧 下载 JSON 按钮保存工作流文件。
  2. 2打开你的 n8n 实例,依次点击 工作流 → 新建 → 从文件导入
  3. 3选择下载的 create-stripe-invoices-from-airtable-orders-with-google-sheets-logging 文件并点击导入。
  4. 4为每个服务节点配置 凭证(API 密钥、OAuth 等)。
  5. 5点击 测试工作流 验证一切正常,然后激活它。

或直接在 n8n → 从 JSON 导入 中粘贴:

{ "name": "Create Stripe Invoices from Airtable Orders with Google Sheets Logging", "nodes": [...], ...}

集成

airtablecodegooglesheetshttprequestifscheduletriggerstripe

获取此工作流

一键下载并导入

下载 JSON在 n8n.io 上查看
节点9
复杂度medium
触发器scheduled

创建者

Rahul Joshi

Rahul Joshi

@rahul08

标签

airtablecodegooglesheetshttprequestifscheduletriggerstripe

n8n 新手?

n8n 是一款免费开源的工作流自动化工具,支持自托管或使用云版本。

免费获取 n8n →

Related Invoice Processing Workflows

COCOEMEX+5
medium

Automate Custom QuickBooks Invoice PDFs & Email with n8n

Standard accounting templates often fail to reflect a premium brand identity. This sophisticated n8n workflow bridges the gap between financial record-keeping and professional client presentation. By moving beyond the native limitations of QuickBooks Online, this automation enables businesses to generate high-end, multi-page PDF invoices that align perfectly with their corporate styling. The process begins the moment a new invoice is generated in QuickBooks, triggering a webhook that captures real-time billing data. The workflow then utilizes advanced HTML-to-File conversion and custom Code nodes to structure data into a polished, branded layout. It handles complex logic such as line-item merging and multi-page formatting automatically. Once the document is rendered, the system bypasses generic 'no-reply' senders by routing the finalized PDF through your preferred email provider. This ensures a seamless, white-labeled experience for your clients while eliminating the manual overhead of exporting, styling, and attaching files. Ideal for agencies and service providers, this flow guarantees that your most frequent touchpoint—the bill—is as professional as your work. **Common Use Cases:** - High-end creative agencies requiring bespoke, white-labeled billing documents for premium clients. - Automated recurring subscription billing where custom tax disclosures or localized branding are required. - Service-based businesses needing to attach dynamic project reports or terms of service directly to QuickBooks invoices.

🔗 Webhook·12 nodes