Skip to main content

Stripe agent connector

Stripe is a payment processing platform that enables businesses to accept payments, manage subscriptions, and handle financial transactions. This connector provides access to customers for payment analytics and customer management.

Example questions

The Stripe connector is optimized to handle prompts like these.

  • Show me my top 10 customers by total revenue this month
  • List all customers who have spent over $5,000 in the last quarter
  • Analyze payment trends for my Stripe customers
  • Identify which customers have the most consistent subscription payments
  • Give me insights into my customer retention rates
  • Summarize the payment history for {customer}
  • Compare customer spending patterns from last month to this month
  • Show me details about my highest-value Stripe customers
  • What are the key financial insights from my customer base?
  • Break down my customers by their average transaction value

Unsupported questions

The Stripe connector isn't currently able to handle prompts like these.

  • Create a new customer profile in Stripe
  • Update the billing information for {customer}
  • Delete a customer record
  • Send a payment reminder to {customer}
  • Schedule an automatic invoice for {company}

Installation

uv pip install airbyte-agent-stripe

Usage

Connectors can run in open source or hosted mode.

Open source

In open source mode, you provide API credentials directly to the connector.

from airbyte_agent_stripe import StripeConnector
from airbyte_agent_stripe.models import StripeAuthConfig

connector = StripeConnector(
auth_config=StripeAuthConfig(
api_key="<Your Stripe API Key (starts with sk_test_ or sk_live_)>"
)
)

@agent.tool_plain # assumes you're using Pydantic AI
@StripeConnector.tool_utils
async def stripe_execute(entity: str, action: str, params: dict | None = None):
return await connector.execute(entity, action, params or {})

Hosted

In hosted mode, API credentials are stored securely in Airbyte Cloud. You provide your Airbyte credentials instead.

This example assumes you've already authenticated your connector with Airbyte. See Authentication to learn more about authenticating. If you need a step-by-step guide, see the hosted execution tutorial.

from airbyte_agent_stripe import StripeConnector

connector = StripeConnector(
external_user_id="<your-scoped-token>",
airbyte_client_id="<your-client-id>",
airbyte_client_secret="<your-client-secret>"
)

@agent.tool_plain # assumes you're using Pydantic AI
@StripeConnector.tool_utils
async def stripe_execute(entity: str, action: str, params: dict | None = None):
return await connector.execute(entity, action, params or {})

Full documentation

This connector supports the following entities and actions.

EntityActions
CustomersList, Create, Get, Update, Delete, Api_search
InvoicesList, Get, Api_search
ChargesList, Get, Api_search
SubscriptionsList, Get, Api_search
RefundsList, Create, Get
ProductsList, Create, Get, Update, Delete, Api_search
BalanceGet
Balance TransactionsList, Get
Payment IntentsList, Get, Api_search
DisputesList, Get
PayoutsList, Get

For all authentication options, see the connector's authentication documentation.

For detailed documentation on available actions and parameters, see this connector's full reference documentation.

For the service's official API docs, see the Stripe API reference.

Version information

  • Package version: 0.5.59
  • Connector version: 0.1.5
  • Generated with Connector SDK commit SHA: 609c1d86c76b36ff699b57123a5a8c2050d958c3