eleven / messenger Public

Clone
git clone https://amadan.net/eleven/messenger

Plain git — no account needed to clone.

Download

Download this file

1{
2 "schema": 1,
3 "id": "stripe",
4 "name": "Stripe",
5 "category": "payments",
6 "auth": {
7 "kind": "both",
8 "base": "https://api.stripe.com",
9 "authorization": "Bearer",
10 "pat_help": "https://dashboard.stripe.com/apikeys — create a RESTRICTED key with only the permissions you want reachable (include Account read so the connection can verify itself)",
11 "oauth": {
12 "authorize_url": "https://connect.stripe.com/oauth/authorize",
13 "token_url": "https://connect.stripe.com/oauth/token",
14 "scopes": ["read_write"]
15 }
16 },
17 "ops": [
18 {
19 "id": "viewer",
20 "label": "Who am I connected as",
21 "access": "read",
22 "method": "GET",
23 "path": "/v1/account",
24 "pick": {
25 "fields": [
26 "id",
27 "email",
28 "business_profile.name",
29 "settings.dashboard.display_name",
30 "default_currency"
31 ]
32 }
33 },
34 {
35 "id": "balance.get",
36 "label": "Current balance",
37 "access": "read",
38 "method": "GET",
39 "path": "/v1/balance",
40 "pick": {
41 "fields": [
42 "available",
43 "pending"
44 ]
45 }
46 },
47 {
48 "id": "charges.list",
49 "label": "Recent charges",
50 "access": "read",
51 "method": "GET",
52 "path": "/v1/charges?limit=10",
53 "pick": {
54 "root": "data",
55 "fields": [
56 "id",
57 "amount",
58 "currency",
59 "status",
60 "refunded",
61 "description",
62 "created"
63 ]
64 }
65 },
66 {
67 "id": "payouts.list",
68 "label": "Recent payouts",
69 "access": "read",
70 "method": "GET",
71 "path": "/v1/payouts?limit=10",
72 "pick": {
73 "root": "data",
74 "fields": [
75 "id",
76 "amount",
77 "currency",
78 "status",
79 "arrival_date",
80 "created"
81 ]
82 }
83 },
84 {
85 "id": "subscriptions.list",
86 "label": "Recent subscriptions",
87 "access": "read",
88 "method": "GET",
89 "path": "/v1/subscriptions?limit=10&status=all",
90 "pick": {
91 "root": "data",
92 "fields": [
93 "id",
94 "status",
95 "customer",
96 "cancel_at_period_end",
97 "current_period_end",
98 "created"
99 ]
100 }
101 },
102 {
103 "id": "refund.create",
104 "label": "Refund a charge",
105 "access": "write",
106 "method": "POST",
107 "path": "/v1/refunds",
108 "args": {
109 "charge": {
110 "required": true
111 }
112 },
113 "body_form": {
114 "charge": "{charge}"
115 },
116 "encoding": "form",
117 "confirm": "Refund charge {charge} in full? This moves real money."
118 }
119 ]
120}
121