本文へ移動
cccskills
無料GitHub で公開日本語紹介

stripe

顧客の請求書、支払い状況、返金、サブスクリプションをStripe APIから調べ、期間別や商品別の請求情報も確認できるスキルです。

原文原文の説明を見る

How to connect to and query the Stripe API for analytics data.

BuilderIO/agent-nativeスター 7,522(GitHub 7,522 + cccskills 0)
連携ツールStripe

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • 顧客の請求履歴を確認したいとき
  • 最近の支払い状況を調べたいとき
  • 顧客に紐づく返金を確認したいとき
  • 商品別の請求額を集計したいとき

日本語での紹介

できること

Stripe APIを使い、メールアドレスに紐づく顧客の請求情報を調べます。指定した期間の請求書、最近のチャージや支払いインテント、返金、サブスクリプションを確認でき、商品別に請求額をまとめることもできます。メールアドレスから複数の顧客レコードが見つかる場合は、それらをまとめて扱います。金額はStripe上では通貨の最小単位で返されるため、表示時には換算が必要です。

こんなときに便利

顧客からの支払い状況の問い合わせに答えたいときや、請求履歴、返金、契約中のサブスクリプションを確認したいときに使えます。商品ごとの請求傾向を把握したい場合にも向いています。

使い方の例

  • 「このメールアドレスの過去6か月分の請求書を確認して」
  • 「この顧客の最近の支払いと返金を調べて」
  • 「商品別の請求額を確認して」

注意点

利用にはStripeのシークレットキー STRIPE_SECRET_KEY の設定が必要です。請求データは5分間キャッシュされます。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(1)

  • SKILL.md3.6 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Stripe Integration

Connection

  • Base URL: https://api.stripe.com
  • Auth: Bearer token via the per-user/org STRIPE_SECRET_KEY credential
  • Server lib: server/lib/stripe.ts
  • Routes: server/routes/stripe.ts
  • Dashboard: app/pages/adhoc/stripe/ (tool page, not metrics dashboard)

Credential

  • STRIPE_SECRET_KEY — configure in Settings → Data sources

Agent Action

Use stripe for agent-facing Stripe work. Do not call /api/stripe/* directly from the agent.

ModeArgsDescription
billingemail, customerId, query, monthsInvoices for a customer in timeframe
payment-statusemail, customerId, queryRecent charges + payment intents
refundsemail, customerId, queryRefunds associated with customer
subscriptionsemail, customerId, queryActive subscriptions
billing-by-productemail, customerId, query, monthsBilling aggregated by product

API Routes

RouteMethodParamsDescription
/api/stripe/billingGETemail, months (default 6)Invoices for a customer in timeframe
/api/stripe/payment-statusGETemailRecent charges + payment intents
/api/stripe/refundsGETemailRefunds associated with customer
/api/stripe/subscriptionsGETemailAll subscriptions (active + inactive)

All routes resolve email → Stripe customer ID(s) internally.

Exported Functions (server/lib/stripe.ts)

  • getCustomersByEmail(email) — lookup customers by email
  • getInvoices(customerId, months?) — invoices, optionally filtered by timeframe
  • getCharges(customerId, limit?) — recent charges
  • getPaymentIntents(customerId, limit?) — recent payment intents
  • getSubscriptions(customerId) — all subscriptions (status=all)
  • getRefunds(customerId) — refunds via charge lookup

Gotchas

  • Stripe /v1/refunds does NOT support customer filter. The lib works around this by fetching customer charges first, then fetching refunds for refunded charges.
  • One email can map to multiple Stripe customer objects. All routes handle this by aggregating across all matching customers.
  • Amounts in Stripe are in cents (smallest currency unit). Divide by 100 for display.
  • Cache TTL is 5 minutes (shorter than other integrations since billing data changes more frequently).
  • The expand parameter is used for invoices (line items) and subscriptions (price details).

Client Hooks (app/lib/api-hooks.ts)

  • useStripeBilling(email, months, enabled)
  • useStripePaymentStatus(email, enabled)
  • useStripeRefunds(email, enabled)
  • useStripeSubscriptions(email, enabled)

All hooks use enabled flag — data is only fetched when a button is clicked.

UI Pattern

The Stripe page is a tool (not a dashboard). It has:

  1. Email input field
  2. Four action buttons (Billing History, Payment Status, Refund Status, Subscriptions)
  3. Results panel that shows data for whichever action was last triggered

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

a2a-assets

無料概要あり

複数のアプリやMCPホストからブランド画像・動画を生成、調整、書き出し、挿入する作業を支援します。ライブラリ選択や修正依頼も扱います。

  • スライド用のブランド画像を作りたいとき
  • 既存素材をフィードバックに合わせて直したいとき
  • 動画素材を生成して書き出したいとき
BuilderIO/agent-native7,5222026年10月26日 更新

account-health

無料概要あり

特定の顧客企業について、契約と製品利用の数値を照らし合わせ、根拠や不足情報を明記した健全性レポートをまとめます。

  • 顧客の健全性を確認したいとき
  • 契約席数と実利用を比べたいとき
  • 更新前に利用状況を整理したいとき
BuilderIO/agent-native7,5222026年10月26日 更新

actions

無料概要あり

アプリの操作をエージェントと画面の両方から呼び出せるアクションとして実装し、API連携や画面のデータ取得を一貫した形で追加するスキルです。

  • 新しいアプリ操作を追加したいとき
  • 外部APIと連携したいとき
  • 画面からデータを取得したいとき
BuilderIO/agent-native7,5222026年10月26日 更新

adding-a-feature

無料概要あり

新機能をUI・エージェント用アクション・説明資料・画面状態の4領域でそろえ、利用者とエージェントのどちらからも一貫して使えるようにするチェックリストです。

  • 新機能追加の作業範囲を整理したいとき
  • UIとエージェント操作をそろえたいとき
  • 画面状態の同期漏れを防ぎたいとき
BuilderIO/agent-native7,5222026年10月26日 更新

adhoc-analysis

無料概要あり

複数のデータソースを照合して、傾向や指標、根拠をまとめた分析結果を作成します。必要に応じて、再実行できるダッシュボードとして保存できます。

  • 商談と通話記録を照合したいとき
  • 顧客の利用状況を横断して調べたいとき
  • 繰り返し更新できる分析を保存したいとき
BuilderIO/agent-native7,5222026年10月26日 更新

admin-surfaces

無料概要あり

Analyticsの管理画面で、機能フラグの状態確認と切り替え、ダッシュボード利用状況の調査、接続先アプリのデータベース管理を行います。

  • アプリごとの機能フラグを確認・変更したいとき
  • ダッシュボードの所有者や利用状況を調べたいとき
  • 接続済みアプリのテーブルを管理したいとき
BuilderIO/agent-native7,5222026年10月26日 更新

BuilderIO のスキルをすべて見る

このスキルの問題を報告する