Stripe

From BuilderIO/agent-native · View interactive version

Stripe is an AI agent skill from the GitHub repository BuilderIO/agent-native. How to connect to and query the Stripe API for analytics data.

How to use this skill

Skill file

Stripe Integration

Connection

Credential

Agent Action

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

directly from the agent.

| Mode | Args | Description |

| -------------------- | ---------------------------------------- | ------------------------------------ |

| billing | email, customerId, query, months | Invoices for a customer in timeframe |

| payment-status | email, customerId, query | Recent charges + payment intents |

| refunds | email, customerId, query | Refunds associated with customer |

| subscriptions | email, customerId, query | Active subscriptions |

| billing-by-product | email, customerId, query, months | Billing aggregated by product |

API Routes

| Route | Method | Params | Description |

| ---------------------------- | ------ | ----------------------------- | ------------------------------------- |

| /api/stripe/billing | GET | email, months (default 6) | Invoices for a customer in timeframe |

| /api/stripe/payment-status | GET | email | Recent charges + payment intents |

| /api/stripe/refunds | GET | email | Refunds associated with customer |

| /api/stripe/subscriptions | GET | email | All subscriptions (active + inactive) |

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

Exported Functions (server/lib/stripe.ts)

Gotchas

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

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
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.