创建或查找Stripe客户并自动生成发票
中级
这是一个Finance, IT Ops领域的自动化工作流,包含 10 个节点。主要使用 If, Set, HttpRequest, ManualTrigger 等节点。 创建或查找Stripe客户并自动生成发票
前置要求
- •可能需要目标 API 的认证凭证
使用的节点 (10)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "568298fde06d3db80a2eea77fe5bf45f0c7bb898dea20b769944e9ac7c6c5a80"
},
"nodes": [
{
"id": "6f5abd7f-51a7-488f-9fdc-0dc7b9b94b45",
"name": "获取 Stripe 客户",
"type": "n8n-nodes-base.httpRequest",
"position": [
-460,
100
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "3e000064-f370-4229-a46c-eb93ab34cfae",
"name": "客户是否存在?",
"type": "n8n-nodes-base.if",
"position": [
-260,
100
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "82014597-3859-4762-a9b3-10e1e9d9aeda",
"name": "创建客户",
"type": "n8n-nodes-base.httpRequest",
"position": [
0,
200
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "0f95b863-e1f7-4732-9e9d-3e3c2deae76b",
"name": "创建发票",
"type": "n8n-nodes-base.httpRequest",
"position": [
280,
100
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "abcdc761-c7d2-4eaf-8cbd-c4fe80cc47ad",
"name": "最终确认发票",
"type": "n8n-nodes-base.httpRequest",
"position": [
700,
100
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "a90c9731-8fea-4037-a6c4-04bc52ad4eac",
"name": "点击“测试工作流”时",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-860,
100
],
"parameters": {},
"typeVersion": 1
},
{
"id": "5a3478f0-a0d3-493f-9420-126cbcde535d",
"name": "设置发票数据",
"type": "n8n-nodes-base.set",
"position": [
-660,
100
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "eb49ed91-bd3b-4752-8932-327457c6ae72",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1480,
-40
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "923b2c54-eeb8-4605-b0fd-fc24939f11ff",
"name": "设置客户ID",
"type": "n8n-nodes-base.set",
"position": [
0,
0
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "250a7a35-2079-45fc-b192-dd8a012bbb97",
"name": "添加项目到发票",
"type": "n8n-nodes-base.httpRequest",
"position": [
500,
100
],
"parameters": {},
"typeVersion": 4.2
}
],
"pinData": {},
"connections": {
"0f95b863-e1f7-4732-9e9d-3e3c2deae76b": {
"main": [
[
{
"node": "250a7a35-2079-45fc-b192-dd8a012bbb97",
"type": "main",
"index": 0
}
]
]
},
"82014597-3859-4762-a9b3-10e1e9d9aeda": {
"main": [
[
{
"node": "0f95b863-e1f7-4732-9e9d-3e3c2deae76b",
"type": "main",
"index": 0
}
]
]
},
"923b2c54-eeb8-4605-b0fd-fc24939f11ff": {
"main": [
[
{
"node": "0f95b863-e1f7-4732-9e9d-3e3c2deae76b",
"type": "main",
"index": 0
}
]
]
},
"3e000064-f370-4229-a46c-eb93ab34cfae": {
"main": [
[
{
"node": "923b2c54-eeb8-4605-b0fd-fc24939f11ff",
"type": "main",
"index": 0
}
],
[
{
"node": "82014597-3859-4762-a9b3-10e1e9d9aeda",
"type": "main",
"index": 0
}
]
]
},
"5a3478f0-a0d3-493f-9420-126cbcde535d": {
"main": [
[
{
"node": "6f5abd7f-51a7-488f-9fdc-0dc7b9b94b45",
"type": "main",
"index": 0
}
]
]
},
"250a7a35-2079-45fc-b192-dd8a012bbb97": {
"main": [
[
{
"node": "abcdc761-c7d2-4eaf-8cbd-c4fe80cc47ad",
"type": "main",
"index": 0
}
]
]
},
"6f5abd7f-51a7-488f-9fdc-0dc7b9b94b45": {
"main": [
[
{
"node": "3e000064-f370-4229-a46c-eb93ab34cfae",
"type": "main",
"index": 0
}
]
]
},
"a90c9731-8fea-4037-a6c4-04bc52ad4eac": {
"main": [
[
{
"node": "5a3478f0-a0d3-493f-9420-126cbcde535d",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 财务, IT 运维
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
从网页中提取内部链接
从网页中提取内部链接
If
Set
Html
+
If
Set
Html
13 节点Audun
工程
通过Replicate API使用Google Imagen
通过Replicate API使用Google Imagen 3从文本提示生成图像
If
Set
Wait
+
If
Set
Wait
19 节点Audun
使用Mistral OCR和Gemini从Google
使用Mistral OCR和Gemini从Google Drive中提取发票数据到Sheets
If
Code
Merge
+
If
Code
Merge
29 节点Ysqander
财务
生成发票,保存到云端硬盘并使用JS+谷歌表格发送邮件给客户
生成发票,保存到云端硬盘并使用JS+谷歌表格发送邮件给客户
If
Set
Code
+
If
Set
Code
12 节点Joseph
财务
📊 WhatsApp和Telegram的AI令牌追踪器 -
📊 WhatsApp和Telegram的AI令牌追踪器 - 将AI使用情况保存到Google表格
If
Set
Code
+
If
Set
Code
37 节点Amanda Benks
财务
AI智能助手:与Supabase存储和Google Drive文件对话
AI智能助手:与Supabase存储和Google Drive文件对话
If
Set
Wait
+
If
Set
Wait
62 节点Mark Shcherbakov
工程