返回顶部
s

stripe-full-read-accessStripe全读权限

Access Stripe directly with a Stripe secret or restricted API key for broad read-only platform queries, especially Connect accounts, application fees, balances, charges, customers, invoices, subscriptions, payouts, transfers, and balance transactions. Use when users want direct Stripe platform analytics or connected-account reporting without an intermediary gateway.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
79
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

stripe-full-read-access

Stripe 完全读取权限

使用本地存储的 Stripe API 密钥直接访问 Stripe API。

要求

  • - Stripe API 密钥本地存储,位于 git 之外
  • 查询 Connect 账户或应用费用时,优先使用平台级密钥
  • 使用此技能进行面向读取的 Stripe 分析与报告

本工作区使用的本地密钥路径:

  • - /home/clawd/.config/stripe/api_key

身份验证

text
Authorization: Bearer $STRIPEAPIKEY

Shell 配置示例:

bash
export STRIPEAPIKEY=$(cat /home/clawd/.config/stripe/api_key)

基础 URL

text
https://api.stripe.com/v1/

快速检查

获取平台账户

bash
curl -sS https://api.stripe.com/v1/account \
-H Authorization: Bearer $(cat /home/clawd/.config/stripe/api_key)

列出已关联账户

bash
curl -sS https://api.stripe.com/v1/accounts?limit=10 \
-H Authorization: Bearer $(cat /home/clawd/.config/stripe/api_key)

获取余额

bash
curl -sS https://api.stripe.com/v1/balance \
-H Authorization: Bearer $(cat /home/clawd/.config/stripe/api_key)

常用端点

  • - 账户:/v1/account
  • 余额:/v1/balance
  • 已关联账户:/v1/accounts
  • 费用:/v1/charges
  • 客户:/v1/customers
  • 支付意向:/v1/paymentintents
  • 提现:/v1/payouts
  • 账单:/v1/invoices
  • 订阅:/v1/subscriptions
  • 余额交易:/v1/balancetransactions
  • 应用费用:/v1/application_fees
  • 转账:/v1/transfers

实用模式

统计已关联账户数量

使用分页直到 has_more 为 false。

bash
python3 - < import json, urllib.request, urllib.parse
from pathlib import Path
key = Path(/home/clawd/.config/stripe/apikey).readtext().strip()
count = 0
starting_after = None
while True:
params = {limit: 100}
if starting_after:
params[startingafter] = startingafter
req = urllib.request.Request(https://api.stripe.com/v1/accounts? + urllib.parse.urlencode(params))
req.add_header(Authorization, fBearer {key})
with urllib.request.urlopen(req, timeout=60) as r:
data = json.load(r)
items = data.get(data, [])
count += len(items)
if not data.get(has_more) or not items:
print(count)
break
starting_after = items[-1][id]
PY

列出近期应用费用

bash
curl -sS https://api.stripe.com/v1/application_fees?limit=10 \
-H Authorization: Bearer $(cat /home/clawd/.config/stripe/api_key)

列出近期提现

bash
curl -sS https://api.stripe.com/v1/payouts?limit=10 \
-H Authorization: Bearer $(cat /home/clawd/.config/stripe/api_key)

列出近期费用

bash
curl -sS https://api.stripe.com/v1/charges?limit=10 \
-H Authorization: Bearer $(cat /home/clawd/.config/stripe/api_key)

Connect 注意事项

  • - 使用直接 Stripe 认证进行平台级 Connect 报告。
  • 此设置可访问 /v1/accounts,确认平台可见性。
  • 对于费用收入问题,需同时检查 applicationfees、balancetransactions 和 transfers。
  • 部分金额字段为整数最小单位。对于英镑,需除以 100。
  • 明确说明数字是总费用、应用费用、净余额变动、待处理还是可用余额。

安全

  • - 切勿提交 Stripe API 密钥。
  • 切勿将 Stripe API 密钥写入内存文件。
  • 除非用户明确要求写入操作,否则优先使用只读分析。
  • 谨慎处理可创建退款、提现、转账或账户变更的端点。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 stripe-full-read-access-1775974756 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 stripe-full-read-access-1775974756 技能

通过命令行安装

skillhub install stripe-full-read-access-1775974756

下载

⬇ 下载 stripe-full-read-access v1.0.0(免费)

文件大小: 2.13 KB | 发布时间: 2026-4-13 12:11

v1.0.0 最新 2026-4-13 12:11
Initial release: direct Stripe platform read access for Connect accounts, application fees, balances, charges, customers, invoices, subscriptions, payouts, transfers, and balance transactions.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部