← 返回
开发者工具 Key 中文

Native Stripe

Query and manage Stripe data via the Stripe API. Use when you need to list charges, customers, invoices, subscriptions, payment intents, refunds, products, o...
通过 Stripe API 查询和管理 Stripe 数据,用于列出费用、客户、发票、订阅、支付意图、退款、产品等
codeninja23 codeninja23 来源
开发者工具 clawhub v1.0.1 1 版本 99927.4 Key: 需要
★ 16
Stars
📥 1,057
下载
💾 6
安装
1
版本
#latest

概述

Stripe

Interact with your Stripe account directly via the Stripe API (api.stripe.com).

Setup (one-time)

  1. Get your secret key from https://dashboard.stripe.com/apikeys
  2. Set environment variable:

```

STRIPE_SECRET_KEY=sk_live_...

```

Use sk_test_... for test mode.

Queries

List recent charges

python3 /mnt/skills/user/stripe/scripts/stripe_query.py charges --limit 10

List customers

python3 /mnt/skills/user/stripe/scripts/stripe_query.py customers --limit 20

Search customers by email

python3 /mnt/skills/user/stripe/scripts/stripe_query.py customers --email user@example.com

List subscriptions

python3 /mnt/skills/user/stripe/scripts/stripe_query.py subscriptions --limit 20

List active subscriptions

python3 /mnt/skills/user/stripe/scripts/stripe_query.py subscriptions --status active --limit 20

List invoices

python3 /mnt/skills/user/stripe/scripts/stripe_query.py invoices --limit 20

List payment intents

python3 /mnt/skills/user/stripe/scripts/stripe_query.py payment_intents --limit 20

List products

python3 /mnt/skills/user/stripe/scripts/stripe_query.py products --limit 20

List prices

python3 /mnt/skills/user/stripe/scripts/stripe_query.py prices --limit 20

List refunds

python3 /mnt/skills/user/stripe/scripts/stripe_query.py refunds --limit 20

Get a specific object

python3 /mnt/skills/user/stripe/scripts/stripe_query.py get charges ch_abc123
python3 /mnt/skills/user/stripe/scripts/stripe_query.py get customers cus_abc123
python3 /mnt/skills/user/stripe/scripts/stripe_query.py get subscriptions sub_abc123

Create a refund

python3 /mnt/skills/user/stripe/scripts/stripe_query.py create refunds --charge ch_abc123
python3 /mnt/skills/user/stripe/scripts/stripe_query.py create refunds --charge ch_abc123 --amount 1000

Update a customer

python3 /mnt/skills/user/stripe/scripts/stripe_query.py update customers cus_abc123 --email new@example.com --name "New Name"

Output

Formatted table for lists, JSON for single objects. Use --json flag for raw JSON on any command.

Resources

  • charges, customers, invoices, subscriptions, payment_intents, refunds, products, prices, balance_transactions

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-29 08:03 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

business-ops

Calendar

ndcccccc
日历管理与日程安排。创建事件、管理会议,并实现多日历平台同步。
★ 7 📥 23,000
business-ops

Discord

steipete
当需要通过discord工具控制Discord时使用:发送消息、添加反应、发布或上传表情包、上传表情、创建投票、管理帖子/置顶/搜索、获取权限或成员/角色/频道信息,或在Discord私信或频道中处理管理操作。
★ 77 📥 37,856
data-analysis

Clawpod

codeninja23
可读取任意网站或搜索谷歌,即使网站屏蔽机器人或有地区限制。能处理验证码、JavaScript渲染及反机器人保护。
★ 21 📥 2,067