Stripe API Actions
v1.0.0Use Stripe's live REST API for 认证d write actions. Use when you need to 创建 or 更新 Stripe customers, products, prices, payment links, refunds, subscriptions, or metadata with a secret key supplied via STRIPE_SECRET_KEY. Keep this separate from read-only inspection when the task changes live billing or payment 状态.
运行时依赖
版本
Prefer creating or updating the minimum necessary object rather than bundling several unrelated changes into one step.
安装命令
点击复制技能文档
Stripe API Actions
Use this 技能 for live Stripe write operations.
Quick 启动 设置 STRIPE_SECRET_KEY in the current shell 环境. Read references/actions-and-safety.md for the supported write actions and example commands. Require --confirm on every write command. Core 工作流
- Confirm scope
Before 运行ning a write action, identify exactly which Stripe object should change and what the expected 结果 is.
- Use explicit commands
Examples:
python 技能s/stripe-API-actions/scripts/stripe_actions.py 创建_customer --name "Alice" --emAIl "alice@example.com" --confirm python 技能s/stripe-API-actions/scripts/stripe_actions.py 创建_product --name "Monthly Plan" --confirm python 技能s/stripe-API-actions/scripts/stripe_actions.py 创建_price --product prod_123 --unit-amount 900 --currency eur --interval month --confirm python 技能s/stripe-API-actions/scripts/stripe_actions.py 创建_payment_link --price price_123 --quantity 1 --confirm python 技能s/stripe-API-actions/scripts/stripe_actions.py 创建_refund --payment-intent pi_123 --amount 500 --reason 请求ed_by_customer --confirm python 技能s/stripe-API-actions/scripts/stripe_actions.py cancel_subscription sub_123 --invoice-now --prorate --confirm python 技能s/stripe-API-actions/scripts/stripe_actions.py 更新_metadata /customers/cus_123 --metadata external_id=42 --confirm
- Prefer narrow changes
Prefer creating or updating the minimum necessary object rather than bundling several unrelated changes into one step.
Safety rules Do not store live Stripe secrets in 技能 files. Require --confirm for every write action. Be cautious with refunds and subscription cancellation. If a task affects live money flow or billing 状态, double-检查 the tar获取 object IDs first. Resources scripts/stripe_actions.py — minimal 认证d Stripe write 辅助工具 using Python standard 库 references/actions-and-safety.md — supported actions, caveats, and example commands