-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathstripe_payment_monitor.json
More file actions
55 lines (55 loc) · 1.48 KB
/
stripe_payment_monitor.json
File metadata and controls
55 lines (55 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"name": "Stripe Payment Monitor",
"description": "Checks Stripe balance, lists recent charges, and sends a Slack summary",
"nodes": [
{
"id": "node-1",
"type": "automationStep",
"data": {
"step": {
"id": "step-1",
"type": "stripeGetBalance",
"description": "Get Stripe balance",
"credentialId": "my-stripe-key",
"storeKey": "balance"
}
},
"position": { "x": 0, "y": 0 }
},
{
"id": "node-2",
"type": "automationStep",
"data": {
"step": {
"id": "step-2",
"type": "stripeListCharges",
"description": "List recent charges",
"credentialId": "my-stripe-key",
"limit": 10,
"storeKey": "charges"
}
},
"position": { "x": 0, "y": 100 }
},
{
"id": "node-3",
"type": "automationStep",
"data": {
"step": {
"id": "step-3",
"type": "slackSendMessage",
"description": "Send payment summary to Slack",
"credentialId": "my-slack-token",
"channel": "#finance",
"text": "Stripe Balance: ${{balance.available[0].amount / 100}} | Recent charges: {{charges.data.length}}",
"storeKey": "slackResult"
}
},
"position": { "x": 0, "y": 200 }
}
],
"edges": [
{ "id": "e1-2", "source": "node-1", "target": "node-2" },
{ "id": "e2-3", "source": "node-2", "target": "node-3" }
]
}