Skip to main content

Stripe

The Stripe agent connector is a Python package that equips AI agents to interact with Stripe through strongly typed, well-documented tools. It's ready to use directly in your Python app, in an agent framework, or exposed through an MCP.

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.

  • List customers created in the last 7 days
  • Show me details for a recent customer
  • List recent charges
  • Show me details for a recent charge
  • List recent invoices
  • List active subscriptions
  • 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. If your Airbyte client can access multiple organizations, also set organization_id.

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, AirbyteAuthConfig

connector = StripeConnector(
    auth_config=AirbyteAuthConfig(
        customer_name="<your_customer_name>",
        organization_id="<your_organization_id>",  # Optional for multi-org clients
        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

Entities and actions

This connector supports the following entities and actions. For more details, see this connector's full reference documentation.

Entity Actions
Customers List, Create, Get, Update, Delete, API Search, Context Store Search
Invoices List, Get, API Search, Context Store Search
Charges List, Get, API Search, Context Store Search
Subscriptions List, Get, API Search, Context Store Search
Refunds List, Create, Get, Context Store Search
Products List, Create, Get, Update, Delete, API Search
Balance Get
Balance Transactions List, Get
Payment Intents List, Get, API Search
Disputes List, Get
Payouts List, Get

Authentication

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

Stripe API docs

See the official Stripe API reference.

Version information

  • Package version: 0.5.130
  • Connector version: 0.1.13
  • Generated with Connector SDK commit SHA: c5258debd165ab701252c1436d4acfb475bf92b9
  • Changelog: View changelog

Metadata

Release files for airbyte-agent-stripe 0.5.130

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for airbyte-agent-stripe 0.5.130
File Size Uploaded
airbyte_agent_stripe-0.5.130.tar.gz 307.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for airbyte-agent-stripe 0.5.130
File Interpreter ABI Platform
airbyte_agent_stripe-0.5.130-py3-none-any.whl Python 3 none any Details

Total release size: 632.1 kB

Release files / airbyte_agent_stripe-0.5.130.tar.gz

Download URL airbyte_agent_stripe-0.5.130.tar.gz
Size 307.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5fadaac51cd033fe144c3720649fd0a2ae65a5b1c32ce02c6b0d1fde5d11bf3d
BLAKE2b-256 checksum
How to use checksums
9b193b4c898ac95dc02fcb389ea30e8ee2fb3b304ff2529de42aa0a1727134dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / airbyte_agent_stripe-0.5.130-py3-none-any.whl

Download URL airbyte_agent_stripe-0.5.130-py3-none-any.whl
Size 324.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1d66fbf6b38c0159b2ae18c7a8b99ee71f7852f7bcbe01f47f35296413f479a
BLAKE2b-256 checksum
How to use checksums
5ed6d9d101da910d79c4f1a690f4e164652b8a3c21f5aad1d7a41a28117c4f45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.5.130 This release

2 release files

0.5.99

2 release files

0.5.98

2 release files

0.5.97

2 release files

0.5.96

2 release files

0.5.95

2 release files

0.5.73

2 release files

0.5.72

2 release files

0.5.71

2 release files

0.5.70

2 release files

0.5.69

2 release files

0.5.68

2 release files

0.5.67

2 release files

0.5.66

2 release files

0.5.65

2 release files

0.5.64

2 release files

0.5.63

2 release files

0.5.62

2 release files

0.5.61

2 release files

0.5.60

2 release files

0.5.59

2 release files

0.5.58

2 release files

0.5.57

2 release files

0.5.56

2 release files

0.5.55

2 release files

0.5.54

2 release files

0.5.53

2 release files

0.5.52

2 release files

0.5.51

2 release files

0.5.50

2 release files

0.5.49

2 release files

0.5.48

2 release files

0.5.47

2 release files

0.5.46

2 release files

0.5.45

2 release files

0.5.44

2 release files

0.5.43

2 release files

0.5.42

2 release files

0.5.41

2 release files

0.5.40

2 release files

0.5.39

2 release files

0.5.38

2 release files

0.5.37

2 release files

0.5.36

2 release files

0.5.35

2 release files

0.5.25

2 release files

0.5.24

2 release files

0.5.23

2 release files

0.5.22

2 release files

0.5.21

2 release files

0.5.20

2 release files

0.5.19

2 release files

0.5.18

2 release files

0.5.17

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page